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

实验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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值