2013年7月7日 星期日

OSPF MD5 Authentication (enable for area)


Operation step:
 1. Config  OSPF authertication , enable for area
 2. Config MD5 key id , and authentication password

R1#
=====================================
hostname R1
!
interface Loopback0
 ip address 10.1.1.1 255.255.255.255
!
interface Loopback1
 ip address 10.2.2.2 255.255.255.255
!
interface Loopback2
 ip address 10.3.3.3 255.255.255.255
!
interface Serial1/0
 ip address 172.16.1.1 255.255.255.252
 encapsulation ppp
 ip ospf message-digest-key 1 md5 mykey

!
router ospf 1
 log-adjacency-changes
area 0 authentication message-digest
 network 10.1.1.1 0.0.0.0 area 0
 network 10.2.2.2 0.0.0.0 area 0
 network 10.3.3.3 0.0.0.0 area 0
 network 172.16.1.0 0.0.0.3 area 0
=====================================


R2#
=====================================
 hostname R2
!
interface Loopback0
 ip address 10.4.4.4 255.255.255.255
!
interface Loopback1
 ip address 10.5.5.5 255.255.255.255
!
interface Loopback2
 ip address 10.6.6.6 255.255.255.255
!
interface Serial1/0
 ip address 172.16.1.2 255.255.255.252
 encapsulation ppp

 ip ospf message-digest-key 1 md5 mykey

!
router ospf 1
 log-adjacency-changes
 area 0 authentication message-digest

 network 10.4.4.4 0.0.0.0 area 0
 network 10.5.5.5 0.0.0.0 area 0
 network 10.6.6.6 0.0.0.0 area 0
 network 172.16.1.0 0.0.0.3 area 0

===================================== 

沒有留言:

張貼留言