如果OSPF两端的hello-interval不一样,建立不了邻居关系,请你证明此说法是错误.
本帖最后由 Power 于 2013-6-6 21:15 编辑OSPF建立邻居条件:
1.1Hello/dead interverl
1.1.1改变hello时间,dead时间会跟改变
1.1.2改变dead时间,hello时间不会跟着变化
1.1.3通过show ip ospf interface +接口查看hello/dead interver时间
ü思考题:Hello时间不一样是否可以建立邻居关系?ü答案:可以,因为hello时间不足1秒,都按1S来计算( CCIE RS v4.0 有一个知识点考到 )
TOP R1 S1/0 --------- S1/1 R2R1R1#sh run int s1/0interface Serial1/0ip address 12.1.1.1 255.255.255.0ip ospf network non-broadcastip ospf dead-interval minimal hello-multiplier3/---1s内发送3个hello包,hello时间为333ms---/R1#ship os int s1/0Serial1/0 is up, line protocol is up Internet Address 12.1.1.1/24, Area 0 Process ID 12, Router ID 1.1.1.1, NetworkType NON_BROADCAST, Cost: 64Transmit Delay is 1 sec, State BDR, Priority1 Designated Router (ID) 2.2.2.2, Interfaceaddress 12.1.1.2Backup Designated router (ID) 1.1.1.1,Interface address 12.1.1.1Timer intervals configured, Hello 333 msec,Dead 1, Wait 1, Retransmit 5 oob-resync timeout 40 Hello due in 305 msecSupports Link-local Signaling (LLS)R1#ship ospf neighbor NeighborID Pri State Dead Time Address Interface2.2.2.2 1FULL/DR 800 msec 12.1.1.2 Serial1/0R2 R2#sh run int s1/0interface Serial1/0ip address 12.1.1.2 255.255.255.0ip ospf network non-broadcastip ospf dead-interval minimal hello-multiplier 4/--- 1s内发送4个hello包,hello时间为250ms---/R2#sh ip ospf int s1/0Serial1/0 is up, line protocol is up Internet Address 12.1.1.2/24, Area 0 Process ID 12, Router ID 12.1.1.2, Network Type NON_BROADCAST, Cost: 64Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 12.1.1.2, Interface address 12.1.1.2Backup Designated router (ID) 1.1.1.1, Interface address 12.1.1.1Timer intervals configured, Hello 250 msec, Dead 1, Wait 1, Retransmit 5 oob-resync timeout 40 Hello due in 42 msecSupports Link-local Signaling (LLS)R2#sh ip ospf neighborNeighbor ID PriState Dead Time Address Interface1.1.1.1 1 FULL/BDR 836 msec 12.1.1.1 Serial1/01.2area-id1.3OSPF认证(区域和接口)方式或密码不对 ü0---------------- 无认证ü1---------------明文认证ü2---------------密文认证1.4区域类型1.5其他注意点:1.5.1子网掩码和网络的接口类型关系 只有P2P和P2MP子网掩码不同可以建立邻居关系在多路访问网络中(broadcast网络环境中),需要选举DR/BDR,子网掩不同,不可以建立邻居关系,因为2类LSA要用子网掩码描述网络的范围。1.5.2接口上没有激活ospf 在network语句的时候没有匹配清楚,比如配置了错误的反掩码不对,在show ipospf interface的时候不会显示你希望激活的接口。使用show ip ospf interface来验证。此时OSPF邻居表是空的1.5.3物理层或者是数据链路层协议down 在串行口中DCE/DTE没有配置时钟,封装类型不一致1.5.4建立邻居的接口被passive掉 R1#showip ospf interfaces1/0Serial1/0is up, line protocol is up Internet Address 12.1.1.1/24, Area 0 …… No Hellos (Passive interface) Wait time before Designated router**ion 00:01:45Supports Link-local Signaling (LLS)1.5.5OSPF的hello组播地址被ACL Block,这时候的邻居关系是INIT1.5.6认证方式或者是认证密码不匹配
OSPP邻居建立过程还是很有意思,如果格式方面有不对,大家自己调整一下:)
**** Hidden Message *****
-curse- 强!!!! 哇塞,原来还可以这么处理OSPF的hello包!
感谢大叔的分享! 受教了!赞~
777534744545544
7474147741 顶
-woniu4- -woniu4-
页:
[1]