发布时间: 2016-10-17 | 浏览次数: 425 | 下载次数: 0 | 作者: swordbo | 文档编号: EKB1000326675
1、版本信息:V200R005
2、组网概述:两台路由器对接使用OSPF协议,分别挂一台电脑
3、组网拓扑图:
4、配置脚本:
R1设备配置信息如下:
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 12.1.1.1 255.255.255.0
#
ospf 1
area 0.0.0.0
network 12.1.1.1 0.0.0.0
network 192.168.1.0 0.0.0.255
#
R2设备配置信息如下:
interface GigabitEthernet0/0/0
ip address 192.168.2.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 12.1.1.2 255.255.255.0
ospf network-type p2p
#
ospf 1
area 0.0.0.0
network 12.1.1.2 0.0.0.0
network 192.168.2.0 0.0.0.255
#
5、故障现象描述:
查看两端设备路由表,学不到对端业务段路由
1、使用display ospf peer 命令信息如下:
<R1>dis ospf peer br
OSPF Process 1 with Router ID 192.168.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/1 192.168.2.1 Full
----------------------------------------------------------------------------
<R2>dis ospf peer br
OSPF Process 1 with Router ID 192.168.2.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/1 192.168.1.1 Full
----------------------------------------------------------------------------
以上信息说明两端设备邻居关系建立正常;
2、使用display ospf interface命令查看信息如下:
<R1>display ospf interface
OSPF Process 1 with Router ID 192.168.1.1
Interfaces
Area: 0.0.0.0 (MPLS TE not enabled)
IP Address Type State Cost Pri DR BDR
192.168.1.1 Broadcast DR 1 1 192.168.1.1 0.0.0.0
12.1.1.1 Broadcast DROther 1 1 12.1.1.2 0.0.0.0
<R2>display ospf interface
OSPF Process 1 with Router ID 192.168.2.1
Interfaces
Area: 0.0.0.0 (MPLS TE not enabled)
IP Address Type State Cost Pri DR BDR
192.168.2.1 Broadcast DR 1 1 192.168.2.1 0.0.0.0
12.1.1.2 P2P P-2-P 1 1 0.0.0.0 0.0.0.0
以上信息发现两端设备接口网络类型不匹配
1、故障的根本原因是配置OSPF协议的两端路由器接口网络类型不一致会导致互相学不到对端路由
将两端设备的接口网络类型修改为一致后,网络学习正常
在对两端设备进行ospf协议对接时,务必将两端接口网络类型修改为一致,才能让两端路由学习正常