如图配置好基础命令。
在R1上开启debug eigrp packets query
R1#debug eigrp packets query
并且把R1的环回口sh掉
R1#int lo 0
R1(config-if)#sh
从输出我们可以看到,在还没有向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
*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区域发查询消息
转载于:https://blog.51cto.com/3824597/891339