CCNPBSCI实验2EIGRP bandwidth 和通配符掩码

实验目的:

1.       针对端口配置带宽值

2.       通配符掩码的配置

实验拓扑:如图

 

CCNP之BSCI实验2:EIGRP bandwidth 和通配符掩码「建议收藏」

实验步骤如下:

注:这个实验是在实验1的基础上进行的,拓扑和实验1一样

r1(config)#int loo1

r1(config-if)#ip add

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

r1(config-if)#ip add 1.1.1.1 255.255.255.0

r1(config-if)#int s0/0

r1(config-if)#exit

r1(config)#int f1/0

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:07.943: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up

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

r1(config)#router eigrp 1

r1(config-router)#no au

r1(config-router)#net 1.0.0.0

r1(config-router)#net 172.16.0.0

r1(config-router)#

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

r1(config-router)#

*Mar  1 00:07:51.343: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.3 (FastEthernet1/0) is up: new adjacency

r1(config-router)#int s0/0

r1(config-if)#ip add 172.16.2.1 255.255.255.0

r1(config-if)#clo r 64000

r1(config-if)#no sh

r1(config-if)#

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

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

r1(config-if)#

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

r1(config-if)#do      

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

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

r1(config-if)#do sh int s0/0查看串口的信息

Serial0/0 is up, line protocol is up

  Hardware is M4T

  Internet address is 172.16.2.1/24

  MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation HDLC, crc 16, loopback not set

  Keepalive set (10 sec)

  Restart-Delay is 0 secs

  Last input 00:00:00, output 00:00:00, output hang never

  Last clearing of “show interface” counters never

  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: weighted fair

  Output queue: 0/1000/64/0 (size/max total/threshold/drops)

     Conversations  0/1/256 (active/max active/max total)

     Reserved Conversations 0/0 (allocated/max allocated)

     Available Bandwidth 1158 kilobits/sec

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     22 packets input, 1933 bytes, 0 no buffer

     Received 12 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     33 packets output, 2941 bytes, 0 underruns

     0 output errors, 0 collisions, 3 interface resets

     0 output buffer failures, 0 output buffers swapped out

     3 carrier transitions     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

   缺省情况下EIGRP最多使用带宽的50%来发送路由信息。对以串口链路,CISCO设备默认为T1,但是实际值有DCE段的时钟控制。在一般的情况下,对于正常使用没有太大的问题,但是这样可以会导致EIGRP找到到达目标的路径不是最好 的,或者在低带宽的链路上导致路由信息淹没链路,使得链路没有足够的带宽发送用户数据。所以通常需手动配置带宽:      

r1(config-if)#bandwidth 64 修改带宽

r1(config-if)#do sh int s0/0

Serial0/0 is up, line protocol is up

  Hardware is M4T

  Internet address is 172.16.2.1/24

  MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,

     reliability 255/255, txload 1/255, rxload 1/255

  Encapsulation HDLC, crc 16, loopback not set

  Keepalive set (10 sec)

  Restart-Delay is 0 secs

  Last input 00:00:04, output 00:00:02, output hang never

  Last clearing of “show interface” counters never

  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0

  Queueing strategy: weighted fair

  Output queue: 0/1000/64/0 (size/max total/threshold/drops)

     Conversations  0/1/256 (active/max active/max total)

     Reserved Conversations 0/0 (allocated/max allocated)

     Available Bandwidth 48 kilobits/sec

  5 minute input rate 0 bits/sec, 0 packets/sec

  5 minute output rate 0 bits/sec, 0 packets/sec

     71 packets input, 4999 bytes, 0 no buffer

     Received 28 broadcasts, 0 runts, 0 giants, 0 throttles

     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort

     83 packets output, 6043 bytes, 0 underruns

     0 output errors, 0 collisions, 3 interface resets

     0 output buffer failures, 0 output buffers swapped out

     3 carrier transitions     DCD=up  DSR=up  DTR=up  RTS=up  CTS=up

         

r1(config-if)#

r1(config-if)#do sh ip eigrp n

IP-EIGRP neighbors for process 1

H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                            (sec)         (ms)       Cnt Num

2   172.16.2.2              Se0/0             13 00:02:44   68  2280  0  18

1   172.16.1.3              Fa1/0             13 00:04:38   98   588  0  15

0   172.16.1.2              Fa1/0             13 00:05:05   86   516  0  17

r1(config-if)#do sh ip route eigrp

     2.0.0.0/24 is subnetted, 1 subnets

D       2.2.2.0 [90/156160] via 172.16.1.2, 00:03:06, FastEthernet1/0

     3.0.0.0/24 is subnetted, 1 subnets

D       3.3.3.0 [90/156160] via 172.16.1.3, 00:03:06, FastEthernet1/0

     4.0.0.0/24 is subnetted, 1 subnets

D       4.4.4.0 [90/156160] via 172.16.1.3, 00:00:26, FastEthernet1/0

r1(config-if)#do wr

Building configuration…

[OK]

r1(config-if)#

r1(config-if)#

 

r2(config)#int loo 2

r2(config-if)#ip add

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

r2(config-if)#ip add 2.2.2.2 255.255.255.0

r2(config-if)#int f1/0

r2(config-if)#ip add 172.16.1.2 255.255.255.0

r2(config-if)#no sh

r2(config-if)#

*Mar  1 00:06:34.731: %LINK-3-UPDOWN: Interface FastEthernet1/0, changed state to up

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

r2(config-if)#exit

r2(config)#router eigrp 1

r2(config-router)#no au

r2(config-router)#net 2.2.2.0

r2(config-router)#net 172.16.0.0

r2(config-router)#

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

r2(config-router)#

*Mar  1 00:07:50.951: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 172.16.1.3 (FastEthernet1/0) is up: new adjacency

r2(config-router)#exit

r2(config)#int s0/0

r2(config-if)#ip add 172.16.2.2 255.255.255.0

r2(config-if)#no sh

r2(config-if)#

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

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

r2(config-if)#

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

r2(config-if)#bandwidth 64

r2(config-if)#do wr

Building configuration…

[OK]

r2(config-if)#

r2(config-if)#

 

3(config)#int loo 3

r3(config-if)#ip add

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

r3(config-if)#ip add 3.3.3.3 255.255.255.0

r3(config-if)#int f0/0

r3(config-if)#ip add 172.16.1.3 255.255.255.0

r3(config-if)#no sh

r3(config-if)#exit

r3(config)#

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

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

r3(config)#router eigrp 1

r3(config-router)#no au

r3(config-router)#net 3.3.3.0

r3(config-router)#net 172.16.0.0

r3(config-router)#

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

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

r3(config-router)#do sh ip route

Codes: C – connected, S – static, R – RIP, M – mobile, B – BGP

       D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

       N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

       E1 – OSPF external type 1, E2 – OSPF external type 2

       i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2

       ia – IS-IS inter area, * – candidate default, U – per-user static route

       o – ODR, P – periodic downloaded static route

 

Gateway of last resort is not set

 

     1.0.0.0/24 is subnetted, 1 subnets

D       1.1.1.0 [90/156160] via 172.16.1.1, 00:00:04, FastEthernet0/0

     2.0.0.0/24 is subnetted, 1 subnets

D       2.2.2.0 [90/156160] via 172.16.1.2, 00:00:04, FastEthernet0/0

     3.0.0.0/24 is subnetted, 1 subnets

C       3.3.3.0 is directly connected, Loopback3

     172.16.0.0/24 is subnetted, 1 subnets

C       172.16.1.0 is directly connected, FastEthernet0/0

r3(config-router)#

r3(config-router)#exit

r3(config)#int loo 4

r3(config-if)#ip add

*Mar  1 00:13:10.871: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback4, changed state to up

r3(config-if)#ip add 4.4.4.4 255.255.255.0

r3(config-if)#int lo 5

r3(config-if)#ip add

*Mar  1 00:13:28.451: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback5, changed state to up

r3(config-if)#ip add 5.5.5.5 255.255.255.0

r3(config-if)#exit

r3(config)#router eigrp 1

r3(config-router)#no au

r3(config-router)#net 4.4.4.0 0.0.0.255配置网络通配符掩码,注意现在只发布LOO 4,而发布LOO5

r3(config-router)#do sh ip eigrp int

IP-EIGRP interfaces for process 1

 

                        Xmit Queue   Mean   Pacing Time   Multicast    Pending

Interface        Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes

Lo3                0        0/0         0       0/1            0           0

Fa0/0              2        0/0       269       0/1         1272           0

Lo4                0        0/0         0       0/1            0           0

r3(config-router)#do wr

Building configuration…

[OK]

r3(config-router)#