Graceful Shutdown 功能允许 EIGRP 通告它正在被停用,这意味着邻居不需要等待保持计时器到期,并且可以立即关闭邻居,优雅关机是通过发送一个 K 值都设置为 255 的 hello 数据包来实现的。
在命名模式下,shutdown 命令可用于启动正常关闭,可按如下方式实现:
R2(config-router)#?
Router configuration commands:
<snip>
shutdown Shutdown this instance of EIGRP
R2(config-router-af)#?
Address Family configuration commands:
<snip>
shutdown Shutdown address family
timers Adjust peering based timers
topology Topology configuration mode
R2(config-router-af-interface)#?
Address Family Interfaces configuration commands:
<snip>
shutdown Disable Address-Family on interface
split-horizon Perform split horizon
summary-address Perform address summarization
下面的网络显示了两个路由器通告两个环回,Wireshark 被用于分析两个路由器之间的以太网段。
R1 优雅地关闭其 fa0/0 接口,如下所示:
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router eigrp ccie
R1(config-router)#address-family ipv4 as 100
R1(config-router-af)#af-interface fastEthernet 0/0
R1(config-router-af-interface)#shut
*Oct 6 20:49:35.899: %DUAL-5-NBRCHANGE: EIGRP-IPv4 100: Neighbor 1.2.1.2 (FastEthernet0/0) is down: interface down
以下数据包捕获显示设置为邻居的 hello 数据包,所有 K 值设置为 255