Optional-Spanning-tree-Features
■Legacy STP Convergence Optimizations
・PortFast ・Edge ports should'nt be subject to Forwarding Delay ・Also effects TCN generation
・UplinkFast ・Direct Root Poot Failure should reconverge immediately if Alternate Port available
・BackboneFast ・Indirect failure should start recalculating immediately
Verification
SW1 interface Vlan10 ip address 10.0.0.21 255.255.255.0
interface Ethernet1/3 switchport access vlan 10 switchport mode access
SW2 interface Vlan10 ip address 10.0.0.22 255.255.255.0
SW3 interface Vlan10 ip address 10.0.0.23 255.255.255.0
SW4 interface Vlan10 ip address 10.0.0.24 255.255.255.0
SW1#sh span vlan 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4106 (priority 4096 sys-id-ext 10) Address aabb.cc00.0100 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Desg FWD 100 128.1 Shr Et0/1 Desg FWD 100 128.2 Shr Et1/0 Desg FWD 100 128.5 Shr Et1/1 Desg FWD 100 128.6 Shr Et1/3 Desg FWD 100 128.8 Shr
SW1(config)#service timestamps debug datetime
SW1#debug spanning-tree events Spanning Tree event debugging is on
Normal
SW1(config)#int e1/3 SW1(config-if)#shut
SW1(config-if)#no shut
*May 18 14:22:32: set portid: VLAN0010 Et1/3: new port id 8008 *May 18 14:22:32: STP: VLAN0010 Et1/3 -> listening
*May 18 14:22:34.271: %LINK-3-UPDOWN: Interface Ethernet1/3, changed state to up *May 18 14:22:35.278: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/3, changed state to up
*May 18 14:22:47: STP: VLAN0010 Et1/3 -> learning
*May 18 14:23:02: STP[10]: Generating TC trap for port Ethernet1/3 *May 18 14:23:02: STP: VLAN0010 Et1/3 -> forwarding
Portfast
SW1(config)#int e1/3 SW1(config-if)#spanning-tree portfast %Warning: portfast should only be enabled on ports connected to a single host. Connecting hubs, concentrators, switches, bridges, etc... to this interface when portfast is enabled, can cause temporary bridging loops. Use with CAUTION
%Portfast has been configured on Ethernet1/3 but will only have effect when the interface is in a non-trunking mode.
SW1#sh span vlan 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4106 (priority 4096 sys-id-ext 10) Address aabb.cc00.0100 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Desg FWD 100 128.1 Shr Et0/1 Desg FWD 100 128.2 Shr Et1/0 Desg FWD 100 128.5 Shr Et1/1 Desg FWD 100 128.6 Shr Et1/3 Desg FWD 100 128.8 Shr Edge
SW1#sh spanning-tree interface e1/3 portfast VLAN0010 enabled
SW1(config)#int e1/3 SW1(config-if)#shut
SW1(config-if)#no shut
*May 18 14:35:35: set portid: VLAN0010 Et1/3: new port id 8008 *May 18 14:35:35: STP: VLAN0010 Et1/3 ->jump to forwarding from blocking
*May 18 14:35:37.829: %LINK-3-UPDOWN: Interface Ethernet1/3, changed state to up *May 18 14:35:38.837: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/3,
changed state to up
Uplinkfast
SW2#show spanning-tree vlan 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 Cost 100 Port 5 (Ethernet1/0) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address aabb.cc00.0200 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Desg FWD 100 128.1 Shr Et0/1 Desg FWD 100 128.2 Shr Et1/0 Root FWD 100 128.5 Shr Et1/1 Altn BLK 100 128.6 Shr
SW2(config)#service timestamps debug datetime
SW2#debug spanning-tree events Spanning Tree event debugging is on
normal
SW2(config)#int e1/0 SW2(config-if)#shut
*May 18 14:55:07: STP: VLAN0010 new root port Et1/1, cost 100 *May 18 14:55:07: STP: VLAN0010 Et1/1 -> listening *May 18 14:55:07: STP[10]: Generating TC trap for port Ethernet1/0
*May 18 14:55:09.270: %LINK-5-CHANGED: Interface Ethernet1/0, changed state to administratively down
*May 18 14:55:09: STP: VLAN0010 sent Topology Change Notice on Et1/1
*May 18 14:55:10.277: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to down
*May 18 14:55:22: STP: VLAN0010 Et1/1 -> learning
(abbreviation)
*May 18 14:55:37: STP[10]: Generating TC trap for port Ethernet1/1 *May 18 14:55:37: STP: VLAN0010 sent Topology Change Notice on Et1/1 *May 18 14:55:37: STP: VLAN0010 Et1/1 -> forwarding
Set uplinkfast
SW2(config)#spanning-tree uplinkfast
SW2#sh spanning-tree uplinkfast UplinkFast is enabled
Station update rate set to 150 packets/sec.
UplinkFast statistics ----------------------- Number of transitions via uplinkFast (all VLANs) : 26 Number of proxy multicast addresses transmitted (all VLANs) : 0
Name Interface List -------------------- ------------------------------------
(abbreviation)
VLAN0010 Et1/0(fwd), Et0/0, Et0/1, Et1/1
SW2#show spanning-tree vlan 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 Cost 3100 Port 5 (Ethernet1/0) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49162 (priority 49152 sys-id-ext 10) Address aabb.cc00.0200 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec Uplinkfast enabled
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Altn BLK 3100 128.1 Shr Et0/1 Altn BLK 3100 128.2 Shr Et1/0 Root FWD 3100 128.5 Shr Et1/1 Altn BLK 3100 128.6 Shr
SW2(config)#int e1/0 SW2(config-if)#shut
*May 18 15:07:09.572: %SPANTREE_FAST-7-PORT_FWD_UPLINK: VLAN0001 Ethernet1/1
moved to Forwarding (UplinkFast).
*May 18 15:07:09: STP: VLAN0010 new root port Et1/1, cost 3100 *May 18 15:07:09: STP[10]: Generating TC trap for port Ethernet1/1 *May 18 15:07:09: STP[10]: Generating TC trap for port Ethernet1/0
*May 18 15:07:11.578: %LINK-5-CHANGED: Interface Ethernet1/0, changed state to administratively down
*May 18 15:07:11: STP: VLAN0010 sent Topology Change Notice on Et1/1
*May 18 15:07:12.581: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet1/0, changed state to down
SW2#sh span vlan 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 Cost 3100 Port 6 (Ethernet1/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 49162 (priority 49152 sys-id-ext 10) Address aabb.cc00.0200 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15 sec Uplinkfast enabled
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Altn BLK 3100 128.1 Shr Et0/1 Altn BLK 3100 128.2 Shr Et1/1 Root FWD 3100 128.6 Shr
Backbonefast
SW1(config)#int range e0/1,e1/1 SW1(config-if-range)#shut
SW2(config)#int range e0/0-1,e0/3,e1/1 SW2(config-if-range)#shut
SW2(config-if-range)#int e0/2 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#no shut
SW2(config)#no spanning-tree uplinkfast
SW3(config-if-range)#int e0/2 SW3(config-if)#switchport trunk encapsulation dot1q SW3(config-if)#switchport mode trunk SW3(config-if)#no shut
SW1#sh span vl 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 4106 (priority 4096 sys-id-ext 10) Address aabb.cc00.0100 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Desg FWD 100 128.1 Shr Et1/0 Desg FWD 100 128.5 Shr Et1/3 Desg FWD 100 128.8 Shr Edge
SW2#sh span vl 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 Cost 100 Port 5 (Ethernet1/0) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address aabb.cc00.0200 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/2 Desg FWD 100 128.3 Shr Et1/0 Root FWD 100 128.5 Shr
SW3#sh spa vl 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 Cost 100 Port 1 (Ethernet0/0) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address aabb.cc00.0300 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Root FWD 100 128.1 Shr Et0/2 Altn BLK 100 128.3 Shr
normal
SW3(config)#service timestamps debug datetime
SW3#debug spanning-tree events Spanning Tree event debugging is on
Indirect failure start
SW2(config)#int e1/0 SW2(config-if)#shut
SW3#
*May 18 16:04:20: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:21: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:23: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:25: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:27: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:29: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:31: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:33: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:35: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:37: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:04:38: STP: VLAN0010 Et0/2 -> listening
*May 18 16:04:39: STP: VLAN0010 Topology Change rcvd on Et0/2 *May 18 16:04:39: STP: VLAN0010 sent Topology Change Notice on Et0/0
*May 18 16:04:53: STP: VLAN0010 Et0/2 -> learning
*May 18 16:05:08: STP: VLAN0010 sent Topology Change Notice on Et0/0 *May 18 16:05:08: STP: VLAN0010 Et0/2 -> forwarding
SW2(config)#int e1/0 SW2(config-if)#no shut
Set backbonefast
SW1~SW3 spanning-tree backbonefast
SW1#sh spanning-tree backbonefast BackboneFast is enabled
BackboneFast statistics ----------------------- Number of transition via backboneFast (all VLANs) : 0 Number of inferior BPDUs received (all VLANs) : 0 Number of RLQ request PDUs received (all VLANs) : 0 Number of RLQ response PDUs received (all VLANs) : 0 Number of RLQ request PDUs sent (all VLANs) : 0 Number of RLQ response PDUs sent (all VLANs) : 0
SW3#sh span vl 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 4106 Address aabb.cc00.0100 Cost 100 Port 1 (Ethernet0/0) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address aabb.cc00.0300 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 15 sec
Interface Role Sts Cost Prio.Nbr Type ------------------- ---- --- --------- -------- -------------------------------- Et0/0 Root FWD 100 128.1 Shr Et0/2 Altn BLK 100 128.3 Shr
SW2(config)#int e1/0 SW2(config-if)#shut
SW3#
*May 18 16:10:54: STP: VLAN0010 heard root 32778-aabb.cc00.0200 on Et0/2 *May 18 16:10:54: STP: VLAN0010 Et0/2 -> listening
*May 18 16:10:54: STP: VLAN0010 Topology Change rcvd on Et0/2 *May 18 16:10:54: STP: VLAN0010 sent Topology Change Notice on Et0/0
*May 18 16:11:09: STP: VLAN0010 Et0/2 -> learning
*May 18 16:11:24: STP[10]: Generating TC trap for port Ethernet0/2 *May 18 16:11:24: STP: VLAN0010 sent Topology Change Notice on Et0/0 *May 18 16:11:24: STP: VLAN0010 Et0/2 -> forwarding
There is my CCNP note.