您的位置:首页 > 其它

eigrp 默认路由,接口被动状态

2013-09-11 12:03 211 查看




实验eigrp 默认路由,接口被动状态

 

R1:

int f0/0

ip add 193.1.1.1 255.255.255.0

no shu

route eigrp 66

network 193.1.1.0

R2:

int f0/1

193.1.2.1 255.255.255.0

no shu

route eigrp 66

network 193.1.2.0

R3:

int f0/0

ip add 193.1.1.2 255.255.255.0

no shu

int f0/1

ip add 193.1.2.2 255.255.255.0

no shu

int f1/0

ip add 193.1.3.1 255.255.255.0

no shu

route eigrp 66

network 193.1.1.0

network 193.1.2.0

network 193.1.3.0

 

基本配置完成后,在R1:

R1(config)#route eigrp 66
R1(config-router)#network 193.1.1.0
R1(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 66: Neighbor 193.1.1.2 (FastEthernet0/0) is up: new adjacency                  
与193.1.1.2建立邻居关系
 
R1(config-router)#exi
R1(config)#route eigrp 66
R1(config-router)#passive-interface default  
将参与EIGRP的接口全设置为默认被动接口状态
R1(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 66: Neighbor 193.1.1.2 (FastEthernet0/0) is down: holding time expired    在hold 时间没有接收到对方的hello包,邻居关系断开
了。被动接口一般设置在未连接下一路由的接口上,可以减少路由器处理的流量 
 
R1(config-router)#exi
R1(config-router)#no passive-interface f0/0  
将接口F0/0从被动设置为非被动
R1(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 66: Neighbor 193.1.1.2 (FastEthernet0/0) is up: new adjacency  
邻居关系又建立了
 
此时,在R1上PING R4的LOOP口172.17.2.1时是不通的。进行以下配置:

R3(config)#route eigrp 66
R3(config-router)#ip default-network 193.1.3.0      配置EIGRP默认网络,与默认路由作用基本相同,将未知流量发送至193.1.3.0网络
R3(config)#
此时R1路由表为
C    193.1.1.0/24 is directly connected, FastEthernet0/0

D    193.1.2.0/24 [90/30720] via 193.1.1.2, 00:25:46, FastEthernet0/0

D*   193.1.3.0/24 [90/30720] via 193.1.1.2, 00:13:47, FastEthernet0/0     即为EIGRP学习到的默认网络。默认网络需要采用主类网络,我用模拟器时要无类网络是不能PING通。书上说是用无类会出现未知错误。。这要注意

R1#
 
 
 

本文出自 “还不算晕” 博客,请务必保留此出处http://haibusuanyun.blog.51cto.com/2701158/528941
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: