EIGRP的stub实验

 

如图配置好基础命令。

在R1上开启debug eigrp packets query

R1#debug eigrp packets query

并且把R1的环回口sh掉

R1#int lo 0

R1(config-if)#sh

此时R3未输入stub时
*Mar  1 00:24:47.455: EIGRP: Enqueueing QUERY on Serial0/1 iidbQ un/rely 0/1 serno 45-46
*Mar  1 00:24:47.459: EIGRP: Enqueueing QUERY on Serial0/1 nbr 13.1.1.3 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 45-46
*Mar  1 00:24:47.463: EIGRP: Sending QUERY on Serial0/1 nbr 13.1.1.3
*Mar  1 00:24:47.467:   AS 90, Flags 0x0, Seq 48/18 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 45-46
*Mar  1 00:24:47.467: EIGRP: Enqueueing QUERY on Serial0/0 iidbQ un/rely 0/1 serno 45-46
*Mar  1 00:24:47.471: EIGRP: Enqueueing QUERY on Serial0/0 nbr 12.1.1.2 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 45-46
*Mar  1 00:24:47.475: EIGRP: Sending QUERY on Serial0/0 nbr 12.1.1.2
*Mar  1 00:24:47.479:   AS 90, Flags 0x0, Seq 49/20 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 45-46
R1(config)#
*Mar  1 00:24:49.411: %LINK-5-CHANGED: Interface Loopback0, changed state to administratively down
*Mar  1 00:24:50.411: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to down

从输出我们可以看到,在还没有向R3输入stub命令时,R1要向R3发送查询命令。

接着我们先又把R1的环回口激活

R1(config-if)#no sh

然后在R3上输入:

R3(config)#router ei 90

R3(config-router)#eigrp st

R3(config-router)#eigrp stub

 

在把R1上的环回口干掉
 
R3开启stub时

*Mar  1 00:28:50.335: EIGRP: Enqueueing QUERY on Serial0/1 iidbQ un/rely 0/1 serno 51-52

*Mar  1 00:28:50.339: EIGRP: Enqueueing QUERY on Serial0/1 nbr 13.1.1.3 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 51-52

*Mar  1 00:28:50.343: EIGRP: Enqueueing QUERY on Serial0/0 iidbQ un/rely 0/1 serno 51-52

*Mar  1 00:28:50.347: EIGRP: Enqueueing QUERY on Serial0/0 nbr 12.1.1.2 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 51-52

*Mar  1 00:28:50.351: EIGRP: Sending QUERY on Serial0/0 nbr 12.1.1.2

*Mar  1 00:28:50.351:   AS 90, Flags 0x0, Seq 57/24 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 51-52

*Mar  1 00:28:50.627: EIGRP: Received QUERY on Serial0/1 nbr 13.1.1.3

R1(config)#

*Mar  1 00:28:50.627:   AS 90, Flags 0x0, Seq 23/59 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0

R1(config)#

结果出来了,R1只向R2发送查询消息了

所以eigrp stub区域设置了之后,路由器在丢失路由条目的时候不会向stub区域发查询消息

 

你可能感兴趣的:(EIGRP,stub实验)