EIGRP路由手动汇总实验详细配置

实验拓扑图:

路由汇总之EIGRP手动汇总_汇总

 

实验中I

 

 

实验中IP的规划以及子网汇总的计算:
假如公司申请到这样的IP地址:172.16.0.0 /16
-------------------------------------------------------------------------------------------------------------------------------------------------------
生产部有4000台主机
2n>=4000 n=12 32-12=20 240
网络地址:172.16.0.0
子网掩码:255.255.240.0
可用的IP地址:
172.16.0.1 - 172.16.15.254
-----------------------------------------------------------------------------------------------------------------------------------------------------
销售部有3000台主机
2n=>=3000 n=12 32-12=20 240
网络地址:172.16.16.0
子网掩码:255.255.240.0
可用的IP地址:
172.16.16.1 - 172.16.31.254
-----------------------------------------------------------------------------------------------------------------------------------------------------
 
 
技术部有2000台主机
2n>=2000 n=11 32-11=21 248
网络地址:172.16.32.0
子网掩码:255.255.248.0
可用IP地址:
172.16.32.1 - 172.16.39.254
-----------------------------------------------------------------------------------------------------------------------------------------------------
人事部有1000台主机
2n>=1000 n=10 32-10=22 252
网络地址:172.16.40.0
子网掩码:255.255.252.0
可用IP地址:
172.16.40.1 - 172.16.43.254
-----------------------------------------------------------------------------------------------------------------------------------------------------
路由器之间IP规划
R1<======>R5
网络地址:172.16.44.0
子网掩码:255.255.255.252
可用IP地址:172.16.44.1 - 172.16.44.2
R2<======>R5
网络地址:172.16.44.4
子网掩码:255.255.255.252
可用IP地址:172.16.44.5 - 172.16.44.6
R3<======>R5
网络地址:172.16.44.8
子网掩码:255.255.255.252
可用IP地址:172.16.44.9 - 172.16.44.10
R4<======>R5
网络地址:172.16.44.12
子网掩码:255.255.255.252
可用IP地址:172.16.44.13 - 172.16.44.14
R5<======>R6
网络地址:172.16.44.16
子网掩码:255.255.255.252
可用IP地址:172.16.44.17 - 172.16.44.18
-----------------------------------------------------------------------------------------------------------------------------------------------------
汇总地址计算:
172.16.0.0    
10101100.00010000.00000000.00000000(汇总地址就是它 前面有16位相同 所以汇总IP地址为172.16.0.0 /16)
172.16.16.0  
10101100.00010000.00010000.00000000
172.16.32.0  
10101100.00010000.00100000.00000000
172.16.44.0  
10101100.00010000.00101100.00000000
172.16.44.4  
10101100.00010000.00101100.00000100
172.16.44.8 
10101100.00010000.00101100.00001000
172.16.44.12 
10101100.00010000.00101100.00001100
172.16.44.16 
10101100.00010000.00101100.00010000

各个路由器的详细配置:

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

 
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C       172.16.44.16/30 is directly connected, Serial0/0

D       172.16.0.0/16 [90/2681856] via 172.16.44.17, 00:00:30, Serial0/0

//这是汇总之后的路由表信息,比之前的路由表小了很多,将所有网络都汇总到172.16.0.0 /16 这个地址上。减小了核心路由的负担 提升了路由的性能

注意:不是所有的网络地址都能汇总,汇总是有规律的

由于本人水平有限 讲述中难免出错 请各位朋友指出来 谢谢



 

 

 

 

 

 

 

 
Gateway of last resort is not set
 
     172.16.0.0/16 is variably subnetted, 9 subnets, 4 masks
C       172.16.44.16/30 is directly connected, Serial0/0
D       172.16.44.0/30 [90/2681856] via 172.16.44.17, 00:00:12, Serial0/0
D       172.16.44.4/30 [90/2681856] via 172.16.44.17, 00:00:12, Serial0/0
D       172.16.40.0/22 [90/2684416] via 172.16.44.17, 00:00:12, Serial0/0
D       172.16.44.8/30 [90/2681856] via 172.16.44.17, 00:00:12, Serial0/0
D       172.16.44.12/30 [90/2681856] via 172.16.44.17, 00:00:12,Serial0/0
D       172.16.32.0/21 [90/2684416] via 172.16.44.17, 00:00:12, Serial0/0
D       172.16.16.0/20 [90/2684416] via 172.16.44.17, 00:00:12, Serial0/0
D       172.16.0.0/20 [90/2684416] via 172.16.44.17, 00:00:12, Serial0/0