两台s57直连同网段无法建立ospf邻居
2014/12/17 13:39:57点击:
问题描述
发现两台交换机配置很建单的ospf配置,结果无法建立邻居,debug ospf都没有发包,配置如下:
交换机1:
interface Vlanif17
ip address 10.0.17.190 255.255.255.192
#
interface Vlanif51
ip address 10.0.51.190 255.255.255.192
#
interface LoopBack0
ip address 1.1.1.10 255.255.255.255
#
ospf 100 router-id 1.1.1.10
area 0.0.0.0
network 10.0.17.0 0.0.0.63
network 10.0.51.0 0.0.0.63
network 1.1.1.10 0.0.0.0
交换机2:
interface Vlanif17
ip address 10.0.17.189 255.255.255.192
#
interface Vlanif51
ip address 10.0.51.189 255.255.255.192
#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
#
ospf 100 router-id 1.1.1.9
area 0.0.0.0
network 10.0.17.0 0.0.0.63
network 10.0.51.0 0.0.0.63
network 1.1.1.9 0.0.0.0
交换机1:
interface Vlanif17
ip address 10.0.17.190 255.255.255.192
#
interface Vlanif51
ip address 10.0.51.190 255.255.255.192
#
interface LoopBack0
ip address 1.1.1.10 255.255.255.255
#
ospf 100 router-id 1.1.1.10
area 0.0.0.0
network 10.0.17.0 0.0.0.63
network 10.0.51.0 0.0.0.63
network 1.1.1.10 0.0.0.0
交换机2:
interface Vlanif17
ip address 10.0.17.189 255.255.255.192
#
interface Vlanif51
ip address 10.0.51.189 255.255.255.192
#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
#
ospf 100 router-id 1.1.1.9
area 0.0.0.0
network 10.0.17.0 0.0.0.63
network 10.0.51.0 0.0.0.63
network 1.1.1.9 0.0.0.0
告警信息
无
处理过程
1、首先确认是否是不支持ospf的SI\LI等设备
2、是否能ping通直连
3、确认两端的进程是否统一
4、是否是发布的网段不正确
2、是否能ping通直连
3、确认两端的进程是否统一
4、是否是发布的网段不正确
根因
前3点都一一排除,最后查看配置发现,两端接口的掩码和network发布的网段不一致,因为是25位掩码,网络位地址配置错误。如下标红:
interface Vlanif17
ip address 10.0.17.190 255.255.255.192
interface Vlanif51
ip address 10.0.51.190 255.255.255.192
area 0.0.0.0
network 10.0.17.0 0.0.0.63
network 10.0.51.0 0.0.0.63
interface Vlanif17
ip address 10.0.17.190 255.255.255.192
interface Vlanif51
ip address 10.0.51.190 255.255.255.192
area 0.0.0.0
network 10.0.17.0 0.0.0.63
network 10.0.51.0 0.0.0.63
解决方案
最后修改网络位地址问题解决
建议与总结
在发布非常用掩码的网段时,有的掩码是一样的,网络位不一样,一定要注意网络位地址是否和接口ip对应。
- 上一篇:S9700的哪些版本支持命令行记录功能 2014/12/17
- 下一篇:Vlanif 的接口MAC地址为什么会相同 2014/12/17