实验拓扑如上图所示
各路由器配置接口IP地址,并均启用环回口,各路由器启用如图中的路由协议
更改R3、R4的接口优先级为0,使得R2成为DR
在R5上启用多个环回口,用于做路由汇总,配置如下:
Loopback0 5.5.5.5
Loopback1 172.5.1.1
Loopback2 172.5.2.1
Loopback3 172.5.3.1
在R9上启用多个环回口,用于做路由汇总,配置如下:
Loopback0 9.9.9.9
Loopback1 172.16.1.1
Loopback2 172.16.2.1
Loopback3 172.16.3.1
在R8上将EIGRP10的路由重发布到OSPF中,配置如下:
router ospf 10
log-adjacency-changes
redistribute eigrp 10 metric-type 1 subnets
在R8上使用ip default-network命令,给EIGRP10添加默认路由,配置如下:
interface Loopback1
ip address 192.168.8.1 255.255.255.0
router eigrp 10
network 192.168.8.0 //将环回口所在的主类网段宣告进EIGRP中
network 192.168.89.0
no auto-summary
ip default-network 192.168.8.0 指定环回口所在网段为默认路由
在R4上将RIP的路由重发布到OSPF中,配置如下:
router ospf 10
log-adjacency-changes
redistribute rip metric-type 1 subnets
在R4上向RIP域中宣告默认路由,配置如下:
router rip
version 2
network 192.168.47.0
default-information originate
no auto-summary
查看R9的路由表如下:
Gateway of last resort is 192.168.89.8 to network 192.168.8.0
C 192.168.89.0/24 is directly connected, Serial0/1
D* 192.168.8.0/24 [90/2297856] via 192.168.89.8, 01:04:43, Serial0/1
172.16.0.0/24 is subnetted, 3 subnets
C 172.16.1.0 is directly connected, Loopback1
C 172.16.2.0 is directly connected, Loopback2
C 172.16.3.0 is directly connected, Loopback3
9.0.0.0/24 is subnetted, 1 subnets
C 9.9.9.0 is directly connected, Loopback0
查看R7的路由表如下:
Gateway of last resort is 192.168.47.4 to network 0.0.0.0
C 192.168.47.0/24 is directly connected, Serial0/0
7.0.0.0/24 is subnetted, 1 subnets
C 7.7.7.0 is directly connected, Loopback0
R* 0.0.0.0/0 [120/1] via 192.168.47.4, 00:00:22, Serial0/0
查看R2的LSDB如下:
R2#sh ip ospf da
OSPF Router with ID (2.2.2.2) (Process ID 10)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
1.1.1.1 1.1.1.1 1109 0x80000006 0x00AFDD 3
2.2.2.2 2.2.2.2 1071 0x80000004 0x006D31 4
3.3.3.3 3.3.3.3 30 0x80000006 0x002AF4 2
4.4.4.4 4.4.4.4 520 0x80000007 0x0021EC 2
Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
192.168.1.2 2.2.2.2 1071 0x80000004 0x007822
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
5.5.5.5 1.1.1.1 1109 0x80000003 0x000DD4
6.6.6.6 4.4.4.4 1024 0x80000003 0x00844D
8.8.8.8 1.1.1.1 862 0x80000003 0x000590
172.5.1.0 1.1.1.1 60 0x80000001 0x00EB59
172.5.2.0 1.1.1.1 60 0x80000001 0x00E063
172.5.3.0 1.1.1.1 61 0x80000001 0x00D56D
192.168.15.0 1.1.1.1 1110 0x80000003 0x0092EB
192.168.46.0 4.4.4.4 1025 0x80000003 0x00E171
192.168.58.0 1.1.1.1 1110 0x80000003 0x003AD8
Summary ASB Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
8.8.8.8 1.1.1.1 863 0x80000003 0x00ECA8
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
7.7.7.0 4.4.4.4 520 0x80000003 0x00EA0F 0
9.9.9.0 8.8.8.8 881 0x80000003 0x002AB9 0
172.16.1.0 8.8.8.8 1885 0x80000002 0x00E061 0
172.16.2.0 8.8.8.8 1644 0x80000002 0x00D56B 0
172.16.3.0 8.8.8.8 1644 0x80000002 0x00CA75 0
192.168.8.0 8.8.8.8 881 0x80000003 0x006528 0
192.168.47.0 4.4.4.4 520 0x80000003 0x002F47 0
192.168.89.0 8.8.8.8 881 0x80000003 0x00E655 0
剩余部分见(二)