注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临shaying110的博客

RSed-ISPing

 
 
 

日志

 
 

EIGRP简单配置  

2009-12-17 14:11:08|  分类: CISCO网络 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

EIGRP简单配置 - shaying110 - shaying110的博客

 

Lab A Lab B
int lo0 192.168.1.0/24 int lo0 192.168.4.0/25
int lo1 192.168.2.0/29 int lo1 192.168.5.0/26
int lo2 172.16.1.0/24 int lo2 172.16.50.0/28
int lo3 10.10.10.0/24 int lo3 10.20.20.0/25

 

基本配置

Lab A

int e1/0

ip add 172.16.10.1 255.255.255.0

no sh

int fa0/0

no sh

ip add 10.3.1.1 255.255.255.0

int lo0
ip add 192.168.1.1 255.255.255.0
int lo1
ip add 192.168.2.1 255.255.255.248
int lo2
ip add 172.16.1.1 255.255.255.0
int lo3
ip add 10.10.10.1 255.255.255.0

 router eigrp 200

net 0.0.0.0

no auto-summary

***************************************

Lab B

int e1/0

ip add 172.16.20.1 255.255.255.0

no sh

int fa0/0

no sh

ip add 10.3.1.2 255.255.255.0

int lo0
ip add 192.168.4.1 255.255.255.128
int lo1
ip add 192.168.5.1 255.255.255.192
int lo2
ip add 172.16.50.1 255.255.255.240
int lo3
ip add 10.20.20.1 255.255.255.128

router eigrp 100

net 0.0.0.0

*****************************

Lab A路由表:

R1(config-router)#do sh ip route eig

R1(config-router)#

由于A和B使用了不同的EIGRP AS号(100和200),且在A的EIGRP上关闭了自动汇总,故在A上没有一条EIGRP路由;

在路由器上配置EIGRP时,必须所有的路由器在同一个AS里,否则不能共享路由信息。下面看一下B的路由表:

R2#sh ip route ei
     172.16.0.0/16 is variably subnetted, 3 subnets, 3 masks
D       172.16.0.0/16 is a summary, 00:05:15, Null0
     192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
D       192.168.4.0/24 is a summary, 00:05:15, Null0
     192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
D       192.168.5.0/24 is a summary, 00:05:15, Null0
     10.0.0.0/8 is variably subnetted, 3 subnets, 3 masks
D       10.0.0.0/8 is a summary, 00:05:19, Null0
R2#

由于在B上没有关闭自动汇总,故有自动到NULLO的汇总路由,这是EIGRP特有的功能。但没有其它的路由,下面把A的EIGRP AS号改为100后,A和B的路由表如下:

R1(config-router)#do sh ip route eig   
     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D       172.16.0.0/16 [90/156160] via 10.3.1.2, 00:00:00, FastEthernet0/0
D    192.168.4.0/24 [90/156160] via 10.3.1.2, 00:00:00, FastEthernet0/0
D    192.168.5.0/24 [90/156160] via 10.3.1.2, 00:00:00, FastEthernet0/0
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D       10.20.20.0/25 [90/156160] via 10.3.1.2, 00:00:00, FastEthernet0/0
R1(config-router)#

R2#sh ip route ei
     172.16.0.0/16 is variably subnetted, 5 subnets, 3 masks
D       172.16.10.0/24 [90/284160] via 10.3.1.1, 00:04:13, FastEthernet0/0
D       172.16.0.0/16 is a summary, 00:13:35, Null0
D       172.16.1.0/24 [90/156160] via 10.3.1.1, 00:04:13, FastEthernet0/0
     192.168.4.0/24 is variably subnetted, 2 subnets, 2 masks
D       192.168.4.0/24 is a summary, 00:13:35, Null0
     192.168.5.0/24 is variably subnetted, 2 subnets, 2 masks
D       192.168.5.0/24 is a summary, 00:13:35, Null0
     10.0.0.0/8 is variably subnetted, 4 subnets, 3 masks
D       10.10.10.0/24 [90/156160] via 10.3.1.1, 00:04:13, FastEthernet0/0
D       10.0.0.0/8 is a summary, 00:13:39, Null0
D    192.168.1.0/24 [90/156160] via 10.3.1.1, 00:04:13, FastEthernet0/0
     192.168.2.0/29 is subnetted, 1 subnets
D       192.168.2.0 [90/156160] via 10.3.1.1, 00:04:13, FastEthernet0/0
R2#

下面在B上也关闭自动汇总,再看一下2个路由器上的路由表的变化:

R1(config-router)#do sh ip route eig
     172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
D       172.16.50.0/28 [90/156160] via 10.3.1.2, 00:00:07, FastEthernet0/0
D       172.16.20.0/24 [90/284160] via 10.3.1.2, 00:00:07, FastEthernet0/0
     192.168.4.0/25 is subnetted, 1 subnets
D       192.168.4.0 [90/156160] via 10.3.1.2, 00:00:07, FastEthernet0/0
     192.168.5.0/26 is subnetted, 1 subnets
D       192.168.5.0 [90/156160] via 10.3.1.2, 00:00:07, FastEthernet0/0
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D       10.20.20.0/25 [90/156160] via 10.3.1.2, 00:00:07, FastEthernet0/0
R1(config-router)#

R2#sh ip route eig
     172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
D       172.16.10.0/24 [90/284160] via 10.3.1.1, 00:01:15, FastEthernet0/0
D       172.16.1.0/24 [90/156160] via 10.3.1.1, 00:01:15, FastEthernet0/0
     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
D       10.10.10.0/24 [90/156160] via 10.3.1.1, 00:01:15, FastEthernet0/0
D    192.168.1.0/24 [90/156160] via 10.3.1.1, 00:01:15, FastEthernet0/0
     192.168.2.0/29 is subnetted, 1 subnets
D       192.168.2.0 [90/156160] via 10.3.1.1, 00:01:15, FastEthernet0/0
R2#

 

然后再A上启用被动接口,再看一下,有什么变化。

R1(config-router)#do sh ip route eig

R1(config-router)#

R1(config-router)#do sh ip eig ne
IP-EIGRP neighbors for process 100
R1(config-router)#

R2#sh ip eigrp neighbors
IP-EIGRP neighbors for process 100
R2#sh ip route eig      

R2#

什么也没有。EIGRP是靠Hello消息确认邻居的,一旦用被动接口,该接口就不再接收和发送EIGRP信息了,也就无法形成邻接关系。这一点与RIP不同,在RIP上,该接口只是不再发送RIP信息,但是能正常接收RIP信息。

 

 

 

 

  评论这张
 
阅读(144)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018