|
本帖最后由 kingair 于 2011-3-23 15:27 编辑
R1 -------- R2 --------R3 ---------R4
接口 s1/1---- s1/0 - s1/1 ---s1/0-s1/1----s1/0
说明 R1--R2 在Area0 ,R2--R3 在Area 1 ,R3---R4 在Area2
R2--R3 做的是virtual-link 。
R1的配置
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Serial1/1 / 连接R2
ip address 12.12.12.1 255.255.255.0
ip ospf message-digest-key 1 md5 cisco / 接口启用认证密钥
serial restart-delay 0
router ospf 110
router-id 91.1.1.1
log-adjacency-changes
area 0 authentication message-digest / OSPF 在area 0 宣告启用认证
network 1.1.1.0 0.0.0.255 area 0
network 12.12.12.0 0.0.0.255 area 0
----------------------------------------------
R2 的配置
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0 /连接R1
ip address 12.12.12.2 255.255.255.0 / 在与R1相连接的接口启用密钥
ip ospf message-digest-key 1 md5 cisco
serial restart-delay 0
!
interface Serial1/1 / 连接R3
ip address 23.23.23.2 255.255.255.0
serial restart-delay 0
router ospf 110
router-id 92.2.2.2
log-adjacency-changes
area 0 authentication message-digest / 在Area 0 启用认证
area 1 virtual-link 93.3.3.3 message-digest-key 1 md5 cisco / 启用virtual-link 的密钥
network 2.2.2.0 0.0.0.255 area 1
network 12.12.12.0 0.0.0.255 area 0
network 23.23.23.0 0.0.0.255 area 1
R3 配置
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex half
!
interface Serial1/0
ip address 23.23.23.3 255.255.255.0
serial restart-delay 0
!
interface Serial1/1
ip address 34.34.34.3 255.255.255.0
serial restart-delay 0
router ospf 110
router-id 93.3.3.3
log-adjacency-changes / 没有在Area 0 里面启用认证
area 1 virtual-link 92.2.2.2 message-digest-key 1 md5 cisco
network 3.3.3.0 0.0.0.255 area 1
network 23.23.23.0 0.0.0.255 area 1
network 34.34.34.0 0.0.0.255 area 2
我的疑问, 我看资料 virtual-link 也是属于 area 0 ,如果在 Area 0启用了认证,那么在virtual-link 也要认证,不然virtual-link是起不来的。
目前我没有在virtual-link进行认证,但是我这里查看,状态时好的?
求助错误!!
R3#show ip os virtual-links
Virtual Link OSPF_VL0 to router 92.2.2.2 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 1, via interface Serial1/0, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:03
Adjacency State FULL (Hello suppressed) / 状态是好的
Index 1/3, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Message digest authentication
这是什么问题??
|
|