![EIGRP实验_实验详解](https://s2.51cto.com/attachment/201104/081953994.jpg?x-oss-process=image/resize,m_fixed,w_1184)
1. R1-->(s1/0=12.1.1.1/24;s1/1=172.16.21.1/24)
R2--> (s1/0=12.1.1.2/24;s0/1=172.16.21.2/24;f0/0=192.168.32.2/24)
R3-->(f0/0=192.168.32.3/24)
--------------------------------------------------------------------------
2.用EIGPR宣告其他网络(用反掩码宣告,AS=100)。
3.观察route table
5.配置MD5验证(R2与R3间接口)
6.在R2的f0/0接口做手工汇总:
.观察R2与R3的路由表
.所有网络都汇总为16位
.观察汇总前后,R2与R3的路由表变化
.在R2与R3上察看汇总路由AD值(sh ip rout X.X.X.x/16)
.在R2上汇总后,R1路由表变化?
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#exit
R1(config-if)#no sh
R1(config-if)#int s1/1
R1(config-if)#no sh
R1(config)#router eigrp 100
R1(config-router)#netw 12.1.1.0 0.0.0.255
R1(config-router)#netw 172.16.21.0 0.0.0.255
*Mar 1 00:06:29.295: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.2 (Serial1/1) is up: new adjacency
R1(config-router)#
*Mar 1 00:06:36.495: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.2 (Serial1/0) is up: new adjacency
R1(config-router)#
R1#sh ip
*Mar 1 00:07:08.115: %SYS-5-CONFIG_I: Configured from console by console
R1#sh ip ruote
^
% Invalid input detected at '^' marker.
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
C 172.16.21.0/24 is directly connected, Serial1/1
D 172.16.0.0/16 is a summary, 00:00:37, Null0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Serial1/0
D 12.0.0.0/8 is a summary, 00:00:37, Null0
D 192.168.32.0/24 [90/2195456] via 172.16.21.2, 00:00:28, Serial1/1
[90/2195456] via 12.1.1.2, 00:00:28, Serial1/0
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router eigrp 100
R1(config-router)#no auto
R1(config-router)#
*Mar 1 00:14:35.251: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.2 (Serial1/0) is resync: summary configured
*Mar 1 00:14:35.255: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.2 (Serial1/1) is resync: summary configured
R1(config-router)#
R1#sh
*Mar 1 00:14:40.063: %SYS-5-CONFIG_I: Configured from console by console
R1#sh 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
C 172.16.21.0/24 is directly connected, Serial1/1
D 172.16.0.0/16 [90/2681856] via 12.1.1.2, 00:00:07, Serial1/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Serial1/0
D 12.0.0.0/8 [90/2681856] via 172.16.21.2, 00:00:07, Serial1/1
D 192.168.32.0/24 [90/2195456] via 172.16.21.2, 00:07:57, Serial1/1
[90/2195456] via 12.1.1.2, 00:07:57, Serial1/0
R1#
*Mar 1 00:14:53.739: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.2 (Serial1/0) is resync: peer graceful-restart
*Mar 1 00:14:53.747: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.2 (Serial1/1) is resync: peer graceful-restart
R1#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#exit
R2(config-if)#no sh
R2(config-if)#ip add 1
*Mar 1 00:02:58.031: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
R2(config-if)#ip add 172.1
*Mar 1 00:02:59.035: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to up
R2(config-if)#ip add 172.16.21.2 255.255.255.0
R2(config-if)#int s1/0
R2(config-if)#no sh
R2(config-if)#ip add
*Mar 1 00:03:12.787: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
R2(config-if)#ip add
*Mar 1 00:03:13.795: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config-if)#int f0/0
R2(config-if)#no sh
R2(config-if)#
*Mar 1 00:03:34.291: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:03:35.291: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#ip add 192.168.32.2 255.255.255.0
R2(config)#router eigrp 100
R2(config-router)#netw 172.16.21.0 0.0.0.255
R2(config-router)#netw
*Mar 1 00:06:30.187: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.1 (Serial1/1) is up: new adjacency
R2(config-router)#netw 12.1.1.0 0.0.0.255
R2(config-router)#netw
*Mar 1 00:06:37.423: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.1 (Serial1/0) is up: new adjacency
R2(config-router)#netw 192.168.32.0 0.0.0.255
R2(config-router)#
*Mar 1 00:07:05.651: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is up: new adjacency
R2(config-router)#
R2#sh
*Mar 1 00:14:06.171: %SYS-5-CONFIG_I: Configured from console by console
R2#sh 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
C 172.16.21.0/24 is directly connected, Serial1/1
D 172.16.0.0/16 is a summary, 00:07:31, Null0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Serial1/0
D 12.0.0.0/8 is a summary, 00:07:31, Null0
C 192.168.32.0/24 is directly connected, FastEthernet0/0
R2#
*Mar 1 00:14:36.071: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.1 (Serial1/0) is resync: peer graceful-restart
*Mar 1 00:14:36.079: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.1 (Serial1/1) is resync: peer graceful-restart
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#router eig 100
R2(config-router)#no auto
R2(config-router)#
*Mar 1 00:14:54.459: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 172.16.21.1 (Serial1/1) is resync: summary configured
*Mar 1 00:14:54.463: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 12.1.1.1 (Serial1/0) is resync: summary configured
*Mar 1 00:14:54.467: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2(config-router)#
*Mar 1 00:15:04.675: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: peer graceful-restart
R2(config-router)#
R2#
*Mar 1 00:15:53.307: %SYS-5-CONFIG_I: Configured from console by console
R2(config-keychain)#exit
R2(config)#inR2(config-if)#ip authentication mode eigrp 100 md5
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#line console 0
Router(config-line)#exec-timeout 0 0
Router(config-line)#logg syn
Router(config-line)#exit
Router(config)#exit
R3(config-if)#no sh
R3(config-if)#ip add
*Mar 1 00:04:01.695: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:04:02.695: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R3(config-if)#ip add 192.168.32.3 255.255.255.0
R3(config-if)#exit
R3(config)#router eigrp 100
R3(config-router)#netw 192.168.32.0 0.0.0.255
R3(config-router)#
*Mar 1 00:07:05.323: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is up: new adjacency
R3(config-router)#
R3#sh ip r
*Mar 1 00:07:25.707: %SYS-5-CONFIG_I: Configured from console by console
R3#sh 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
D 12.0.0.0/8 [90/2195456] via 192.168.32.2, 00:00:20, FastEthernet0/0
C 192.168.32.0/24 is directly connected, FastEthernet0/0
R3#
*Mar 1 00:14:54.107: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is resync: peer graceful-restart
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router eig 100
R3(config-router)#no au
R3(config-router)#
*Mar 1 00:15:04.147: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is resync: summary configured
R3(config-router)#
R3#sh ip
*Mar 1 00:15:36.711: %SYS-5-CONFIG_I: Configured from console by console
R3#sh 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
D 172.16.21.0 [90/2195456] via 192.168.32.2, 00:00:44, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
D 12.1.1.0 [90/2195456] via 192.168.32.2, 00:00:44, FastEthernet0/0
C 192.168.32.0/24 is directly connected, FastEthernet0/0
R3(config)#key
R3(config)#key cha
R3(config)#key chain cisco
R3(config-keychain)#key 1
R3(config-keychain-key)#key str
R3(config-keychain-key)#key
R3(config-keychain-key)#key-string huawei
R3(config-keychain-key)#exit
R3(config-keychain)#exit
R3(config)#int f0/0
R3(config-if)#ip authen mode eigrp 100 md5
R3(config-if)#ip authen key
R3(config-if)#ip authen key-chain eigrp 100 cisco
R3(config-if)#
*Mar 1 00:28:07.783: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.2 (FastEthernet0/0) is up: new adjacency
R2(config-if)#ip s
*Mar 1 00:31:19.511: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2(config-if)#ip sum eig 100 172.16.0.0 255.255.0.0
R2(config-if)#ip
*Mar 1 00:31:39.615: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
R2(config-if)#ip sum eig 100 192.168.0.0 255.255.0.0
R2(config-if)#
*Mar 1 00:31:56.023: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.32.3 (FastEthernet0/0) is resync: summary configured
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
C 172.16.21.0/24 is directly connected, Serial1/1
D 172.16.0.0/16 is a summary, 00:00:03, Null0(只有eigrp是自动生成指向null0的路由)
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Serial1/0
D 12.1.0.0/16 is a summary, 00:00:03, Null0
C 192.168.32.0/24 is directly connected, FastEthernet0/0
D 192.168.0.0/16 is a summary, 00:00:03, Null0
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
12.0.0.0/16 is subnetted, 1 subnets
D 12.1.0.0 [90/2195456] via 192.168.32.2, 00:03:02, FastEthernet0/0
C 192.168.32.0/24 is directly connected, FastEthernet0/0
D 192.168.0.0/16 [90/307200] via 192.168.32.2, 00:02:25, FastEthernet0/0
Routing entry for 172.16.0.0/16
Known via "eigrp 100", distance 5, metric 2169856, type internal(手工汇总后ad值变为5)
Redistributing via eigrp 100
Routing Descriptor Blocks:
* directly connected, via Null0
Route metric is 2169856, traffic share count is 1
Total delay is 20000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 0
.计算R3的f0/0到R1的metric值(在R1上计算
Routing entry for 172.16.0.0/16
Known via "eigrp 100", distance 90, metric 2195456, type internal
Redistributing via eigrp 100
Last update from 192.168.32.2 on FastEthernet0/0, 00:18:01 ago
Routing Descriptor Blocks:
* 192.168.32.2, from 192.168.32.2, 00:18:01 ago, via FastEthernet0/0
Route metric is 2195456, traffic share count is 1
Total delay is 21000 microseconds, minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 1