实例解析验证EIGRP STUB 区域

网络 网络管理
本文向大家展示的是一个验证EIGRP STUB 区域的实验,意在让大家深刻的理解EIGRP STUB 区域,希望可以达到帮助大家的效果。

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. 详细讲解路由器设置 让安全陪伴左右 
责任编辑:佚名 来源: Cisco技术网
相关推荐

2010-08-09 14:36:12

华为stub nssa

2011-08-16 11:37:27

EIGRP带宽

2011-04-13 11:27:28

EIGRP路由

2011-08-16 11:22:09

EIGRP帧中继

2010-06-11 17:12:28

EIGRP路由协议

2022-03-18 15:55:15

鸿蒙操作系统架构

2010-09-25 12:54:24

JVM内存

2011-04-13 11:16:10

路由器WCCPWeb

2011-04-07 13:09:03

明文验证

2010-08-02 09:43:00

Flex应用

2013-12-19 09:43:43

2011-04-02 11:02:24

2009-09-23 15:12:41

Hibernate视图

2009-09-09 14:40:15

C# XML解析

2009-12-30 13:31:34

IP-VPN

2010-09-13 16:24:39

2011-09-09 13:23:17

Widget

2013-02-20 15:29:00

JSONAndroid开发

2011-09-07 17:54:40

Android Wid开发

2011-04-02 16:36:52

NAT
点赞
收藏

51CTO技术栈公众号