这个实验的目的是完成RIP网络与EIGRP网络之间的路由重分发,拓扑图如下:
实验用的时小凡的模拟器,路由器连接拓扑如下表:
Router1 S0/0 <----> Router2 S0/1
Router2 S0/0 <----> Router3 S0/1
Router3 S0/0 <----> Router4 S0/1
Router2 S0/0 <----> Router3 S0/1
Router3 S0/0 <----> Router4 S0/1
未路由重分发前各路由器的路由表状况:
R1#sh ip route
!
Gateway of last resort is not set
!
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
R 10.0.0.8/30 [120/1] via 10.0.0.2, 00:00:22, Serial0/0
C 10.2.0.0/16 is directly connected, Loopback1
C 10.3.0.0/16 is directly connected, Loopback2
C 10.0.0.0/30 is directly connected, Serial0/0
C 10.1.0.0/16 is directly connected, Loopback0
R 10.0.0.8/30 [120/1] via 10.0.0.2, 00:00:22, Serial0/0
C 10.2.0.0/16 is directly connected, Loopback1
C 10.3.0.0/16 is directly connected, Loopback2
C 10.0.0.0/30 is directly connected, Serial0/0
C 10.1.0.0/16 is directly connected, Loopback0
R2#sh ip route
!
Gateway of last resort is not set
!
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
D 10.10.0.0/16 [90/2809856] via 10.0.0.10, 00:02:38, Serial0/0
D 10.11.0.0/16 [90/2809856] via 10.0.0.10, 00:02:38, Serial0/0
D 10.8.0.0/16 [90/2681856] via 10.0.0.10, 00:02:49, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/0
D 10.9.0.0/16 [90/2809856] via 10.0.0.10, 00:02:38, Serial0/0
R 10.2.0.0/16 [120/1] via 10.0.0.1, 00:00:03, Serial0/1
R 10.3.0.0/16 [120/1] via 10.0.0.1, 00:00:03, Serial0/1
C 10.0.0.0/30 is directly connected, Serial0/1
R 10.1.0.0/16 [120/1] via 10.0.0.1, 00:00:03, Serial0/1
D 10.10.0.0/16 [90/2809856] via 10.0.0.10, 00:02:38, Serial0/0
D 10.11.0.0/16 [90/2809856] via 10.0.0.10, 00:02:38, Serial0/0
D 10.8.0.0/16 [90/2681856] via 10.0.0.10, 00:02:49, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/0
D 10.9.0.0/16 [90/2809856] via 10.0.0.10, 00:02:38, Serial0/0
R 10.2.0.0/16 [120/1] via 10.0.0.1, 00:00:03, Serial0/1
R 10.3.0.0/16 [120/1] via 10.0.0.1, 00:00:03, Serial0/1
C 10.0.0.0/30 is directly connected, Serial0/1
R 10.1.0.0/16 [120/1] via 10.0.0.1, 00:00:03, Serial0/1
R3#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
D 10.10.0.0/16 [90/2297856] via 10.8.0.2, 00:03:09, Serial0/0
D 10.11.0.0/16 [90/2297856] via 10.8.0.2, 00:03:09, Serial0/0
C 10.8.0.0/16 is directly connected, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/1
D 10.9.0.0/16 [90/2297856] via 10.8.0.2, 00:03:09, Serial0/0
D 10.0.0.0/30 [90/2681856] via 10.0.0.9, 00:03:18, Serial0/1
D 10.10.0.0/16 [90/2297856] via 10.8.0.2, 00:03:09, Serial0/0
D 10.11.0.0/16 [90/2297856] via 10.8.0.2, 00:03:09, Serial0/0
C 10.8.0.0/16 is directly connected, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/1
D 10.9.0.0/16 [90/2297856] via 10.8.0.2, 00:03:09, Serial0/0
D 10.0.0.0/30 [90/2681856] via 10.0.0.9, 00:03:18, Serial0/1
R4#sh ip route
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 10.10.0.0/16 is directly connected, Loopback1
C 10.11.0.0/16 is directly connected, Loopback2
C 10.8.0.0/16 is directly connected, Serial0/1
D 10.0.0.8/30 [90/2681856] via 10.8.0.1, 00:03:29, Serial0/1
C 10.9.0.0/16 is directly connected, Loopback0
D 10.0.0.0/30 [90/3193856] via 10.8.0.1, 00:03:29, Serial0/1
C 10.10.0.0/16 is directly connected, Loopback1
C 10.11.0.0/16 is directly connected, Loopback2
C 10.8.0.0/16 is directly connected, Serial0/1
D 10.0.0.8/30 [90/2681856] via 10.8.0.1, 00:03:29, Serial0/1
C 10.9.0.0/16 is directly connected, Loopback0
D 10.0.0.0/30 [90/3193856] via 10.8.0.1, 00:03:29, Serial0/1
在路由器R2上配置路由重分发:
R2#sh run
Building configuration...
R2#sh run
Building configuration...
Current configuration : 1132 bytes
!
!
router eigrp 100
redistribute rip metric 2000 100 255 1 1500
network 10.0.0.0
no auto-summary
!
router rip
version 2
redistribute eigrp 100 metric 4
passive-interface Serial0/0
network 10.0.0.0
no auto-summary
!
!
!
router eigrp 100
redistribute rip metric 2000 100 255 1 1500
network 10.0.0.0
no auto-summary
!
router rip
version 2
redistribute eigrp 100 metric 4
passive-interface Serial0/0
network 10.0.0.0
no auto-summary
!
配置完路由重分发后,各路由器路由表的状况:
R1#sh ip route
!
Gateway of last resort is not set
!
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
R 10.10.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
R 10.11.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
R 10.8.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
R 10.0.0.8/30 [120/1] via 10.0.0.2, 00:00:03, Serial0/0
R 10.9.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
C 10.2.0.0/16 is directly connected, Loopback1
C 10.3.0.0/16 is directly connected, Loopback2
C 10.0.0.0/30 is directly connected, Serial0/0
C 10.1.0.0/16 is directly connected, Loopback0
R 10.10.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
R 10.11.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
R 10.8.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
R 10.0.0.8/30 [120/1] via 10.0.0.2, 00:00:03, Serial0/0
R 10.9.0.0/16 [120/4] via 10.0.0.2, 00:00:03, Serial0/0
C 10.2.0.0/16 is directly connected, Loopback1
C 10.3.0.0/16 is directly connected, Loopback2
C 10.0.0.0/30 is directly connected, Serial0/0
C 10.1.0.0/16 is directly connected, Loopback0
R2#sh ip route
!
Gateway of last resort is not set
!
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
D 10.10.0.0/16 [90/2809856] via 10.0.0.10, 00:10:42, Serial0/0
D 10.11.0.0/16 [90/2809856] via 10.0.0.10, 00:10:42, Serial0/0
D 10.8.0.0/16 [90/2681856] via 10.0.0.10, 00:10:53, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/0
D 10.9.0.0/16 [90/2809856] via 10.0.0.10, 00:10:42, Serial0/0
R 10.2.0.0/16 [120/1] via 10.0.0.1, 00:00:12, Serial0/1
R 10.3.0.0/16 [120/1] via 10.0.0.1, 00:00:12, Serial0/1
C 10.0.0.0/30 is directly connected, Serial0/1
R 10.1.0.0/16 [120/1] via 10.0.0.1, 00:00:12, Serial0/1
D 10.10.0.0/16 [90/2809856] via 10.0.0.10, 00:10:42, Serial0/0
D 10.11.0.0/16 [90/2809856] via 10.0.0.10, 00:10:42, Serial0/0
D 10.8.0.0/16 [90/2681856] via 10.0.0.10, 00:10:53, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/0
D 10.9.0.0/16 [90/2809856] via 10.0.0.10, 00:10:42, Serial0/0
R 10.2.0.0/16 [120/1] via 10.0.0.1, 00:00:12, Serial0/1
R 10.3.0.0/16 [120/1] via 10.0.0.1, 00:00:12, Serial0/1
C 10.0.0.0/30 is directly connected, Serial0/1
R 10.1.0.0/16 [120/1] via 10.0.0.1, 00:00:12, Serial0/1
R3#sh ip route
!
Gateway of last resort is not set
!
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
D 10.10.0.0/16 [90/2297856] via 10.8.0.2, 00:11:12, Serial0/0
D 10.11.0.0/16 [90/2297856] via 10.8.0.2, 00:11:12, Serial0/0
C 10.8.0.0/16 is directly connected, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/1
D 10.9.0.0/16 [90/2297856] via 10.8.0.2, 00:11:12, Serial0/0
D EX 10.2.0.0/16 [170/2195456] via 10.0.0.9, 00:03:15, Serial0/1
D EX 10.3.0.0/16 [170/2195456] via 10.0.0.9, 00:03:15, Serial0/1
D 10.0.0.0/30 [90/2681856] via 10.0.0.9, 00:11:20, Serial0/1
D EX 10.1.0.0/16 [170/2195456] via 10.0.0.9, 00:03:15, Serial0/1
D 10.10.0.0/16 [90/2297856] via 10.8.0.2, 00:11:12, Serial0/0
D 10.11.0.0/16 [90/2297856] via 10.8.0.2, 00:11:12, Serial0/0
C 10.8.0.0/16 is directly connected, Serial0/0
C 10.0.0.8/30 is directly connected, Serial0/1
D 10.9.0.0/16 [90/2297856] via 10.8.0.2, 00:11:12, Serial0/0
D EX 10.2.0.0/16 [170/2195456] via 10.0.0.9, 00:03:15, Serial0/1
D EX 10.3.0.0/16 [170/2195456] via 10.0.0.9, 00:03:15, Serial0/1
D 10.0.0.0/30 [90/2681856] via 10.0.0.9, 00:11:20, Serial0/1
D EX 10.1.0.0/16 [170/2195456] via 10.0.0.9, 00:03:15, Serial0/1
R4#sh ip route
!
Gateway of last resort is not set
!
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 2 masks
C 10.10.0.0/16 is directly connected, Loopback1
C 10.11.0.0/16 is directly connected, Loopback2
C 10.8.0.0/16 is directly connected, Serial0/1
D 10.0.0.8/30 [90/2681856] via 10.8.0.1, 00:11:29, Serial0/1
C 10.9.0.0/16 is directly connected, Loopback0
D EX 10.2.0.0/16 [170/2707456] via 10.8.0.1, 00:03:34, Serial0/1
D EX 10.3.0.0/16 [170/2707456] via 10.8.0.1, 00:03:34, Serial0/1
D 10.0.0.0/30 [90/3193856] via 10.8.0.1, 00:11:29, Serial0/1
D EX 10.1.0.0/16 [170/2707456] via 10.8.0.1, 00:03:34, Serial0/1
C 10.10.0.0/16 is directly connected, Loopback1
C 10.11.0.0/16 is directly connected, Loopback2
C 10.8.0.0/16 is directly connected, Serial0/1
D 10.0.0.8/30 [90/2681856] via 10.8.0.1, 00:11:29, Serial0/1
C 10.9.0.0/16 is directly connected, Loopback0
D EX 10.2.0.0/16 [170/2707456] via 10.8.0.1, 00:03:34, Serial0/1
D EX 10.3.0.0/16 [170/2707456] via 10.8.0.1, 00:03:34, Serial0/1
D 10.0.0.0/30 [90/3193856] via 10.8.0.1, 00:11:29, Serial0/1
D EX 10.1.0.0/16 [170/2707456] via 10.8.0.1, 00:03:34, Serial0/1
中间步骤简略了,主要是为了让大家更之间的看重分发的过程,避免不必要的干扰·
共同进步啊~
本文转自 tiger506 51CTO博客,原文链接:http://blog.51cto.com/tiger506/107855,如需转载请自行联系原作者