设为首页 收藏本站
查看: 1134|回复: 0

[经验分享] EIGRP邻居关系建立的条件分析

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2015-3-5 12:59:36 | 显示全部楼层 |阅读模式
QQ截图20150305125927.png
1:配置地址(略),并配置EIGRP
R1(config)#routereigrp 100
R1(config-router)#noauto-summary
R1(config-router)#net192.168.12.0
R1(config-router)#net10.0.0.0

R2(config)#routereigrp 100
R2(config-router)#noauto-summary
R2(config-router)#net192.168.12.0
R2(config-router)#net192.168.23.0
R2(config-router)#net172.16.0.0

R3(config)#routereigrp 200
R3(config-router)#noauto-summary
R3(config-router)#net192.168.23.0
R3(config-router)#net192.168.0.0
R3(config-router)#net192.168.1.0

2:邻居关系的建立条件—相同的AS号
R2#show ip eigrp neighbors
IP-EIGRPneighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT  RTO  Q  Seq
                                           (sec)         (ms)       Cnt Num
0   192.168.12.1            Fa0/0             13 00:01:18  154  924  0  3

以上显示说明:配置不同AS号的EIGRP路由器不能建立邻居关系。

R3(config)#norouter eigrp 200
R3(config)#routereigrp 100
R3(config-router)#noauto-summary
R3(config-router)#net192.168.23.0
R3(config-router)#net192.168.1.0   
R3(config-router)#net192.168.0.0

R2#show ip eigrp neighbors
IP-EIGRPneighbors for process 100
H   Address                 Interface       Hold Uptime   SRTT  RTO  Q  Seq
                                           (sec)         (ms)       Cnt Num
1   192.168.23.2            Se1/1             13 00:00:56  167 1002  0  6
0   192.168.12.1            Fa0/0             11 00:05:08  146  876  0  3

3:邻居关系的建立条件—相同的K值
R3(config)#routerei 100
R3(config-router)#metricweights 0 1 1 1 1 1

R2#show ip protocols
RoutingProtocol is "eigrp 100"
  Outgoing update filter list for allinterfaces is not set
  Incoming update filter list for allinterfaces is not set
  Default networks flagged in outgoing updates
  Default networks accepted from incomingupdates
  EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0
(以下省略部分输出)

R3(config-router)#
*Jan19 13:02:26.071: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.1(Serial1/0) is down: metric changed
R3(config-router)#
*Jan19 13:02:30.447: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.1(Serial1/0) is down: K-value mismatch

R2#
*Jan19 13:02:43.263: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.2(Serial1/1) is down: K-value mismatch
R2#
*Jan19 13:02:48.015: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.2(Serial1/1) is down: K-value mismatch

以上显示说明:EIGRP路由器配置不同的K值,不能建立邻居关系

R3(config)#routerei 100
R3(config-router)#metricweights 0 1 0 1 0 0

R3(config-router)#
*Jan19 13:04:09.495: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.1(Serial1/0) is up: new adjacency

R2#
*Jan19 13:04:09.091: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.2(Serial1/1) is up: new adjacency
4:邻居关系建立的条件—邻居接口的地址掩码相互包含
R2(config)#interfa0/0
R2(config-if)#shutdown
R2(config-if)#ipadd 192.168.12.2 255.255.255.252
R2(config-if)#noshutdown

R2(config-if)#
*Jan19 13:07:13.099: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1(FastEthernet0/0) is up: new adjacency

R3(config)#inters1/0
R3(config-if)#shutdown
R3(config-if)#ipadd 192.168.23.2 255.255.255.252
R3(config-if)#noshutdown

R3(config-if)#
*Jan19 13:08:32.215: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.23.1(Serial1/0) is up: new adjacency

R1(config-router)#interfa0/0
R1(config-if)#shutdown
R1(config-if)#ipadd 192.168.12.4255.255.255.0
R1(config-if)#noshutdown

R1(config-if)#
*Jan19 13:10:20.563: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is up: new adjacency
R1(config-if)#
*Jan19 13:11:40.191: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is down: retry limit exceeded
R1(config-if)#
*Jan19 13:11:43.151: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2 (FastEthernet0/0)is up: newadjacency

R2(config-if)#
*Jan19 13:10:16.131: IP-EIGRP(Default-IP-Routing-Table:100): Neighbor 192.168.12.4 not on commonsubnet for FastEthernet0/0
R2(config-if)#
*Jan19 13:10:29.763: IP-EIGRP(Default-IP-Routing-Table:100): Neighbor 192.168.12.4 not on commonsubnet for FastEthernet0/0

以上显示说明:在EIGRP建立邻居关系,无论是点到点网络还是广播网络,只要和邻居接口的地址掩码相互包含即可,这一点要注意区别OSPF的现象。

R1(config-router)#interfa0/0
R1(config-if)#ipadd 192.168.12.1 255.255.255.0
R1(config-if)#
*Jan19 13:13:47.659: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is down: address changed
R1(config-if)#
*Jan19 13:13:50.131: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2 (FastEthernet0/0)is up: newadjacency

5:邻居关系建立的条件—邻居接口的计时器不一定要相同,但要匹配
R1(config)#interfa0/0
R1(config-if)#shutdown
R1(config-if)#iphello-interval ei 100 1
R1(config-if)#iphold-time ei 100 3
R1(config-if)#noshutdown

R1(config-if)#
*Jan19 13:22:00.447: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is up: new adjacency

以上显示说明:在适当的计时器下,邻居计时器不同,也能够建立邻居关系。

R1(config)#interfa0/0
R1(config-if)#shutdown
R1(config-if)#iphello-interval ei 100 1
R1(config-if)#iphold-time ei 100 15

R2(config)#interfa0/0
R2(config-if)#iphello-interval ei 100 5                        
R2(config-if)#iphold-time ei 100 3

R1(config)#interfa0/0
R1(config-if)#noshutdown

R1(config-if)#
*Jan19 13:27:29.247: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is up: new adjacency
R1(config-if)#
*Jan19 13:27:33.231: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is down: holding time expired
*Jan19 13:27:33.883: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is up: new adjacency
R1(config-if)#
*Jan19 13:27:37.235: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is down: holding time expired
R1(config-if)#
*Jan19 13:27:38.323: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.2(FastEthernet0/0) is up: new adjacency
R2(config-if)#
*Jan19 13:27:28.723: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1(FastEthernet0/0) is up: new adjacency
R2(config-if)#
*Jan19 13:27:32.811: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1(FastEthernet0/0) is down: Interface Goodbye received
*Jan19 13:27:33.455: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1 (FastEthernet0/0)is up: newadjacency
R2(config-if)#
*Jan19 13:27:36.863: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1(FastEthernet0/0) is down: Interface Goodbye received
*Jan19 13:27:37.823: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1(FastEthernet0/0) is up: new adjacency
R2(config-if)#
*Jan19 13:27:41.979: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 192.168.12.1(FastEthernet0/0) is down: Interface Goodbye received

以上显示说明:邻居计时器不同,邻居关系也可能有问题。




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-43637-1-1.html 上篇帖子: EIGRP基本配置和常用show命令复习 下篇帖子: Cisco路由器密码重置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表