实例解析验证EIGRP STUB 区域
创始人
2024-07-25 20:11:37
0

EIGRP STUB区域设置了之后,路由器在丢失路由条目的时候不会向 STUB区域发查询消息,在上述top中我们可以把Rc做成 STUB区域,假如Rb的loop0 口down掉了之后,Rb不会向Rc发送查询消息。我们先在这3太路由器上全部启用EIGRP 10 ,所有的接口都参与到EIGRP 10 在没有设置stub的时候,得到路由表如下:

  1. RA:  
  2. 1.0.0.0/24 is subnetted, 1 subnets  
  3. C       1.1.1.0 is directly connected, Loopback0  
  4. 2.0.0.0/24 is subnetted, 1 subnets  
  5. D       2.2.2.0 [90/2297000] via 12.1.1.2, 00:01:26, Serial2/1  
  6. 3.0.0.0/24 is subnetted, 1 subnets  
  7. D       3.3.3.0 [90/2297000] via 12.1.1.2, 00:00:37, Serial2/1  
  8. 23.0.0.0/30 is subnetted, 1 subnets  
  9. D       23.1.1.0 [90/2297000] via 12.1.1.2, 00:01:26, Serial2/1  
  10. 12.0.0.0/30 is subnetted, 1 subnets  
  11. C       12.1.1.0 is directly connected, Serial2/1 

 

 

  1. Rb:  
  2. 1.0.0.0/24 is subnetted, 1 subnets  
  3. D       1.1.1.0 [90/2297000] via 12.1.1.1, 00:02:30, Serial2/1  
  4. 2.0.0.0/24 is subnetted, 1 subnets  
  5. C       2.2.2.0 is directly connected, Loopback0  
  6. 3.0.0.0/24 is subnetted, 1 subnets  
  7. D       3.3.3.0 [90/2297000] via 23.1.1.1, 00:01:41, Serial2/2  
  8. 23.0.0.0/30 is subnetted, 1 subnets  
  9. C       23.1.1.0 is directly connected, Serial2/2  
  10. 12.0.0.0/30 is subnetted, 1 subnets  
  11. C       12.1.1.0 is directly connected, Serial2/1 

 

 

  1. Rc:  
  2. 1.0.0.0/24 is subnetted, 1 subnets  
  3. D       1.1.1.0 [90/2297000] via 23.1.1.2, 00:02:06, Serial2/2  
  4. 2.0.0.0/24 is subnetted, 1 subnets  
  5. D       2.2.2.0 [90/2297000] via 23.1.1.2, 00:02:06, Serial2/2  
  6. 3.0.0.0/24 is subnetted, 1 subnets  
  7. C       3.3.3.0 is directly connected, Loopback0  
  8. 23.0.0.0/30 is subnetted, 1 subnets  
  9. C       23.1.1.0 is directly connected, Serial2/2  
  10. 12.0.0.0/30 is subnetted, 1 subnets  
  11. D       12.1.1.0 [90/2297000] via 23.1.1.2, 00:02:06, Serial2/2 

 

下面,我们开始试验,在Rc上没有设置stub的时候,在Rb上打开debug

  1. RB#debug eigrp packets query  
  2. RB EIGRP Packets debugging is on  
  3. (QUERY)  
  4. RB#config t  
  5. Enter configuration commands, one per line.  End with CNTL/Z.  
  6. RB(config)#  
  7. RB(config)#int loopback 0  
  8. RB(config-if)#shu  
  9. *Mar  1 00:16:38.587: EIGRP: Enqueueing QUERY on Serial2/1 iidbQ un/rely 0/1 serno 6-6  
  10. *Mar  1 00:16:38.591: EIGRP: Enqueueing QUERY on Serial2/1 nbr 12.1.1.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 6-6  
  11. *Mar  1 00:16:38.599: EIGRP: Sending QUERY on Serial2/1 nbr 12.1.1.1  (向RA发送查询)  
  12. *Mar  1 00:16:38.603:   AS 10, Flags 0x0, Seq 10/3 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 6-6  
  13. *Mar  1 00:16:38.607: EIGRP: Enqueueing QUERY on Serial2/2 iidbQ un/rely 0/1 serno 6-6  
  14. *Mar  1 00:16:38.611: EIGRP: Enqueueing QUERY on Serial2/2 nbr 23.1.1.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 6-6  
  15. *Mar  1 00:16:38.619: EIGRP: Sending QUERY on Serial2/2 nbr 23.1.1.1  (向RC发送查查询)  
  16. *Mar  1 00:16:38.623:   AS 10, Flags 0x0, Seq 11/3 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 6-6 

 

可以看到,没有设置stub的时候 Rb会向RA和 Rc发送查询消息。下面我们把Rc做成 STUB区域.

我们先把RB上的loopback 0 打开,让网络回到正常的收敛

  1. Rb(config-it)# int lo 0  
  2. Rb(config-it)#no sh 

 

然后把RC设置成STUB区域

  1. RC(config)#router ei 100  
  2. RC(config-router)#eigrp stub receive-only 

 

再关掉RB上的loopback 0

再来看RB的查询情况:

  1. *Mar  1 00:28:13.139: EIGRP: Enqueueing QUERY on Serial2/2 iidbQ un/rely 0/1 serno 9-9  
  2. *Mar  1 00: 28:13.143: EIGRP: Enqueueing QUERY on Serial2/2 nbr 23.1.1.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 9-9  
  3. *Mar  1 00: 28:13.151: EIGRP: Enqueueing QUERY on Serial2/1 iidbQ un/rely 0/1 serno 9-9  
  4. *Mar  1 00: 28:13.155: EIGRP: Enqueueing QUERY on Serial2/1 nbr 12.1.1.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 9-9  
  5. *Mar  1 00: 28:13.163: EIGRP: Sending QUERY on Serial2/1 nbr 12.1.1.1 (向RA发送查询)  
  6. *Mar  1 00: 28:13.163:   AS 10, Flags 0x0, Seq 19/8 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 9-9  
  7. *Mar  1 00: 28:13.351: EIGRP: Received QUERY on Serial2/2 nbr 23.1.1.1  
  8. RB(config-if)#  
  9. *Mar  1 00: 28:13.355:   AS 10, Flags 0x0, Seq 11/21 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0 

 

自始至终没有发现去往Rc的查询消息,所以,EIGRP的 STUB区域验证成功。

【编辑推荐】

  1. 实例解析EIGRP浮动汇总路由配置
  2. 路由器的POS接入技术及解决方案
  3. 路由器日志信息记录的配置方法 续
  4. 初学者必看:CISCO路由器教程讲解
  5. 详细讲解路由器设置 让安全陪伴左右 

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...
2012年第四季度互联网状况报... [[71653]]  北京时间4月25日消息,据国外媒体报道,全球知名的云平台公司Akamai Te...