0% found this document useful (0 votes)
57 views11 pages

3-EnCOR - M2 - Advanced STP Tuning

- The document discusses spanning tree protocol (STP) concepts including bridge ID formats, port roles, port priorities, network diameter, timers, and STP extensions like PortFast, BPDUguard, BPDUfilter, and RootGuard. - It provides configuration examples for tuning STP parameters like interface priorities and costs, setting the root bridge, and enabling STP extensions on ports and globally. - The end discusses the UniDirectional Link Detection (UDLD) protocol and shows an example output of the "show udld" command.

Uploaded by

Cafu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views11 pages

3-EnCOR - M2 - Advanced STP Tuning

- The document discusses spanning tree protocol (STP) concepts including bridge ID formats, port roles, port priorities, network diameter, timers, and STP extensions like PortFast, BPDUguard, BPDUfilter, and RootGuard. - It provides configuration examples for tuning STP parameters like interface priorities and costs, setting the root bridge, and enabling STP extensions on ports and globally. - The end discusses the UniDirectional Link Detection (UDLD) protocol and shows an example output of the "show udld" command.

Uploaded by

Cafu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

ENCOR

CCNP/CCIE Enterprise Core

350-401
Part II Layer 2
Chapter 2 Spanning Tree Protocol
LAB Preparando o EVE-NG
LAB STP
Review
Chapter 3 Advanced STP Tuning
LAB STP-Tuning
Review
Chapter 4 Multiple Spanning Tree Protocol
LAB MST
Review
Chapter 5 VLAN Trunks and EtherChennel Bundles
LAB EtherChennel
Review
STP BRIDGE ID FORMATS
Tradicional (802.1D):
Priority de 16bits (2ˆ16=65536)
+ MAC do dispositivo
Intervalo de 0 até 65355
32768:0000.0000.cccc
Extended (802.1t) :
4 bit priority multiplier + 12 bit VLAN ID + MAC do dispositivo
Intervalo de 0 até 61440 (mas só pode usar múltiplos de 4096)
0 4096 8192 12288 16384 20480 24576 28672
32768 36864 40960 45056 49152 53248 57344 61440

VLAN 100 = 32868:0000.0000.cccc


VLAN spanning-tree
Switch(config)# 10 = 32778:0000.0000.cccc
extend system-id
Link Bandwidth Old STP Cost
4 Mbps
10 Mbps
250
100
New STP Cost
250
100
PATH COST
16 Mbps 63 62
45 Mbps 22 39
100 Mbps 10 19
155 Mbps 6 14
622 Mbps 2 6 Bridge ID
1 Gbps 1 4 32768 0000.0000.000A
10 Gbps 0 2
SWA

G0/47 G0/48
SWC(config)#interface g0/48
Root Port 4 4 Root Port vlan 10 cost 12
SWC(config-if)# spanning-tree
SWB G0/47 G0/48 SWC
0+4=4 via 4 0+4=4 via
0+12=12 via
G0/47 G0/48 G0/47 G0/48
Bridge ID Bridge ID
4+4=8 via 32768 0000.0000.000B 32768 0000.0000.000C 4+4=8 via
Switch# show spanning-tree interface g0/48
G0/48 G0/47
PORT ID
Switch# show spanning-tree interface gi1/0/1
Vlan Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- --------
VLAN0100 Desg FWD 4 128.1 P2p Edge
Switch# show spanning-tree interface gi1/0/2
Vlan Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- --------
VLAN0100 Desg FWD 4 128.2 P2p Edge

Switch# show spanning-tree interface gi2/0/44


Vlan Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- --------
VLAN0100 Desg FWD 4 128.102 P2p Edge

O valor padrão é 128 e pode ser alterado de 0 até 255


Switch(config-if)# spanning-tree [ vlan vlan-list ] port-priority port-priority
NETWORK DIAMETER
Os timers padrões são baseados em um
Root Bridge diâmetro de 7 switches.
(Hello 2s,
Switch(config)# spanning-tree forward
[ vlan delay 15,
vlan-id ] Max Age 20); seconds
hello-time
Switch(config)# spanning-tree [ vlan vlan-id ] forward-time seconds
A Cisco
Switch(config)# spanning-tree [vlanrecomenda
vlan-idque se for necessário
] max-age seconds
Switch(config)# spanning-tree alterar os timers,
hello-time 1 (1queto
você
10)altere o
diameter (no sw root), pois os timers são
calculados a partir do diameter.
Switch(config)# spanning-tree vlan 100 root primary diameter 3 hello-time 1
Root Bridge
Switch# show spanning-tree vlan 100
VLAN0100
Spanning tree enabled protocol ieee
Root ID Priority 100
Address 000c.8554.9a80
This bridge is the root
Hello Time 1sec Max Age 7 sec Forward Delay 5 sec
PortFast, BPDUguard, BPDUfilter
Switch(config)# spanning-tree portfast default
PortFast - porta não precisa esperar
30s para ficar up e não gera TCN Switch(config-if)# [ no ] spanning-tree portfast

habilita em todas as portas


que estão como access

Switch(config)# interface g0/1


Switch(config-if)# switchport host
switchport mode will be set to access
spanning-tree portfast will be enabled
channel group will be disabled BPDUguard - se recebe um BPDU na
porta ela será colocada em errdiasble
Switch(config)# spanning-tree portfast bpduguard default
Switch(config-if)# [ no] spanning-tree bpduguard enable
BPDUfilter - desabilita completamente o STP naquela porta
Switch(config)# spanning-tree portfast bpdufilter default
ROOTGUARD
SW-C1 SW-C2

Rootguard - se receber um superior


bpdu nessa porta , ela será colocada
em root-inconsistent STP state

32768:0000.0000.eeee 32768:0000.0000.ffff

Switch(config-if)# spanning-tree guard root


Switch# show spanning-tree inconsistentports
SW-D1 SW-D2

32768:0000.0000.cccc 32768:0000.0000.dddd

SW-A1 SW-A2

32768:0000.0000.aaaa 32768:0000.0000.bbbb
Switch# show udld g0/48

Interface g0/48
---
Port enable administrativeSw co
itnf
chigAzur
ulat
# io
connf t
SwitchVerde# conf t setting: Enabled Sw it ch (config)# udld enable
Switch(config)# udld enable Port enable operational state: Enabled
Cu rr en t bi di re ct io na l st at e: Bi di re ct io na l
Switch# show udld g0 /4 8 ve rt is em en t -
Current op er at io na l st at e: Ad
Si ng le ne ighbor detected
Interface g0/48
Message interval: 15
--- t in te rv al : 5 RX
TX Ti
nf me
ig urou
at io n
Port enable administrative co
setting: Enabled y 1
En En
ab tr
le d
Port enable operational state:
ctio na l st at e: Un kn --
ow n-
Current bidireRX ra ti on ti me : 40 TX
io na l st at e: Ad ve rt Ex
is pi
em en t
Current op er at
De vi ce ID : 1
Message interval: 7 en t ne ig hb or st at e: Bi di re ct io na l
5 Cu rr
Time out interval: ce na me : CA T0 74 6Z 0W N
De vi
No neighbor cache information stored ID: g0/48
Port
Problema: Azul acha que o link está
Neighbor echo 1 device: CAT1032NJ69
DL D e mOKin te rf a ce s ó ti ca s,
O c o m a n d o e m m o do g lob a l só h a b ili ta o U
Neighbor echo 1 port: g0/47
u is e r h a b ili tar e m in te rf a c e s e lé tr ic a s, vo cê d eve e n tr a r d en tro d a
se q Message interval: 15
interfac e d e se ja
Ti d
mea e
ou te x
in etec u
rv ta
al r:
: 5u d l d p o r t
CDP Device name: SW2
UDLD

ERRDIS
ER RDIS
UP/UP UP/UP
UDLD Probes
Ou vc entra na porta e e x ec u ta o s h u t e de p o is n o
shut, ou pode u sar o c o m a n do u d l d r e s e t

ObERs:Run-DkEnISom E
wnLE th e
TX rC h a nn e l o U D L D é e n vi a d o e m ca d a pRXo rta d o
AB D
ru# pshoow
Switgch , eudnld ãog0a/4p8enas na porta vi rtu a l c ri ad a, se e m u m a p o rta
h o u ve
RX r e rro , so m e nte a q ue la p ort a é reti rad
TX a d o g ru p o !
Interface g0/48
--- ag gr es si ve mo de
se tt in g: En ab le d / in
Port enable administrative configuration
na l st at e: En ab le d / in ag gr es si ve mo de
Port enable operatio
Sw it ch # sh ow ud ld g0 /4
Current bidirectional state: Unknown
8
no rm a l m o de x ag gre ss iv e m od e
Current operational state: Disabled port
In te rf ac e g0 /4 8 SwitchVerde# int g0/48
Message interval: 7
-- -
Time out in te rv al : 5 Sw it ch (c on fi g) # ud ld po rt ag gr es si ve gr es si ve mo de
ni st ra ti ve co nf ig ur at io n sett in g: En ab le d / in ag
Po rt en ab le ad mi ion stored
No neighbor cache informatl st at e: En ab le d / in ag gr es si ve mo de
Po rt en ab le op er at
ac io
es na
g0/48
Switch# show interf st at e: Bi di re ct io na l d)
Cu rr en t bi di re ct io na l ne pr ot oc ol is do wn (e rr -d is ab le
gigabitEthernet0/48 is down, li
Obrigado!

You might also like