一、实验拓扑图

wKioL1U6VcHBtLjmAAE-whB3eac661.jpg

二、实验配置

R1配置如下:

!

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Serial0/0

 ip address 192.168.65.1 255.255.255.0

 ip ospf network point-to-point

 serial restart-delay 0

!

interface Serial0/1

 ip address 192.168.67.1 255.255.255.0

 serial restart-delay 0

!

router ospf 100

 log-adjacency-changes

 network 0.0.0.0 255.255.255.255 area 0

!


R6配置如下:

!

interface Loopback0

 ip address 2.2.2.2 255.255.255.0

!

interface Serial0/0

 ip address 192.168.65.2 255.255.255.0

 serial restart-delay 0

!

interface Serial0/1

 ip address 192.168.69.1 255.255.255.0

 serial restart-delay 0

!

interface Serial0/2

 ip address 192.168.5.1 255.255.255.0

 serial restart-delay 0

!

router ospf 100

 log-adjacency-changes

 network 0.0.0.0 255.255.255.255 area 0

!

其它路由器依次配置好,效果如下:

R3上show ip ospf database

wKiom1U6VZbiCrjZAAE4t4G22UU632.jpg

R3上show ip ospf neighbor

wKioL1U6WA2hxAoUAADHUwTCdMg629.jpg

R2(R6)上show ip ospf neighbor

wKiom1U6Vq2Bdw0jAADLZU1_lYI347.jpg

三、注意事项

1、Loopback虚拟接口的设置;

2、OSPF RID的设置(本次实验没有设置,自动选举为loopback0接口地址为RID);

3、相关调试命令

debug ip ospf events

debug ip ospf packet

show ip ospf

show ip ospf database

show ip ospf interface

show ip ospf neighbor

show ip route