配置eigrp汇总

配置 eigrp 汇总
一、 实验目的
学习 eigrp 的基本配置,汇总的条件,汇总带来的问题,关闭汇总,以及手动汇总
二、 拓扑结构

三、 实验步骤
1.       准备工作
2.       基本配置
a)         基础的配置 见拓扑图
b)        测试
westasman#show ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            192.168.8.1     YES manual up                    up     
Serial1/0                  192.168.64.6    YES manual up                    up     
Serial1/1                  unassigned      YES unset  administratively down down   
Serial1/2                  192.168.64.2    YES manual up                    up     
Serial1/3                  unassigned      YES unset  administratively down down   
Loopback0                  172.16.9.1      YES manual up                    up     
Loopback1                  172.16.10.1     YES manual up                    up     
Loopback2                  172.16.11.1     YES manual up                    up     
Loopback3                  172.16.12.1     YES manual up                    up     
Loopback4                  172.16.13.1     YES manual up                    up     
Loopback5                  172.16.14.1     YES manual up                    up     
Loopback6                  172.16.15.1     YES manual up                    up     
 
 
sanjose2#show ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            172.16.1.2      YES manual up                    up     
Serial1/0                  192.168.64.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 
Ping 192.168.64.6
 
sanjose1#show ip int bri
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            172.16.1.1      YES manual up                    up     
Serial1/0                  192.168.64.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
Ping 192.168.64.2
Ping 172.16.1.2 6
结论 :没有问题
3.       eigrp 配置
westasman(config)#router eigrp 100
westasman(config-router)#network 192.168.64.0
westasman(config-router)#network 172.16.0.0
 
sanjose2(config)#router eigrp 100
sanjose2(config-router)#network 192.168.64.0   
sanjose2(config-router)#network 172.16.0.0
 
sanjose1(config)#router eigrp 100
sanjose1(config-router)#network 192.168.64.0
sanjose1(config-router)#network 172.16.0.0
 
 
sanjose1#sho 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
 
     172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
D       172.16.0.0/16 is a summary, 00:00:25, Null0  
C       172.16.1.0/24 is directly connected, FastEthernet0/0
     192.168.64.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.64.0/30 is directly connected, Serial1/0
D       192.168.64.0/24 is a summary, 00:00:23, Null0
D       192.168.64.4/30 [90/2681856] via 192.168.64.2, 00:00:38, Serial1/0
问题由于自动汇总 无法到达 172.16.8.0---172.16.15.0 网络
sanjose2#ping 172.16.8.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5) 不通
解决方案
关闭自动汇总
westasman(config)#router eigrp 100
westasman(config-router)#no auto-s
westasman(config-router)#no auto-summary
 
sanjose1#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
 
     172.16.0.0/16 is variably subnetted, 9 subnets, 2 masks
D       172.16.12.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.13.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.14.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.15.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.9.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.10.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.11.0/24 [90/2297856] via 192.168.64.2, 00:00:16, Serial1/0
D       172.16.0.0/16 is a summary, 00:04:47, Null0
C       172.16.1.0/24 is directly connected, FastEthernet0/0
     192.168.64.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.64.0/30 is directly connected, Serial1/0
D       192.168.64.0/24 is a summary, 00:04:44, Null0
D       192.168.64.4/30 [90/2681856] via 192.168.64.2, 00:00:21, Serial1/0
结果可到达 172.16.8.0---172.16.15.0 网络
 
sanjose1#ping 172.16.8.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/57/140 ms
问题 :路由条目太多 ,可进行手工汇总减少路由条目
westasman(config-if)#int s1/2                                              
westasman(config-if)#ip summary-address eigrp 100 172.16.8.0 255.255.248.0 
westasman(config-if)#int s1/0                                            
westasman(config-if)#ip summary-address eigrp 100 172.16.8.0 255.255.248.0
 
sanjose1#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
 
     172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
D       172.16.8.0/21 [90/2172416] via 192.168.64.2, 00:00:35, Serial1/0
D       172.16.0.0/16 is a summary, 00:17:33, Null0
C       172.16.1.0/24 is directly connected, FastEthernet0/0
     192.168.64.0/24 is variably subnetted, 3 subnets, 2 masks
C       192.168.64.0/30 is directly connected, Serial1/0
D       192.168.64.0/24 is a summary, 00:17:30, Null0
D       192.168.64.4/30 [90/2681856] via 192.168.64.2, 00:00:48, Serial1/0
 
 
sanjose1#ping 172.16.8.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/57/108 ms
测试成功
 
 
sanjose2#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
 
     172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
D       172.16.8.0/21 [90/2172416] via 192.168.64.6, 00:01:14, Serial1/0
D       172.16.0.0/16 is a summary, 00:18:21, Null0
C       172.16.1.0/24 is directly connected, FastEthernet0/0
     192.168.64.0/24 is variably subnetted, 3 subnets, 3 masks
D       192.168.64.0/30 [90/2681856] via 192.168.64.6, 00:01:14, Serial1/0
C       192.168.64.0/29 is directly connected, Serial1/0
D       192.168.64.0/24 is a summary, 00:16:31, Null0
 
sanjose2#ping 172.16.8.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.8.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/44/84 ms
测试成功
总结
   学习掌握 eigrp 的自动汇总的条件,所带来的问题,以及结局方法(关闭自动汇总并进行手工汇总)

你可能感兴趣的:(网络,路由,实验,思科,ccnp)