CCNP之BSCI实验7: 限制EIGRP查询

 

CCNPBSCI实验7: 限制EIGRP查询

 

实验目的:

1.     理解EIGRP的路由更新机制

2.     掌握STUB的配置及使用路由汇总限制EIGRP的查询范围

实验拓扑:

 

CCNP之BSCI实验7: 限制EIGRP查询_第1张图片

实验步骤:

1.     按拓扑图配置每台路由器的IP

2.     配置EIGRP

3.     R3上用的DEBUG命令跟踪EIGRP查询过程,在R1上关闭s0/0

4.     分别在R3的两个端口进行路由汇总。

5.     R3配置成为末节路由器

6.     R1上查看邻居表

7.     R1上再次的开启和关闭s0/0,观察R3DEBUG信息

 

注:只能在末节路由器上使用STUB特性。末节路由器是指在远程站点,不会中转数据给其它路由器的路由器。

限制EIGRP查询有两种方法:

1.路由汇总

2.配置末节路由

 

r1(config)#int s0/0

r1(config-if)#ip add 172.16.2.1 255.255.255.0

r1(config-if)#no sh

r1(config-if)#exit

*Mar  1 00:05:08.431: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:05:09.431: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r1(config)#int s0/1

r1(config-if)#ip add 172.16.1.1 255.255.255.0

r1(config-if)#no sh

r1(config-if)#exit

r1(config)#

*Mar  1 00:05:22.847: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up

*Mar  1 00:05:23.847: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

r1(config)#

*Mar  1 00:05:35.327: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r1(config)#

*Mar  1 00:05:55.311: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r1(config)#

r1(config)#router eigrp 1

r1(config-router)#no au

r1(config-router)#net 172.16.0.0

r1(config-router)#

*Mar  1 00:07:03.283: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.2 (Serial0/0) is up: new adjacency

*Mar  1 00:07:03.295: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.2 (Serial0/1) is up: new adjacency

r1(config-router)#exit

r1(config)#int s0/0

r1(config-if)#sh

r1(config-if)#

*Mar  1 00:07:49.783: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.2 (Serial0/0) is down: interface down

r1(config-if)#

*Mar  1 00:07:51.699: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down

*Mar  1 00:07:52.699: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r1(config-if)#no sh

r1(config-if)#

*Mar  1 00:08:30.019: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:08:31.019: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r1(config-if)#

*Mar  1 00:08:35.123: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.2 (Serial0/0) is up: new adjacency

r1(config-if)#

*Mar  1 00:14:52.515: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.2 (Serial0/1) is resync: peer graceful-restart

r1(config-if)#

*Mar  1 00:15:16.711: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.2 (Serial0/1) is down: Interface Goodbye received

r1(config-if)#

*Mar  1 00:15:20.391: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.2 (Serial0/1) is up: new adjacency

r1(config-if)#do sh ip eigrp nei detail 查看路由表

IP-EIGRP neighbors for process 1

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

1   172.16.1.2              Se0/1             10 00:00:13   45   270  0  29

   Version 12.4/1.2, Retrans: 1, Retries: 0, Prefixes: 4

   Stub Peer Advertising ( CONNECTED SUMMARY ) Routes显示R3是末节路由器

   Suppressing queries

0   172.16.2.2              Se0/0             12 00:06:58   64   384  0  28

   Version 12.4/1.2, Retrans: 1, Retries: 0, Prefixes: 4

r1(config-if)#sh

r1(config-if)#

*Mar  1 00:17:10.071: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.2 (Serial0/0) is down: interface down

r1(config-if)#

*Mar  1 00:17:11.987: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down

*Mar  1 00:17:12.987: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r1(config-if)#no sh

r1(config-if)#

*Mar  1 00:17:57.827: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:17:58.827: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r1(config-if)#

*Mar  1 00:18:04.799: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.2 (Serial0/0) is up: new adjacency

r1(config-if)#

 

r2(config-if)#ip add 172.16.2.2 255.255.255.0

r2(config-if)#no sh

r2(config-if)#exit

r2(config)#int s0/1

*Mar  1 00:05:43.187: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:05:44.187: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r2(config)#int s0/1

r2(config-if)#ip add 172.16.3.1 255.255.255.0

r2(config-if)#no sh

r2(config-if)#

*Mar  1 00:05:57.527: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up

*Mar  1 00:05:58.527: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

r2(config-if)#exit

r2(config)#router eigrp 1

r2(config-router)#no au

r2(config-router)#net 172.16.0.0

r2(config-router)#exit

r2(config)#

*Mar  1 00:06:47.503: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.2 (Serial0/1) is up: new adjacency

r2(config)#

*Mar  1 00:07:02.759: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.1 (Serial0/0) is up: new adjacency

r2(config)#

*Mar  1 00:07:59.715: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.1 (Serial0/0) is down: holding time expired

r2(config)#

*Mar  1 00:08:15.191: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r2(config)#

*Mar  1 00:08:34.619: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.2.1 (Serial0/0) is up: new adjacency

*Mar  1 00:08:35.187: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r2(config)#

*Mar  1 00:13:25.003: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.2 (Serial0/1) is resync: peer graceful-restart

r2(config)#

*Mar  1 00:15:16.251: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.2 (Serial0/1) is down: Interface Goodbye received

r2(config)#

 

 

*Mar  1 00:15:19.631: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.2 (Serial0/1) is up: new adjacency

r2(config)#

 

 

 

r3(config)#int loo 1

r3(config-if)#ip add

*Mar  1 00:03:10.727: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up

r3(config-if)#ip add 1.1.1.1 255.255.255.0

r3(config-if)#exit

r3(config)#int loo 2

r3(config-if)#ip add 2

*Mar  1 00:03:25.731: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback2, changed state to up

r3(config-if)#ip add 1.1.2.1 255.255.255.0

r3(config-if)#exit

r3(config)#int loo 3

r3(config-if)#ip add

*Mar  1 00:03:42.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback3, changed state to up

r3(config-if)#ip add 1.1.3.1 255.255.255.0

r3(config-if)#exit

r3(config)#int s0/0

r3(config-if)#ip add 172.16.3.2 255.255.255.0

r3(config-if)#no sh

r3(config-if)#exit

r3(config)#int s

*Mar  1 00:04:16.195: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up

*Mar  1 00:04:17.195: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r3(config)#int s0/1

r3(config-if)#ip add 172.16.1.2 255.255.255.0

r3(config-if)#no sh

r3(config-if)#

*Mar  1 00:04:40.403: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up

*Mar  1 00:04:41.403: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

r3(config-if)#

*Mar  1 00:04:45.239: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down

r3(config-if)#

*Mar  1 00:05:05.259: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to down

r3(config-if)#

*Mar  1 00:05:25.243: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up

r3(config-if)#

*Mar  1 00:06:05.223: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to up

r3(config-if)#exit

r3(config)#router eigrp 1

r3(config-router)#no au

r3(config-router)#net 1.0.0.0

r3(config-router)#net 172.16.0.0

r3(config-router)#

*Mar  1 00:06:47.195: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.1 (Serial0/0) is up: new adjacency

r3(config-router)#

*Mar  1 00:07:02.399: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.1 (Serial0/1) is up: new adjacency

r3(config-router)#exit

r3(config)#do debug eigrp packets query

EIGRP Packets debugging is on

    (QUERY)

r3(config)#

*Mar  1 00:07:48.975: EIGRP: Received QUERY on Serial0/1 nbr 172.16.1.1

*Mar  1 00:07:48.979:   AS 1, Flags 0x0, Seq 11/9 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0

r3(config)#

*Mar  1 00:08:14.899: EIGRP: Received QUERY on Serial0/0 nbr 172.16.3.1

*Mar  1 00:08:14.903:   AS 1, Flags 0x0, Seq 11/11 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0

*Mar  1 00:08:14.915: EIGRP: Enqueueing QUERY on Serial0/1 iidbQ un/rely 0/1 serno 10-10

*Mar  1 00:08:14.915: EIGRP: Enqueueing QUERY on Serial0/0 iidbQ un/rely 0/1 serno 10-10

*Mar  1 00:08:14.919: EIGRP: Enqueueing QUERY on Serial0/1 nbr 172.16.1.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 10-10

*Mar  1 00:08:14.919: EIGRP: Enqueueing QUERY on Serial0/0 nbr 172.16.3.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 10-10

*Mar  1 00:08:14.923: EIGRP: Sending QUERY on Serial0/1 nbr 172.16.1.1

*Mar  1 00:08:14.923:   AS 1, Flags 0x0, Seq 13/11 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 10-10

可以看到R3收到R1,R2的查询,同时也向他们发送了查询。如果在实际大型的网络中,出现了某个问题,则会引起整个网络产生大量的查询,回复包。

r3(config)#

*Mar  1 00:08:34.947: EIGRP: Received QUERY on Serial0/0 nbr 172.16.3.1

*Mar  1 00:08:34.951:   AS 1, Flags 0x0, Seq 15/16 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/0

r3(config)#do un all

All possible debugging has been turned off

r3(config)#int s0/0

r3(config-if)#ip summary-addr eigrp 1 1.0.0.0  255.255.252.0

r3(config-if)#

*Mar  1 00:13:24.575: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.1 (Serial0/0) is resync: summary configured

r3(config)#int s0/1

r3(config-if)#ip summary-addr eigrp 1 1.0.0.0  255.255.252.0

r3(config-if)#

*Mar  1 00:14:51.619: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.1 (Serial0/1) is resync: summary configured

r3(config-if)#exit

r3(config)#router eigrp 1

r3(config-router)#eigrp stub

r3(config-router)#

*Mar  1 00:15:15.851: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.1 (Serial0/0) is down: peer info changed

*Mar  1 00:15:15.863: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.1 (Serial0/1) is down: peer info changed

r3(config-router)#

*Mar  1 00:15:19.191: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.3.1 (Serial0/0) is up: new adjacency

*Mar  1 00:15:19.467: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.1 (Serial0/1) is up: new adjacency

r3(config-router)#do debug eigrp packets query

EIGRP Packets debugging is on

    (QUERY)

r3(config-router)#

*Mar  1 00:17:34.903: EIGRP: Enqueueing QUERY on Serial0/1 iidbQ un/rely 0/1 serno 19-19

*Mar  1 00:17:34.903: EIGRP: Enqueueing QUERY on Serial0/0 iidbQ un/rely 0/1 serno 19-19

*Mar  1 00:17:34.907: EIGRP: Enqueueing QUERY on Serial0/1 nbr 172.16.1.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 19-19

*Mar  1 00:17:34.907: EIGRP: Enqueueing QUERY on Serial0/0 nbr 172.16.3.1 iidbQ un/rely 0/0 peerQ un/rely 0/0 serno 19-19

*Mar  1 00:17:34.911: EIGRP: Sending QUERY on Serial0/1 nbr 172.16.1.1

*Mar  1 00:17:34.911:   AS 1, Flags 0x0, Seq 34/31 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 19-19

*Mar  1 00:17:34.915: EIGRP: Sending QUERY on Serial0/0 nbr 172.16.3.1

r3(config-router)#

*Mar  1 00:17:34.915:   AS 1, Flags 0x0, Seq 35/31 idbQ 0/0 iidbQ un/rely 0/0 peerQ un/rely 0/1 serno 19-19

R3没有收到查询

r3(config-router)#do un all

All possible debugging has been turned off

r3(config-router)#

 

你可能感兴趣的:(查询,实验,ccnp,EIGRP,BSCI)