1、网络拓扑
2、基础Eigrp配置
R1> R1>enable R1#config t Enter configuration commands, one per line. End with CNTL/Z. R1(config)#interface f0/0 R1(config-if)#ip add 172.16.12.1 255.255.255.0 R1(config-if)#no shut R1(config-if)#exit R1(config)#interface loopback 0 R1(config-if)#ip add 1.1.1.1 255.255.255.0 R1(config-if)#no shu R1(config-if)#no shutdown R1(config-if)#exit R1(config)#router eigrp 100 R1(config-router)#network 172.16.12.1 0.0.0.0 R1(config-router)#network 1.1.1.1 0.0.0.0 R1(config-router)#exit R1(config)# R1(config)#interface s1/1 R1(config-if)#ip add 1.1.13.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#router eigrp 100 R1(config-router)#1.1.13.1 255.255.255.0 R1(config-router)#network 1.1.13.1 255.255.255.0 R1(config-router)# R1(config-router)# R1(config-router)# R1(config-router)#end R1# R1# R1(config)#router eigrp 100 R1(config-router)#no auto-summary R2> R2>enable R2#config t R2(config)#interface f0/0 R2(config-if)#ip add 172.16.12.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)# R2(config)#interface s1/0 R2(config-if)#ip add 192.168.23.1 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#router eigrp 100 R2(config-router)#network 192.168.23.1 0.0.0.0 R2(config-router)#network 172.16.12.2 0.0.0.0 R2(config-router)#end R2(config)#router eigrp 100 R2(config-router)#no auto R2(config-router)#no auto-summary R2(config-router)# R2(config-router)# R2(config-router)# R2(config-router)# R2(config-router)#end R2#show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(192.168.23.1) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 1.1.1.0/24, 1 successors, FD is 156160 via 172.16.12.1 (156160/128256), FastEthernet0/0 P 3.3.3.0/24, 1 successors, FD is 2297856 via 192.168.23.2 (2297856/128256), Serial1/0 P 1.1.13.0/24, 1 successors, FD is 2172416 via 172.16.12.1 (2172416/2169856), FastEthernet0/0 via 192.168.23.2 (2681856/2169856), Serial1/0 P 192.168.23.0/24, 1 successors, FD is 2169856 via Connected, Serial1/0 P 172.16.12.0/24, 1 successors, FD is 28160 via Connected, FastEthernet0/0 R2# R3>enable R3#config t R3(config)# R3(config)#interface s1/0 R3(config-if)#ip add 192.168.23.2 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface loopback 0 R3(config-if)#ip add 3.3.3.3 255.255.255.0 R3(config-if)#no shutdown R3(config)#router eigrp 100 R3(config-router)#network 3.3.3.3 0.0.0.0 R3(config-router)#network 192.168.23.2 0.0.0.0 R3(config-router)#end 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 1.0.0.0/8 [90/2300416] via 192.168.23.1, 00:00:11, Serial1/0 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 3.3.3.0/24 is directly connected, Loopback0 D 3.0.0.0/8 is a summary, 00:00:16, Null0 D 172.16.0.0/16 [90/2172416] via 192.168.23.1, 00:00:11, Serial1/0 C 192.168.23.0/24 is directly connected, Serial1/0 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 = 56/75/88 ms R3# R3# R3# R3(config)#interface s1/1 R3(config-if)#ip add 1.1.13.2 255.255.255.0 R3(config-if)#exit R3(config)#router eigrp 100 R3(config-router)#network 1.1.13.2 0.0.0.0 R3(config-router)#end R3# R3# R3# 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 1.0.0.0/8 [90/2300416] via 192.168.23.1, 00:30:48, Serial1/0 3.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 3.3.3.0/24 is directly connected, Loopback0 D 3.0.0.0/8 is a summary, 00:30:53, Null0 D 172.16.0.0/16 [90/2172416] via 192.168.23.1, 00:30:48, Serial1/0 C 192.168.23.0/24 is directly connected, Serial1/0 R3# R3# R3#show ip eigrp topology IP-EIGRP Topology Table for AS(100)/ID(3.3.3.3) Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia Status P 1.0.0.0/8, 1 successors, FD is 2300416 via 192.168.23.1 (2300416/156160), Serial1/0 P 3.0.0.0/8, 1 successors, FD is 128256 via Summary (128256/0), Null0 P 3.3.3.0/24, 1 successors, FD is 128256 via Connected, Loopback0 P 192.168.23.0/24, 1 successors, FD is 2169856 via Connected, Serial1/0 P 172.16.0.0/16, 1 successors, FD is 2172416 via 192.168.23.1 (2172416/28160), Serial1/0 R3# R3#show ip eigrp neighbors IP-EIGRP neighbors for process 100 H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num 1 1.1.13.1 Se1/1 13 00:00:01 1 2000 2 5 0 192.168.23.1 Se1/0 13 00:33:34 614 3684 R3(config)#router eigrp 100 R3(config-router)#no aut R3(config-router)#no auto-summary R3(config-router)#end R3# R3# R