C 4.0.0.0/8 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, Serial1
D 172.16.2.0 [90/2297856] via 172.16.1.5, 00:08:31, Serial1
10.0.0.0/24 is subnetted, 5 subnets
O 10.0.2.0 [110/84] via 10.0.4.3, 00:02:24, Ethernet0
O 10.0.3.0 [110/20] via 10.0.4.3, 00:02:24, Ethernet0
O 10.0.1.0 [110/30] via 10.0.4.3, 00:02:24, Ethernet0
C 10.0.4.0 is directly connected, Ethernet0
C 10.0.5.0 is directly connected, Serial0
r5
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, Serial1
C 172.16.2.0 is directly connected, Loopback0
C 192.168.0.0/24 is directly connected, Ethernet0
=============
重分发后
r1
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.1.0 [110/100] via 10.0.3.3, 00:19:26, Ethernet0
O E2 172.16.3.0 [110/100] via 10.0.3.3, 00:03:31, Ethernet0
这里看出,R1到达目标网络全部通过了R3路由器的接口
10.0.0.0/24 is subnetted, 5 subnets
C 10.0.2.0 is directly connected, Serial1
C 10.0.3.0 is directly connected, Ethernet0
C 10.0.1.0 is directly connected, Ethernet1
O 10.0.4.0 [110/20] via 10.0.3.3, 00:19:26, Ethernet0
O 10.0.5.0 [110/84] via 10.0.3.3, 00:19:27, Ethernet0
r2
Gateway of last resort is not set
C 2.0.0.0/8 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.1.0 [110/100] via 10.0.5.4, 00:20:22, Serial0
O E2 172.16.3.0 [110/100] via 10.0.5.4, 00:04:26, Serial0
10.0.0.0/24 is subnetted, 5 subnets
C 10.0.2.0 is directly connected, Serial1
O 10.0.3.0 [110/74] via 10.0.2.1, 00:20:22, Serial1
O 10.0.1.0 [110/74] via 10.0.2.1, 00:20:22, Serial1
O 10.0.4.0 [110/74] via 10.0.5.4, 00:20:22, Serial0
C 10.0.5.0 is directly connected, Serial0
r3
Gateway of last resort is not set
C 3.0.0.0/8 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 2 subnets
O E2 172.16.1.0 [110/100] via 10.0.4.4, 00:20:44, Ethernet1
O E2 172.16.3.0 [110/100] via 10.0.4.4, 00:04:49, Ethernet1
10.0.0.0/24 is subnetted, 5 subnets
O 10.0.2.0 [110/74] via 10.0.3.1, 00:20:44, Ethernet0
C 10.0.3.0 is directly connected, Ethernet0
O 10.0.1.0 [110/20] via 10.0.3.1, 00:20:44, Ethernet0
C 10.0.4.0 is directly connected, Ethernet1
O 10.0.5.0 [110/74] via 10.0.4.4, 00:20:45, Ethernet1
r4
Gateway of last resort is not set
C 4.0.0.0/8 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, Serial1
D 172.16.3.0 [90/2195456] via 172.16.1.5, 00:05:12, Serial1
10.0.0.0/24 is subnetted, 5 subnets
O 10.0.2.0 [110/84] via 10.0.4.3, 00:21:08, Ethernet0
O 10.0.3.0 [110/20] via 10.0.4.3, 00:21:08, Ethernet0
O 10.0.1.0 [110/30] via 10.0.4.3, 00:21:08, Ethernet0
C 10.0.4.0 is directly connected, Ethernet0
C 10.0.5.0 is directly connected, Serial0
r5
Gateway of last resort is not set
5.0.0.0/32 is subnetted, 1 subnets
C 5.5.5.5 is directly connected, Loopback0
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, Serial1
C 172.16.3.0 is directly connected, Ethernet0
10.0.0.0/24 is subnetted, 5 subnets
D EX 10.0.2.0 [170/3072256] via 172.16.1.4, 00:02:24, Serial1
D EX 10.0.3.0 [170/3072256] via 172.16.1.4, 00:02:24, Serial1
D EX 10.0.1.0 [170/3072256] via 172.16.1.4, 00:02:24, Serial1
D EX 10.0.4.0 [170/3072256] via 172.16.1.4, 00:02:25, Serial1
D EX 10.0.5.0 [170/3072256] via 172.16.1.4, 00:02:25, Serial1
为了避免实验自身问题,我特意关闭了R1上的E0来测试R1的S1接口是否能正常路由,测试结果表明,我关闭E0后,去往目标网络的全部走R2的接口了,而我一旦启用R1的E1接口,路由便又恢复成通过R3的接口.请见这个这个文本里的测试过程.200609151401294631.txt
下面的连接是整个环境的完整配置:
不知道整个过程是否有错,我也担心我是否陷入了思维定试,有不同观点请点这里相互讨论.谢谢.目的为了弄明白原理.
