分享
 
 
 

Cisco IOS OSPF邻居关系不能正常建立的原因和解决方法(1)

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

(1)接口上没有激活ospf

就是在network语句的时候没有匹配清楚,比如配置了错误的反掩码不对,在show ip ospf interface的时候不会显示你希望激活的接口。使用show ip ospf interface来验证。

这时候的邻居表是空的

R2#show ip ospf neighbor

R2#

(2)物理层或者是数据链路层协议down.

使用show ip int brief 或者是 show int type nomber会导致ospf packet 封装失败。

(3)建立邻居的接口被passive掉

R2#show ip ospf interface Ethernet 0

Ethernet0 is up, line protocol is up

Internet Address 131.108.1.2/24, Area 0

Process ID 1, Router ID 131.108.1.2, Network Type BROADCAST, Cost: 10

Transmit Delay is 1 sec, State DR, Priority 1

Designated Router (ID) 131.108.1.2, Interface address 131.108.1.2

No backup designated router on this network

Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

No Hellos (Passive interface)

Neighbor Count is 0, Adjacent neighbor count is 0

Suppress hello for 0 neighbor(s)

(4)OSPF的hello组播地址被ACL Block

R1#

interface Ethernet0

ip address 131.108.1.1 255.255.255.0

ip Access-group 100 in

!

access-list 100 permit tcp any any

access-list 100 permit udp any any

access-list 101 permit ip 131.108.1.0 0.0.0.255 host 224.0.0.5

R2#

interface Ethernet0

ip address 131.108.1.2 255.255.255.0

ip access-group 100 in

!

access-list 100 permit tcp any any

access-list 100 permit udp any any

access-list 101 permit ip 131.108.1.0 0.0.0.255 host 224.0.0.5

R2#debug ip packet 101 detail

IP packet debugging is on (detailed) for access list 101

IP: s=131.108.1.2 (Ethernet0), d=224.0.0.5, len 68, access denied, proto=89

这时候的邻居关系是INIT

R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

131.108.2.1 1 INIT/- 00:00:33 131.108.1.1 Ethernet0

R1#show access-list 101

Extended IP access list 101

permit ip 131.108.1.0 0.0.0.3 host 224.0.0.5 (8 matches)

R1#debug ip packet 101 detail

IP packet debugging is on (detailed) for access list 101

R1#

IP: s=131.108.1.1 (local), d=224.0.0.5 (Ethernet0), len 60, sending broad/multicast,

proto

=89

IP: s=131.108.1.2 (Ethernet0), d=224.0.0.5, len 82, access denied, proto=89

IP: s=131.108.1.1 (local), d=224.0.0.5 (Ethernet0), len 60, sending broad/multicast,

proto

=89

IP: s=131.108.1.2 (Ethernet0), d=224.0.0.5, len 82,access denied, proto=89

(5)在broadcast链路上的子网掩码不匹配

(6)Hello/dead 间隔不匹配

(7)认证方式或者是认证密码不匹配

使用debug ip ospf adj 来查看,可以自己使用不同的情况来验证

(8)两台路由器处于不同的AREA

R1#debug ip ospf adj

OSPF adjacency events debugging is on

R1#

OSPF: Rcv pkt from 131.108.1.2, Ethernet0, area 0.0.0.0

mismatch area 0.0.0.1 in the header

R2#show log

%OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 131.108.1.1, Ethernet0

(9)Stub/transit/NSSA 区域类型不匹配

这个是经常不小心会被忘记的。

R1#debug ip ospf adj

OSPF adjacency events debugging is on

R1#

OSPF: Rcv hello from 131.108.0.1 area 1 from Ethernet0 131.108.1.2

OSPF: Hello from 131.108.1.2 with mismatched Stub/Transit area option bit

R1#debug ip ospf adj

OSPF adjacency events debugging is on

R1#

OSPF: Rcv hello from 131.108.0.1 area 1 from Ethernet0 131.108.1.2

OSPF: Hello from 131.108.1.2 with mismatched NSSA option bit

更多的请看:http://www.QQread.com/windows/2003/index.Html

(1)接口上没有激活ospf

就是在network语句的时候没有匹配清楚,比如配置了错误的反掩码不对,在show ip ospf interface的时候不会显示你希望激活的接口。使用show ip ospf interface来验证。

这时候的邻居表是空的

R2#show ip ospf neighbor

R2#

(2)物理层或者是数据链路层协议down.

使用show ip int brief 或者是 show int type nomber会导致ospf packet 封装失败。

(3)建立邻居的接口被passive掉

R2#show ip ospf interface Ethernet 0

Ethernet0 is up, line protocol is up

Internet Address 131.108.1.2/24, Area 0

Process ID 1, Router ID 131.108.1.2, Network Type BROADCAST, Cost: 10

Transmit Delay is 1 sec, State DR, Priority 1

Designated Router (ID) 131.108.1.2, Interface address 131.108.1.2

No backup designated router on this network

Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

No Hellos (Passive interface)

Neighbor Count is 0, Adjacent neighbor count is 0

Suppress hello for 0 neighbor(s)

(4)OSPF的hello组播地址被ACL Block

R1#

interface Ethernet0

ip address 131.108.1.1 255.255.255.0

ip access-group 100 in

!

access-list 100 permit tcp any any

access-list 100 permit udp any any

access-list 101 permit ip 131.108.1.0 0.0.0.255 host 224.0.0.5

R2#

interface Ethernet0

ip address 131.108.1.2 255.255.255.0

ip access-group 100 in

!

access-list 100 permit tcp any any

access-list 100 permit udp any any

access-list 101 permit ip 131.108.1.0 0.0.0.255 host 224.0.0.5

R2#debug ip packet 101 detail

IP packet debugging is on (detailed) for access list 101

IP: s=131.108.1.2 (Ethernet0), d=224.0.0.5, len 68, access denied, proto=89

这时候的邻居关系是INIT

R2#show ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

131.108.2.1 1 INIT/- 00:00:33 131.108.1.1 Ethernet0

R1#show access-list 101

Extended IP access list 101

permit ip 131.108.1.0 0.0.0.3 host 224.0.0.5 (8 matches)

R1#debug ip packet 101 detail

IP packet debugging is on (detailed) for access list 101

R1#

IP: s=131.108.1.1 (local), d=224.0.0.5 (Ethernet0), len 60, sending broad/multicast,

proto

=89

IP: s=131.108.1.2 (Ethernet0), d=224.0.0.5, len 82, access denied, proto=89

IP: s=131.108.1.1 (local), d=224.0.0.5 (Ethernet0), len 60, sending broad/multicast,

proto

=89

IP: s=131.108.1.2 (Ethernet0), d=224.0.0.5, len 82,access denied, proto=89

(5)在broadcast链路上的子网掩码不匹配

(6)Hello/dead 间隔不匹配

(7)认证方式或者是认证密码不匹配

使用debug ip ospf adj 来查看,可以自己使用不同的情况来验证

(8)两台路由器处于不同的AREA

R1#debug ip ospf adj

OSPF adjacency events debugging is on

R1#

OSPF: Rcv pkt from 131.108.1.2, Ethernet0, area 0.0.0.0

mismatch area 0.0.0.1 in the header

R2#show log

%OSPF-4-ERRRCV: Received invalid packet: mismatch area ID, from backbone area must be virtual-link but not found from 131.108.1.1, Ethernet0

(9)Stub/transit/NSSA 区域类型不匹配

这个是经常不小心会被忘记的。

R1#debug ip ospf adj

OSPF adjacency events debugging is on

R1#

OSPF: Rcv hello from 131.108.0.1 area 1 from Ethernet0 131.108.1.2

OSPF: Hello from 131.108.1.2 with mismatched Stub/Transit area option bit

R1#debug ip ospf adj

OSPF adjacency events debugging is on

R1#

OSPF: Rcv hello from 131.108.0.1 area 1 from Ethernet0 131.108.1.2

OSPF: Hello from 131.108.1.2 with mismatched NSSA option bit

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有