Configuring MD5 Authentication
Router(config-if)#ip ospf message-digest-key key-id md5 key
Router(config-if)# ip ospf authentication [message-digest | null]
Router(config-router)#area area-id authentication [message-digest]
key-id --> An identifier in the range from 1 to 255
key --> Alphanumeric password of up to 16 bytes
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.1 255.255.255.252
RTA(config-if)#ip ospf message-digest-key 1 md5 thewayofccie
RTA(config-if)# ip ospf authentication message-digest
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 message-digest
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.2 255.255.255.252
RTB (config-if)#ip ospf message-digest-key 1 md5 thewayofccie
RTB(config-if)# ip ospf authentication message-digest
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 message-digest
RTB (config-router)#exit
RTB (config)#exit
Hiç yorum yok:
Yorum Gönder