clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 301 interface Serial1/1 103
!
interface Serial1/1
no ip address
encapsulation frame-relay
serial restart-delay 0
clock rate 64000
frame-relay lmi-type ansi
frame-relay intf-type dce
frame-relay route 103 interface Serial1/0 301
!
R3:
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface Serial1/1
ip address 13.1.1.3 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 13.1.1.1 301 broadcast
no frame-relay inverse-arp
!
所有路由器上OSPF协议均采用以下配置:
router ospf 10
router-id x.x.x.x(x为路由器编号)
network 0.0.0.0 255.255.255.255 area 0
1. Attempt:
只适于NBMA网络,如果一台路由器的OSPF一直”卡“在Attempt状态:表明该路由器已发送一个Hello报文,但是没有接到邻居的回应。通常,这个问题出现在使用了neighbor命令指定邻居的NBMA网络中。
a. 某一台路由器上(R1)指定一个错误的邻接地址:
R1:
router ospf 10
router-id 1.1.1.1
network 0.0.0.0 255.255.255.255 area 0
neighbor 13.1.1.2
!
R1#show ip os neighbor
Neighbor ID Pri State Dead Time Address Interface
N/A 0 ATTEMPT/DROTHER 00:00:46 13.1.1.2 Serial1/0
b. 使用ACL阻止了Hello分组:
R1:
interface Serial1/0
ip access-group 10 in
!
access-list 10 deny 13.1.1.0 0.0.0.255
access-list 10 permit any
!
R1#show ip os neighbor
Neighbor ID Pri State Dead Time Address Interface
N/A 0 ATTEMPT/DROTHER 00:01:54 13.1.1.3 Serial1/0
另外,当一端指定了neighbor,另一端没有指定neighbor时,OSPF会经历一个比