STP Configuration
Bridge 1
Disabling STP globally
Bridge1(config)#no bridge 1 spanning-tree enable bridge-forward | Disable spanning tree globally for STP. |
Bridge1(config)#commit | Commit the configure on the node. |
Disabling STP per port
Bridge1(config)#interface ge2 | Enter interface mode for ge2. |
Bridge1(config-if)#bridge-group 1 spanning-tree disable | Disable spanning tree per port for STP and put port on forwarding state. This command disables any type of STP on the port. |
Bridge1(config-if)#commit | Commit the configure on the node. |
Bridge 2
Disabling STP globally
Bridge2(config)#no bridge 1 spanning-tree enable bridge-forward | Disable spanning tree globally for STP. |
Bridge2(config)#commit | Commit the configure on the node. |
Disabling STP per port
Bridge2(config)#interface xe2 | Enter interface mode for xe2. |
Bridge2(config-if)#bridge-group 1 spanning-tree disable | Disable spanning tree per port for STP and put port on forwarding state. This command disables any type of STP on the port. |
Bridge2(config-if)#commit | Commit the configure on the node. |
Validation
Bridge 1
Verify STP details when stp is enabled globally and ge2 and ge3 are part of the bridge using the show spanning-tree command.
#show spanning-tree
% 1: Bridge up - Spanning Tree Enabled - topology change
% 1: Root Path Cost 4 - Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6 - Root port 905
% 1: Root Id 80003417ebfbe9c4
% 1: Bridge Id 800064006ac779a0
% 1: 3 topology changes - last topology change Tue Nov 15 21:33:53 2016
% 1: portfast bpdu-filter disabled
% 1: portfast bpdu-guard disabled
% 1: portfast errdisable timeout disabled
% 1: portfast errdisable timeout interval 300 sec
%ge2: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - path cost 4 - designated cost 0
%ge2: Designated Port Id 0x838a - state Forwarding -Priority 128
%ge2: Designated root 80003417ebfbe9c4
%ge2: Designated Bridge 80003417ebfbe9c4
%ge2: Message Age 0 - Max Age 20
%ge2: Hello Time 2 - Forward Delay 15
%ge2: Forward Timer 0 - Msg Age Timer 18 - Hello Timer 1 - topo change timer0
%ge2: forward-transitions 1
%ge2: No portfast configured – Current portfast
%ge2: bpdu-guard default- Current bpdu-guard off
%ge2: bpdu-filter default- Current bpdu-filter off
%ge2: no root guard configured- Current root guard off
%ge3: Port Number 908 - Ifindex 5004 - Port Id 0x838c - path cost 4 - designated cost 0
%ge3: Designated Port Id 0x838b - state Blocked -Priority 128
%ge3: Designated root 80003417ebfbe9c4
%ge3: Designated Bridge 80003417ebfbe9c4
%ge3: Message Age 0 - Max Age 20
%ge3: Hello Time 2 - Forward Delay 15
%ge3: Forward Timer 0 - Msg Age Timer 19 - Hello Timer 1 - topo change timer0
%ge3: forward-transitions 0
%ge3: No portfast configured - Currentportfast off
%ge3: bpdu-guarddefault- Current bpdu-guard off
%ge3: bpdu-filter default- Current bpdu-filter off
%ge3: no root guard configured- Current root guard off
%
Verify STP configurations when STP is enabled globally.
#show running-config
!
bridge 1 protocol ieee vlan-bridge
!
Verify STP configurations when STP is disabled globally.
#show running-config
!
bridge 1 protocol ieee vlan-bridge
no bridge 1 spanning-tree enable bridge-forward
!
Verify STP configurations when spanning-tree is enabled on interface.
#show running-config interface ge2
!
interface ge2
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
!
Verify STP configurations when spanning-tree is disabled on interface.
#show running-config interface ge2
!
interface ge2
switchport
bridge-group 1 spanning-tree disable
switchport mode trunk
switchport trunk allowed vlan all
!
Verify STP details after disabling spanning-tree on interface ge2 with the show spanning-tree command.
#show spanning-tree
% 1: Bridge up - Spanning Tree Enabled
% 1: Root Path Cost 4 - Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6 - Root port 908
% 1: Root Id 80003417ebfbe9c4
% 1: Bridge Id 800064006ac779a0
% 1: 5 topology changes - last topology change Fri Nov 25 21:15:35 2016
% 1: portfast bpdu-filter disabled
% 1: portfast bpdu-guard disabled
% 1: portfast errdisable timeout disabled
% 1: portfast errdisable timeout interval 300 sec
% ge2: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - path cost 4 - designated cost 0
% ge2: Designated Port Id 0x838a - state Disabled -Priority 128
% ge2: Message Age 0 - Max Age 20
% ge2: Hello Time 2 - Forward Delay 15
% ge2: Forward Timer 0 - Msg Age Timer 18 - Hello Timer 0 - topo change timer 23
% ge2: forward-transitions 2
% ge2: No portfast configured - Current portfast off
% ge2: bpdu-guard default - Current bpdu-guard off
% ge2: bpdu-filter default - Current bpdu-filter off
% ge2: no root guard configured - Current root guard off
%
% ge3: Port Number 908 - Ifindex 5004 - Port Id 0x838c - path cost 4 - designated cost 0
% ge3: Designated Port Id 0x838b - state Forwarding -Priority 128
% ge3: Designated root 80003417ebfbe9c4
% ge3: Designated Bridge 80003417ebfbe9c4
% ge3: Message Age 0 - Max Age 20
% ge3: Hello Time 2 - Forward Delay 15
% ge3: Forward Timer 0 - Msg Age Timer 19 - Hello Timer 1 - topo change timer 23
% ge3: forward-transitions 2
% ge3: No portfast configured - Current portfast off
% ge3: bpdu-guard default - Current bpdu-guard off
% ge3: bpdu-filter default - Current bpdu-filter off
% ge3: no root guard configured - Current root guard off