一、实验拓扑图
二、实验配置
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
R3上show ip ospf neighbor
R2(R6)上show ip ospf neighbor
三、注意事项
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
转载于:https://blog.51cto.com/xiezhengwang/1638160