4t2eq 发表于 2015-4-27 09:45:19

路由协议OSPF配置

一、实验拓扑图

二、实验配置
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 eventsdebug ip ospf packetshow ip ospfshow ip ospf databaseshow ip ospf interfaceshow ip ospf neighborshow ip route

页: [1]
查看完整版本: 路由协议OSPF配置