验证如下:
r1#sh ip ro 1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 O IA 193.1.1.0/24 [110/20] via 192.1.1.2, 00:00:41, Ethernet0/0 C 192.1.1.0/24 is directly connected, Ethernet0/0 C 192.2.2.0/24 is directly connected, Ethernet1/0 O IA 194.1.1.0/24 [110/20] via 192.2.2.4, 00:00:39, Ethernet1/0
r2#sh ip ro
2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Loopback0 C 193.1.1.0/24 is directly connected, Ethernet1/0 C 192.1.1.0/24 is directly connected, Ethernet0/0 O 192.2.2.0/24 [110/20] via 192.1.1.1, 00:01:04, Ethernet0/0 O IA 194.1.1.0/24 [110/30] via 192.1.1.1, 00:00:03, Ethernet0/0 r2#
r3#sh ip ro
3.0.0.0/24 is subnetted, 1 subnets C 3.3.3.0 is directly connected, Loopback0 C 193.1.1.0/24 is directly connected, Ethernet1/0 O IA 192.1.1.0/24 [110/20] via 193.1.1.2, 00:01:31, Ethernet1/0 O IA 192.2.2.0/24 [110/30] via 193.1.1.2, 00:01:15, Ethernet1/0 O IA 194.1.1.0/24 [110/40] via 193.1.1.2, 00:00:15, Ethernet1/0
r4#sh ip ro 4.0.0.0/24 is subnetted, 1 subnets C 4.4.4.0 is directly connected, Loopback0 O IA 193.1.1.0/24 [110/30] via 192.2.2.1, 00:00:39, Ethernet1/0 O 192.1.1.0/24 [110/20] via 192.2.2.1, 00:01:37, Ethernet1/0 C 192.2.2.0/24 is directly connected, Ethernet1/0 C 194.1.1.0/24 is directly connected, Ethernet0/0
r5#sh ip ro
5.0.0.0/24 is subnetted, 1 subnets C 5.5.5.0 is directly connected, Loopback0 O IA 193.1.1.0/24 [110/40] via 194.1.1.4, 00:00:52, Ethernet0/0 O IA 192.1.1.0/24 [110/30] via 194.1.1.4, 00:00:52, Ethernet0/0 O IA 192.2.2.0/24 [110/20] via 194.1.1.4, 00:00:52, Ethernet0/0 C 194.1.1.0/24 is directly connected, Ethernet0/0
如果上述方式还不容易理解,你也可以将virtual-link可以想象成:将R2与R3合并成一台路由器,如下图:
r1#sh ip ro
1.0.0.0/24 is subnetted, 1 subnets C 1.1.1.0 is directly connected, Loopback0 O IA 193.1.1.0/24 [110/20] via 192.1.1.2, 00:00:57, Ethernet0/0 C 192.1.1.0/24 is directly connected, Ethernet0/0 O IA 194.1.1.0/24 [110/74] via 192.1.1.2, 00:00:24, Ethernet0/0
r2#sh ip ro
2.0.0.0/24 is subnetted, 1 subnets C 2.2.2.0 is directly connected, Loopback0 C 193.1.1.0/24 is directly connected, Ethernet1/0 C 192.1.1.0/24 is directly connected, Ethernet0/0 C 194.1.1.0/24 is directly connected, Serial2/0
r3#sh ip ro
3.0.0.0/24 is subnetted, 1 subnets C 3.3.3.0 is directly connected, Loopback0 C 193.1.1.0/24 is directly connected, Ethernet1/0 O IA 192.1.1.0/24 [110/20] via 193.1.1.2, 00:01:06, Ethernet1/0 O IA 194.1.1.0/24 [110/74] via 193.1.1.2, 00:00:37, Ethernet1/0
r4#sh ip ro
4.0.0.0/24 is subnetted, 1 subnets C 4.4.4.0 is directly connected, Loopback0 O IA 193.1.1.0/24 [110/74] via 194.1.1.2, 00:00:17, Serial2/0 O IA 192.1.1.0/24 [110/74] via 194.1.1.2, 00:00:17, Serial2/0 C 194.1.1.0/24 is directly connected, Serial2/0
出自: cisco网站 |