router-out
技术员
帖子
74
精华
0
无忧币 349
积分 250
阅读权限 30
|
发表于:2007-8-11 11:37
标题:(EIGRP实验)EIGRP完美关闭
<上一帖 |
下一帖>
目录
提要
正文
TOPO如下
基本配置如下
验证
附注
提要:
讨论EIGRP中的EIGRP Graceful Shutdown这个特性


• You want to bring B down for maintenance; the traffic will switch to C because EIGRP will reroute around B when B is taken down
• The packets on the wire will be lost when B is taken off line, though—and this could be a lot of packets, if these are high speed links
• It’s better to get A and D to route around C while B can still forward traffic, so it happens gracefully
• To shut down routing in B, remove the EIGRP router process
• EIGRP will send a goodbye message, notifying its peers that it is going down, before it cleans up the entries in the routing table
• B can send a goodbye message telling A and D to reset their neighbor relationships
• 12.3(2.3)B 12.3(1.4)T 12.3(1.4) or later
• Old code: reset neighbor due to K value mismatch
• New code: reset neighbor due to goodbye message
TOPO如下:

基本配置如下:
l R1
l R2
l R3
l R4
R1
interface Ethernet0/0.12
encapsulation dot1Q 12
ip address 12.1.1.1 255.255.255.0
!
interface Serial2/0
ip address 13.1.1.1 255.255.255.0
!
router eigrp 1
network 12.1.1.0 0.0.0.255
network 13.1.1.0 0.0.0.255
no auto-summary
R2
interface Ethernet0/0.12
encapsulation dot1Q 12
ip address 12.1.1.2 255.255.255.0
!
interface Ethernet0/0.24
encapsulation dot1Q 24
ip address 24.1.1.2 255.255.255.0
!
!
router eigrp 1
network 12.1.1.0 0.0.0.255
network 24.1.1.0 0.0.0.255
no auto-summary
R3
interface Ethernet0/0.34
encapsulation dot1Q 34
ip address 34.1.1.3 255.255.255.0
no snmp trap link-status
!
interface Serial1/0
ip address 13.1.1.3 255.255.255.0
serial restart-delay 0
!
router eigrp 1
network 13.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
no auto-summary
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.0
!
interface Ethernet0/0.24
encapsulation dot1Q 24
ip address 24.1.1.4 255.255.255.0
!
interface Ethernet0/0.34
encapsulation dot1Q 34
ip address 34.1.1.4 255.255.255.0
!
!
router eigrp 1
network 4.4.4.0 0.0.0.255
network 24.1.1.0 0.0.0.255
network 34.1.1.0 0.0.0.255
no auto-summary
验证:
测试⑴:
打开r1的debug ip eigrp,在r2上关闭eigrp进程
r1#debug ip eigrp
IP-EIGRP Route Events debugging is on
r1#
*Mar 26 14:58:57.375: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 12.1.1.2 (Ethernet0/0.12) is down: Interface Goodbye received 收到goodbye消息
r1#
*Mar 26 14:58:57.419: IP-EIGRP(Default-IP-Routing-Table:1): 24.1.1.0/24 - do advertise out Serial2/0
*Mar 26 14:58:57.419: IP-EIGRP(Default-IP-Routing-Table:1): Int 24.1.1.0/24 metric 4294967295 - 256000 4294967295
*Mar 26 14:58:57.475: IP-EIGRP(Default-IP-Routing-Table:1): Int 4.4.4.0/24 metric 2323456 - 1657856 665600
*Mar 26 14:58:57.475: IP-EIGRP(Default-IP-Routing-Table:1): Int 34.1.1.0/24 metric 2195456 - 1657856 537600
*Mar 26 14:58:57.475: IP-EIGRP(Default-IP-Routing-Table:1): Processing incoming UPDATE packet
*Mar 26 14:58:57.475: IP-EIGRP(Default-IP-Routing-Table:1): Int 12.1.1.0/24 M 4294967295 - 1657856 4294967295 SM 4294967295 - 1657856 4294967295
r1#
*Mar 26 14:58:57.547: IP-EIGRP(Default-IP-Routing-Table:1): Processing incoming REPLY packet
*Mar 26 14:58:57.547: IP-EIGRP(Default-IP-Routing-Table:1): Int 24.1.1.0/24 M 2221056 - 1657856 563200 SM 307200 - 256000 51200
*Mar 26 14:58:57.583: IP-EIGRP(Default-IP-Routing-Table:1): Int 24.1.1.0/24 metric 2221056 - 1657856 563200
测试⑵:在r1上ping 4.4.4.4 2000个包,在r2上关闭eigrp进程,,看是否丢包
r2(config)#no router eigrp 1
r1#ping
Protocol [ip]:
Target IP address: 4.4.4.4
Repeat count [5]: 2000
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape s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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
发现没有丢包,并且收到goodbye 消息 ,由此我们发现真的是完美shutdown哦
|
 网络虽虚拟,技术无边界,来看看大家“真面目”! |
|