OcNOS-SP : Layer 2 Guide : Layer 2 Configuration Guide : Disable Spanning Tree Configuration : RSTP Configuration
RSTP Configuration
Bridge 1
Disabling RSTP globally
 
Bridge1(config)#no bridge 1 rapid-spanning-tree enable bridge-forward
Disable spanning tree globally for RSTP.
Bridge1(config)#commit
Commit the configure on the node.
Disabling RSTP 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 RSTP 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 RSTP globally
 
Bridge2(config)#no bridge 1 rapid-spanning-tree enable bridge-forward
Disable spanning tree globally for RSTP.
Bridge2(config)#commit
Commit the configure on the node.
Disabling RSTP 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 RSTP 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 RSTP details when rstp 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 detected
% 1: Root Path Cost 20000 - Root Port 905 - Bridge Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6
% 1: Root Id 80003417ebfbe9c4
% 1: Bridge Id 800064006ac779a0
% 1: last topology change Tue Nov 15 21:44:31 2016
% 1: 7 topology change(s) - last topology change Tue Nov 15 21:44:31 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 - Role Rootport - State Forwarding
% ge2: Designated Path Cost 0
% ge2: Configured Path Cost 20000 - Add type Explicit ref count 1
% ge2: Designated Port Id 0x838a - Priority 128 -
% ge2: 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 4 - Hello Timer 1 - topo change timer
0
% ge2: forward-transitions 1
% ge2: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% 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
% ge2: Configured Link Type point-to-point - Current point-to-point
% ge2: No auto-edge configured - Current port Auto Edge off
% ge3: Port Number 908 - Ifindex 5004 - Port Id 0x838c - Role Alternate - State Discarding
% ge3: Designated Path Cost 0
% ge3: Configured Path Cost 20000 - Add type Explicit ref count 1
% ge3: Designated Port Id 0x838b - Priority 128 -
% ge3: 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 5 - Hello Timer 0 - topo change timer
0
% ge3: forward-transitions 2
% ge3: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% 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
% ge3: Configured Link Type point-to-point - Current point-to-point
% ge3: No auto-edge configured - Current port Auto Edge off
%
Verify RSTP configurations when RSTP is enabled globally.
#show running-config
!
bridge 1 protocol rstp vlan-bridge
!
Verify RSTP configurations when RSTP is disabled globally
#show running-config
!
bridge 1 protocol rstp vlan-bridge
no bridge 1 rapid-spanning-tree enable bridge-forward
!
Verify RSTP 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 RSTP configurations when spanning-tree is enabled 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 RSTP details after disabling spanning-tree on interface ge2 with the show spanning-tree command.
#sh spanning-tree
% 1: Bridge up - Spanning Tree Enabled - topology change detected
% 1: Root Path Cost 20000 - Root Port 908 - Bridge Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6
% 1: Root Id 80003417ebfbe9c4
% 1: Bridge Id 800064006ac779a0
% 1: last topology change Fri Nov 25 21:08:56 2016
% 1: 11 topology change(s) - last topology change Fri Nov 25 21:08:56 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 - Role Disabled - State Forwarding
% ge2: Designated Path Cost 0
% ge2: Configured Path Cost 20000 - Add type Explicit ref count 1
% ge2: Designated Port Id 0x838a - Priority 128 -
% ge2: Message Age 0 - Max Age 20
% ge2: Hello Time 2 - Forward Delay 15
% ge2: Forward Timer 0 - Msg Age Timer 5 - Hello Timer 0 - topo change timer 0
% ge2: forward-transitions 2
% ge2: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% 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
% ge2: Configured Link Type point-to-point - Current point-to-point
% ge2: No auto-edge configured - Current port Auto Edge off
%
% ge3: Port Number 908 - Ifindex 5004 - Port Id 0x838c - Role Rootport - State Forwarding
% ge3: Designated Path Cost 0
% ge3: Configured Path Cost 20000 - Add type Explicit ref count 1
% ge3: Designated Port Id 0x838b - Priority 128 -
% ge3: 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 5 - Hello Timer 1 - topo change timer 0
% ge3: forward-transitions 3
% ge3: Version Rapid Spanning Tree Protocol - Received RSTP - Send RSTP
% 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
% ge3: Configured Link Type point-to-point - Current point-to-point
% ge3: No auto-edge configured - Current port Auto Edge off
Last modified date: 10/12/2023