r2#conf t
r2(config)#router eigrp 200
r2(config-router)#no au
r2(config-router)#net 192.168.23.0 0.0.0.255
r2(config-router)# redistribute eigrp 100 metric 1000 100 255 1 1500
r2(config-router)#^Z
R3:
r3>en
r3#conf t
r3(config)#int f0/0
r3(config-if)#ip add 192.168.23.3 255.255.255.0
r3(config-if)#no sh
r3(config-if)#int lo 0
r3(config-if)#ip add 3.3.3.3 255.255.255.255
r3(config-if)#no sh
r3(config-if)#^Z
r3#conf t
r3(config)#router eigrp 200
r3(config-router)#no au
r3(config-router)#net 192.168.23.3 0.0.0.255
r3(config-router)#net 3.3.3.3 0.0.0.0
r3(config-router)#^Z
实验结果测试:
r1#ping 3.3.3.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/72/152 ms
r3#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/92/184 ms
r1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.12.0/24 is directly connected, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
D EX 3.3.3.3 [170/2588160] via 192.168.12.2, 00:23:34, FastEthernet0/0
D EX 192.168.23.0/24 [170/2588160] via 192.168.12.2, 00:23:34, FastEthernet0/0
r3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
D EX 192.168.12.0/24 [170/2588160] via 192.168.23.2, 00:23:15, FastEthernet0/0
1.0.0.0/32 is subnetted, 1 subnets
D EX 1.1.1.1 [170/2588160] via 192.168.23.2, 00:23:15, FastEthernet0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
C 192.168.23.0/24 is directly connected, FastEthernet0/0
r1#show ip route 3.3.3.3
Routing entry for 3.3.3.3/32
Known via "eigrp 100", distance 170, metric 2588160, type external
Redistributing via eigrp 100
Last update from 192.168.12.2 on FastEthernet0/0, 00:25:17 ago
Routing Descriptor Blocks:
* 192.168.12.2, from 192.168.12.2, 00:25:17 ago, via FastEthernet0/0
Route metric is 2588160, traffic share count is 1
Total delay is 1100 microseconds, minimum bandwidth is 1000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1
r3#show ip route 1.1.1.1
Routing entry for 1.1.1.1/32
Known via "eigrp 200", distance 170, metric 2588160, type external
Redistributing via eigrp 200
Last update from 192.168.23.2 on FastEthernet0/0, 00:24:58 ago
Routing Descriptor Blocks:
* 192.168.23.2, from 192.168.23.2, 00:24:58 ago, via FastEthernet0/0
Route metric is 2588160, traffic share count is 1
Total delay is 1100 microseconds, minimum bandwidth is 1000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1