本文共 3768 字,大约阅读时间需要 12 分钟。
一、实验拓扑:
二、实验要求:三、命令部署:
1、R1(config)#ip route 4.4.4.0 255.255.255.0 s2/0R1(config)#ip route 0.0.0.0 0.0.0.0 s2/0R1(config)#router rip
R1(config-router)#redistribute ospf 110 metric 10R1(config)#router rip
R1(config-router)#redistribute staticR1(config-router)#redistribute connectedR1(config-router)#default-metric 112、
R1(config)#router ospf 110R1(config-router)#redistribute rip subnetsR1(config-router)#redistribute static subnetsR1(config-router)#default-metric 21四、验证:
1、R2#show ip route 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/0R2#show ip route
2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 [120/10] via 12.1.1.1, 00:00:28, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/0R 13.0.0.0/8 [120/10] via 12.1.1.1, 00:00:28, FastEthernet0/0R2#show ip route
2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 [120/10] via 12.1.1.1, 00:00:23, FastEthernet0/0R 4.0.0.0/8 [120/1] via 12.1.1.1, 00:00:19, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/0R 13.0.0.0/8 [120/10] via 12.1.1.1, 00:00:23, FastEthernet0/0R* 0.0.0.0/0 [120/1] via 12.1.1.1, 00:00:20, FastEthernet0/0R2#show ip route
2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 [120/10] via 12.1.1.1, 00:00:08, FastEthernet0/0R 4.0.0.0/8 [120/1] via 12.1.1.1, 00:00:08, FastEthernet0/0R 200.1.1.0/24 [120/1] via 12.1.1.1, 00:00:08, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/0R 13.0.0.0/8 [120/1] via 12.1.1.1, 00:00:08, FastEthernet0/0R 14.0.0.0/8 [120/1] via 12.1.1.1, 00:00:10, FastEthernet0/0R* 0.0.0.0/0 [120/1] via 12.1.1.1, 00:00:10, FastEthernet0/0R2#show ip route
2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 [120/10] via 12.1.1.1, 00:00:16, FastEthernet0/0R 4.0.0.0/8 [120/11] via 12.1.1.1, 00:00:16, FastEthernet0/0R 200.1.1.0/24 [120/1] via 12.1.1.1, 00:00:16, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, FastEthernet0/0R 13.0.0.0/8 [120/1] via 12.1.1.1, 00:00:16, FastEthernet0/0R 14.0.0.0/8 [120/1] via 12.1.1.1, 00:00:18, FastEthernet0/0R* 0.0.0.0/0 [120/11] via 12.1.1.1, 00:00:18, FastEthernet0/02、R3#show ip routeO E2 2.0.0.0/8 [110/20] via 13.1.1.1, 00:00:59, FastEthernet0/03.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback012.0.0.0/24 is subnetted, 1 subnetsO E2 12.1.1.0 [110/20] via 13.1.1.1, 00:00:35, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet0/0R3#show ip route
O E2 2.0.0.0/8 [110/20] via 13.1.1.1, 00:02:23, FastEthernet0/03.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback04.0.0.0/24 is subnetted, 1 subnetsO E2 4.4.4.0 [110/20] via 13.1.1.1, 00:00:08, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsO E2 12.1.1.0 [110/20] via 13.1.1.1, 00:01:59, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet0/0R3#show ip route
O E2 2.0.0.0/8 [110/21] via 13.1.1.1, 00:00:16, FastEthernet0/03.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback04.0.0.0/24 is subnetted, 1 subnetsO E2 4.4.4.0 [110/21] via 13.1.1.1, 00:00:16, FastEthernet0/012.0.0.0/24 is subnetted, 1 subnetsO E2 12.1.1.0 [110/21] via 13.1.1.1, 00:00:16, FastEthernet0/013.0.0.0/24 is subnetted, 1 subnetsC 13.1.1.0 is directly connected, FastEthernet0/0转载于:https://blog.51cto.com/13856092/2138343