取消
显示结果 
搜索替代 
您的意思是: 
cancel
1296
查看次数
10
有帮助
0
评论
HakinXu
Spotlight
Spotlight

最近工作中遇到了一个关于eigrp的hello-time / hold-time的小问题,一时间组内的所有人似乎都记忆恍惚了。。


背景:

 

同事S在准备LAN迁移的时候,发现现有路由器上eigrp的配置是:

 

af-interface LAN-connected-interface
hello-interval 20
hold-time 60
no passive-interface
exit-af-interface

 

而对端Nexus设备的配置是:

 

af-interface router-connected-interface
no passive-interface
exit-af-interface

 

使用 <sh ip eigrp interfaces detail interface-name>命令可以看到使用的默认hello / hold 值:

 

Nexus#sh ip ei interfaces detail my-interface
 -omit-
Hello-interval is 5, Hold-time is 15

 

观察比较两端的hello/hold值后,同事S心里产生了大大的疑惑 :

 

Nexus这端的Hold只有15s,而对端的hello interval是20s,这样对端还没发过来hello之前,Nexus这边到了15s,不就认为对端已经down了吗???(・∀・(・∀・(・∀・*)

 

印象中好像Eigrp也确实要求这端的hold时间要比对端的hello时间长才行???

 

此时组内所有人都一致认为:没错啊,是这样的啊,它这个是怎么回事,邻居还这么稳定???

 

。。。。。。

 

在nexus上使用 <show ip eigrp nei>:

 

nexus#sh ip ei nei
EIGRP-IPv4 VR(my_process) Address-Family Neighbors for AS(1)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
4 10.6.6.6 my-interface 57 18:33:04 89 534 0 27157
0 10.8.8.8 new-interface 11 1w2d 1 100 0 132426

 

观察到与对端设备邻居的hold时间居然是57s,远大于配置的15s。。同样的在路由器上观察到的hold时间也一直是小于15s的状态。。。

 

根据观察到的现象来看,似乎每台设备都在用对端的Hold-time计时,难道是之前的“理解”有错误?

 

查了查官方文档(CCNA的书已经找不到了。。(* ̄3 ̄)╭):

 

The rate at which EIGRP sends hello packets is called the hello interval, and you can adjust it per interface with the ip hello-interval eigrp command. The hold time is the amount of time that a router will consider a neighbor alive without receiving a hello packet. The hold time is typically three times the hello interval, by default, 15 seconds and 180 seconds. You can adjust the hold time with the ip hold-time eigrp command.

Note that if you change the hello interval, the hold time is not automatically adjusted to account for this change - you must manually adjust the hold time to reflect the configured hello interval.

It is possible for two routers to become EIGRP neighbors even though the hello and hold timers do not match. The hold time is included in the hello packets so each neighbor should stay alive even though the hello interval and hold timers do not match.

 

https://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/16406-eigrp-toc.html

 

嗯。。这样就发现Hold-time会伴随hello包一起发给邻居设备,邻居设备会根据这个Hold-time来判断对端的状态。

 

所以说只要每台设备各自配置的hold-time大于hello-time(默认hold为hello的3倍),邻居就永远不会down。。

 

后续又根据结论做了个测试,一端设备配置的hello为1000,hold为3000,而对端设备配置为hello=5,hold=15。邻居状态也是一直很稳定 ( ̄o ̄) . z Z

 

 

同事S:可是大家似乎都记得彼端的hold时间好像要比对端设备的hello时间大啊 ( ̄o ̄) . z Z 难道是网络的曼德拉效应~~ (* ̄;( ̄ *)

 

 

入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接