实例解析验证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卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
规避非法攻击 用好路由器远程管... 单位在市区不同位置设立了科技服务点,每一个服务点的员工都通过宽带路由器进行共享上网,和单位网络保持联...
范例解读VB.NET获取环境变... VB.NET编程语言的使用范围非常广泛,可以帮助开发人员处理各种程序中的需求,而且还能对移动设备进行...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...