Configuring Simple Password Authentication
Router(config-if)# ip ospf authentication [message-digest | null]àSpecifies the authentication type for an interface (since Cisco IOS software 12.0)
Router(config-router)# area area-id authentication [message-digest] àSpecifies the authentication type for an area (was in Cisco IOS software before 12.0)
null à(Optional) No authentication is used. Useful for overriding password or MD5 authentication if configured for an area.
RTA ROUTER
Router>enable
Router#configure terminal
Router(config)#hostname RTA
RTA(config)#interface loopback 0
RTA(config-if)#ip address 2.2.2.2 255.255.255.0
RTA(config-if)#exit
RTA(config)#interface serial 0/0
RTA(config-if)#ip address 192.168.1.65 255.255.255.252
RTA(config-if)#ip ospf authentication-key ccnapass
RTA(config-if)#ip ospf authentication
RTA(config-if)#clock rate 64000
RTA(config-if)#no shutdown
RTA(config-if)#exit
RTA(config)#interface fastethernet 0/0
RTA(config-if)#ip address 192.168.10.1 255.255.255.0
RTA(config-if)#no shutdown
RTA(config-if)#exit
RTA(config)#router ospf 65
RTA(config-router)#network 192.168.1.0 0.0.0.255 area 0
RTA(config-router)#network 192.168.10.0 0.0.0.255 area 0
RTA (config-router)#network 2.2.2.0 0.0.0.255 area 0
RTA (config-router)#area 0 authentication
RTA(config-router)#exit
RTA(config)#exit
RTA#copy running-config startup-config
RTB ROUTER
Router>enable
Router#configure terminal
Router(config)#hostname RTB
RTB (config)#interface loopback 0
RTB (config-if)#ip address 3.3.3.3 255.255.255.0
RTB (config-if)#exit
RTB (config)#interface serial0/0
RTB (config-if)#ip address 192.168.1.66 255.255.255.252
RTB (config-if)# ip ospf authentication-key ccnapass
RTB(config-if)# ip ospf authentication
RTB (config-if)#no shutdown
RTB(config-if)#exit
RTB(config)#interface fastethernet 0/0
RTB (config-if)#ip address 192.168.20.1 255.255.255.0
RTB (config-if)#no shutdown
RTB (config)#router ospf 65
RTB (config-router)#network 192.168.1.0 0.0.0.255 area 0
RTB (config-router)#network 192.168.20.0 0.0.0.255 area 0
RTB (config-router)#network 3.3.3.0 0.0.0.255 area 0
RTB(config-router)# area 0 authentication
RTB (config-router)#exit
RTB (config)#exit
RTB #copy running-config startup-config
Hiç yorum yok:
Yorum Gönder