路由汇总之EIGRP手动汇总
EIGRP路由手动汇总实验详细配置
实验拓扑图:
实验中I
各个路由器的详细配置:
R1>en
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#int f0/0
R1(config-if)#ip add 172.16.40.1 255.255.252.0
R1(config-if)#no shut
R1(config-if)#int s1/0
R1(config-if)#clock rate 128000
R1(config-if)#ip add 172.16.44.1 255.255.255.252
R1(config-if)#no shut
R1(config-if)#
R1(config)#router eigrp 1
R1(config-router)#no auto
R1(config-router)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.40.1 YES manual up up
Serial1/0 172.16.44.1 YES manual up up
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down
R1(config-router)#net 172.16.40.1 255.255.252.0
R1(config-router)#net 172.16.44.1 255.255.255.252
R1(config-router)#
*Mar 1 00:33:10.895: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.44.2 (Serial1/0) is up: new adjacency
R2>en
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int f0/0
R2(config-if)#ip add 172.16.32.1 255.255.248.0
R2(config-if)#no shut
R2(config-if)#int s1/0
R2(config-if)#clock rate 128000
R2(config-if)#ip add 172.16.44.5 255.255.255.252
R2(config-if)#no shut
R2(config-if)#
R2(config-if)#exit
R2(config)#router eigrp 1
R2(config-router)#no auto
R2(config-router)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.32.1 YES manual up up
Serial1/0 172.16.44.5 YES manual up up
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down
R2(config-router)#net 172.16.32.1 255.255.248.0
R2(config-router)#net 172.16.44.5 255.255.255.252
R2(config-router)#
*Mar 1 00:32:24.679: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.44.6 (Serial1/0) is up: new adjacency
R2(config-router)#
R3>en
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#int f0/0
R3(config-if)#ip add 172.16.16.1 255.255.240.0
R3(config-if)#no shut
R3(config-if)#int s1/0
R3(config-if)#clock rate 128000
R3(config-if)#ip add 172.16.44.9 255.255.255.252
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#router eigrp 1
R3(config-router)#no auto
R3(config-router)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.16.1 YES manual up up
Serial1/0 172.16.44.9 YES manual up up
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down
R3(config-router)#net 172.16.16.1 255.255.240.0
R3(config-router)#net 172.16.44.9 255.255.255.252
R3(config-router)#
*Mar 1 00:32:02.843: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.44.10 (Serial1/0) is up: new adjacency
R3(config-router)#
R4>en
R4#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R4(config)#int f0/0
R4(config-if)#ip add 172.16.0.1 255.255.240.0
R4(config-if)#no shut
R4(config-if)#int s1/0
R4(config-if)#clock rate 128000
R4(config-if)#ip add 172.16.44.13 255.255.255.252
R4(config-if)#no shut
R4(config-if)#
R4(config-if)#exit
R4(config)#do show ip int b
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.0.1 YES manual up up
Serial1/0 172.16.44.13 YES manual up up
Serial1/1 unassigned YES unset administratively down down
Serial1/2 unassigned YES unset administratively down down
Serial1/3 unassigned YES unset administratively down down
R4(config)#router eigrp 1
R4(config-router)#no auto
R4(config-router)#net 172.16.0.1 255.255.240.0
R4(config-router)#net 172.16.44.13 255.255.255.252
R4(config-router)#
*Mar 1 00:31:44.775: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.44.14 (Serial1/0) is up: new adjacency
R4(config-router)#
R5>en
R5#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R5(config)#int s1/0
R5(config-if)#ip add 172.16.44.2 255.255.255.252
R5(config-if)#no shut
R5(config-if)#int s1/1
R5(config-if)#ip add 172.16.44.6 255.255.255.252
R5(config-if)#no shut
R5(config-if)#int s1/2
R5(config-if)#ip add 172.16.44.10 255.255.255.252
R5(config-if)#no shut
R5(config-if)#int s1/3
R5(config-if)#ip add 172.16.44.14 255.255.255.252
R5(config-if)#no shut
R5(config-if)#int s0/0
R5(config-if)#clock rate 128000
R5(config-if)#ip add 172.16.44.17 255.255.255.252
R5(config-if)#no shut
R5(config-if)#
R5(config-if)#exit
R5(config)#router eigrp 1
R5(config-router)#no auto-summary (关闭自动汇总)
R5(config-router)#do show ip int b // 显示接口的一些简单信息
Interface IP-Address OK? Method Status Protocol
Serial0/0 172.16.44.17 YES manual up up
Serial0/1 unassigned YES unset administratively down down
Serial0/2 unassigned YES unset administratively down down
Serial0/3 unassigned YES unset administratively down down
Serial1/0 172.16.44.2 YES manual up up
Serial1/1 172.16.44.6 YES manual up up
Serial1/2 172.16.44.10 YES manual up up
Serial1/3 172.16.44.14 YES manual up up
R5(config-router)#net 172.16.44.2 255.255.255.252
R5(config-router)#net 172.16.44.6 255.255.255.252
R5(config-router)#net 172.16.44.10 255.255.255.252
R5(config-router)#net 172.16.44.14 255.255.255.252
R5(config-router)#net 172.16.44.17 255.255.255.252
R5(config-router)#
R5(config-if)#ip summary-address eigrp 1 172.16.0.0 255.255.0.0(手动汇总)
R5(config-if)#
R6>en
R6#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R6(config)#int s0/0
R6(config-if)#ip add 172.16.44.18 255.255.255.252
R6(config-if)#no shut
R6(config-if)#do ping 172.
*Mar 1 00:22:46.475: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
R6(config-if)#do ping 172.16.
*Mar 1 00:22:47.479: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up
R6(config-if)#do ping 172.16.44.17
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.44.17, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/39/88 ms
R6(config-if)#
R6(config)#router eigrp 1
R6(config-router)#no auto
R6(config-router)#net 172.16.44.18 255.255.255.252
R6(config-router)#
*Mar 1 00:35:49.323: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.44.17 (Serial0/0) is up: new adjacency
R6(config-router)#do show ip route
//这是没有汇总之前的路由表信息 记录了每个网络的详细信息。
R6#show ip route
……………………………………. 省略内容
Gateway of last resort is not set
D 172.16.0.0/16 [90/2681856] via 172.16.44.17, 00:00:30, Serial0/0
//这是汇总之后的路由表信息,比之前的路由表小了很多,将所有网络都汇总到172.16.0.0 /16 这个地址上。减小了核心路由的负担 提升了路由的性能
注意:不是所有的网络地址都能汇总,汇总是有规律的
由于本人水平有限 讲述中难免出错 请各位朋友指出来 谢谢
转载于:https://blog.51cto.com/opencloud/565410