OcNOS-RON : Layer 2 Guide : Layer 2 Command Reference : RPVST+ Commands
RPVST+ Commands
This chapter contains the commands used for Rapid Per VLAN Spanning Tree (RPVST+). RPVST+ enables a bridge to inter-operate with Cisco RPVST+ switches.
RPVST+ uses the Multiple Spanning Tree Protocol (MSTP) with a single VLAN for each Multiple Spanning Tree instance (MSTI). The MST bridges can have different spanning-tree topologies for different VLANs inside a region of similar MST bridges. MSTP, like the Rapid Spanning Tree Protocol (RSTP), provides rapid reconfiguration capabilities and supports load balancing.
This chapter includes the following commands:
bridge vlan
This command creates or deletes a mapping between an MSTI (Multiple Spanning Tree Instance) and a VLAN for RPVST+ operation. There can be only one VLAN per MST instance if the bridge is configured to run in RPVST+ mode.
The VLAN must have already been created. Spanning tree is enabled on each configured VLAN, and one instance of spanning-tree runs on each configured VLAN.
Use the no form of the command to disable this functionality.
Command Syntax
bridge <1-32> vlan <2-4094>
no bridge <1-32> vlan <2-4094>
Parameters
<1-32>
Bridge identifier.
<2-4094>
VLAN identifier.
Command Mode
RPVST+ configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#spanning-tree rpvst+ configuration
(config-rpvst+)#bridge 1 vlan 2
(config-rpvst+)#no bridge 1 vlan 2
 
 
bridge vlan priority
This command sets the priority value for the spanning-tree on the bridge. The lower the priority of the VLAN on a bridge, the better the chances of the bridge becoming a root bridge, or a designated bridge for the VLAN.
Use the no form of this command to set the priority to its default (32,768).
Command Syntax
bridge <1-32> vlan <2-4094> priority <0-61440>
no bridge <1-32> vlan <2-4094> priority
Parameters
<1-32>
Bridge identifier.
<2-4094>
VLAN identifier.
<0-61440>
Bridge priority for the common instance. Set the priority in increments of 4096. A lower priority indicates greater likelihood of becoming root.
Default
By default, priority for each VLAN is 32,768
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#bridge 1 vlan 2 priority 80
(config)#no bridge 1 vlan 10 priority
bridge-group vlan
Use this command to assign a Rapid Per-VLAN Spanning Tree (RPVST+) instance to a port.
RPVST+ uses port priority as a tiebreaker to determine which port should forward frames for a particular LAN, or which port should be the root port for a VLAN. A lower value implies a better priority. In the case of the same priority, the interface index serves as the tiebreaker, with a lower-numbered interface being preferred over others.
Use the no parameter with this command to remove an RPVST+ instance from this port.
Command Syntax
bridge-group <1-32> vlan <2-4094>
bridge-group <1-32> vlan <2-4094> path-cost <1-200000000>
bridge-group <1-32> vlan <2-4094> priority <0-240>
no bridge-group <1-32> vlan <2-4094>
no bridge-group <1-32> vlan <2-4094> path-cost
no bridge-group <1-32> vlan <2-4094> priority
Parameters
<1-32>
Bridge group identifier.
<2-4094>
VLAN identifier.
<1-200000000>
Cost of a path associated with the interface.
<0-240>
Port priority. A lower priority indicates greater likelihood of the interface becoming a root. Set the priority only in increments of 16.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth1
(config-if)#bridge-group 1 vlan 10
 
(config)#interface eth1
(config-if)#bridge-group 1 vlan 10 path-cost 1000
 
(config-if)#no bridge-group 1 vlan 10 path-cost
 
(config)#interface eth1
(config-if)#bridge-group 1 vlan 10 priority 240
 
(config-if)#no bridge-group 1 vlan 10 priority
bridge protocol rpvst+
Use this command to enable Rapid Per-VLAN Spanning Tree on a bridge.
Command Syntax
bridge <1-32> protocol rpvst+
Parameter
<1-32>
Bridge identifier.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#bridge 1 protocol rpvst+
bridge rapid-pervlan-spanning-tree
Use this command to enable Rapid Per-VLAN Spanning Tree (RPVST+) globally on a bridge.
Use the no form of this command to disable RPVST+ globally on a bridge.
Command Syntax
bridge <1-32> rapid-pervlan-spanning-tree enable
no bridge <1-32> rapid-pervlan-spanning-tree enable (bridge-blocked|bridge-forward|)
Parameters
<1-32>
Bridge identifier.
bridge-blocked
Put ports of the bridge in the blocked state (default).
bridge-forward
Put ports of the bridge in the forwarding state.
Default
By default, this feature is enabled.
For the no form of this command, bridge-blocked is the default.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#bridge 1 rapid-pervlan-spanning-tree enable
 
(config)#no bridge 1 rapid-pervlan-spanning-tree enable bridge-forward
 
 
show spanning-tree rpvst+
Use this command to display RPVST information.
Command Syntax
show spanning-tree rpvst+
show spanning-tree rpvst+ config
show spanning-tree rpvst+ detail
show spanning-tree rpvst+ detail interface IFNAME
show spanning-tree rpvst+ interface IFNAME
show spanning-tree rpvst+ vlan <1-4094>
show spanning-tree rpvst+ vlan <1-4094> interface IFNAME
Parameters
config
Display configuration information.
detail
Display detailed information.
IFNAME
Display interface information.
<1-4094>
Display VLAN information
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following displays output of this command without any parameters.
#show spanning-tree rpvst+
% 1: Bridge up - Spanning Tree Enabled - topology change detected
% 1: Root Path Cost 0 - Root Port 0 - Bridge Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6
% 1: Root Id 8001525400b092de
% 1: Bridge Id 8001525400b092de
% 1: last topology change Wed Mar 28 02:31:50 2018
% 1: 1 topology change(s) - last topology change Wed Mar 28 02:31:50 2018
 
% 1: portfast bpdu-filter disabled
% 1: portfast bpdu-guard disabled
% 1: portfast errdisable timeout disabled
% 1: portfast errdisable timeout interval 300 sec
% eth1: Port Number 3 - Ifindex 3 - Port Id 0x8003 - Role Designated - State Forwarding
% eth1: Designated External Path Cost 0 -Internal Path Cost 0
% eth1: Configured Path Cost 200000 - Add type Explicit ref count 2
% eth1: Designated Port Id 0x8003 - Priority 128 -
% eth1: Root 8001525400b092de
% eth1: Designated Bridge 8001525400b092de
% eth1: Message Age 0 - Max Age 20
% eth1: Hello Time 2 - Forward Delay 15
% eth1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 3 - topo change timer 0
% eth1: forward-transitions 1
% eth1: Version Rapid Spanning Tree Protocol - Received None - Send RSTP
% eth1: No portfast configured - Current portfast off
% eth1: bpdu-guard default - Current bpdu-guard off
% eth1: bpdu-filter default - Current bpdu-filter off
% eth1: no root guard configured - Current root guard off
% eth1: Configured Link Type point-to-point - Current point-to-point
% eth1: No auto-edge configured - Current port Auto Edge off
%
%
% Instance VLAN
% 0: 1, 4-10
% 1: 2
% 2: 3
 
The following displays output of this command with the config parameter.
#show spanning-tree rpvst+ config
%
% RPVST Configuration Information for bridge 1 :
%------------------------------------------------------
% Format Id : 0
% Name : Default
% Revision Level : 0
% Digest : 0xB41829F9030A054FB74EF7A8587FF58D
%------------------------------------------------------
 
#show spanning-tree rpvst+ detail
% 1: Bridge up - Spanning Tree Enabled - topology change detected
% 1: Root Path Cost 0 - Root Port 0 - Bridge Priority 32768
% 1: Forward Delay 15 - Hello Time 2 - Max Age 20 - Transmit Hold Count 6
% 1: Root Id 8001525400b092de
% 1: Bridge Id 8001525400b092de
% 1: last topology change Wed Mar 28 02:31:50 2018
% 1: 1 topology change(s) - last topology change Wed Mar 28 02:31:50 2018
 
% 1: portfast bpdu-filter disabled
% 1: portfast bpdu-guard disabled
% 1: portfast errdisable timeout disabled
% 1: portfast errdisable timeout interval 300 sec
% eth1: Port Number 3 - Ifindex 3 - Port Id 0x8003 - Role Designated - State Forwarding
% eth1: Designated External Path Cost 0 -Internal Path Cost 0
% eth1: Configured Path Cost 200000 - Add type Explicit ref count 2
% eth1: Designated Port Id 0x8003 - Priority 128 -
% eth1: Root 8001525400b092de
% eth1: Designated Bridge 8001525400b092de
% eth1: Message Age 0 - Max Age 20
% eth1: Hello Time 2 - Forward Delay 15
% eth1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 1 - topo change timer 0
% eth1: forward-transitions 1
% eth1: Version Rapid Spanning Tree Protocol - Received None - Send RSTP
% eth1: No portfast configured - Current portfast off
% eth1: bpdu-guard default - Current bpdu-guard off
% eth1: bpdu-filter default - Current bpdu-filter off
% eth1: no root guard configured - Current root guard off
% eth1: Configured Link Type point-to-point - Current point-to-point
% eth1: No auto-edge configured - Current port Auto Edge off
%
 
% Instance 1: Vlans: 2
% eth1: Port Number 3 - Ifindex 3 - Port Id 0x8003 - Role Designated - State Forwarding
% eth1: Designated Internal Path Cost 0 - Designated Port Id 0x8003
% eth1: Configured Internal Path Cost 200000
% eth1: Configured External Path cost 200000
% eth1: Configured Internal Priority 128
% eth1: Configured External Priority 128
% eth1: Designated Root 8002525400b092de
% eth1: Designated Bridge 8002525400b092de
% eth1: Message Age 0 - Max Age 20
% eth1: Hello Time 2 - Forward Delay 15
% eth1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 1
 
#show spanning-tree rpvst+ vlan 2
% vlan 2 Instance 1 configured
% 1: Root Path Cost 0 - Root Port 0 - Bridge Priority 32768
% 1: Root Id 8002525400b092de
% 1: Bridge Id 8002525400b092de
% eth1: Port Number 3 - Ifindex 3 - Port Id 0x8003 - Role Designated - State Forwarding
% eth1: Designated Internal Path Cost 0 - Designated Port Id 0x8003
% eth1: Configured Internal Path Cost 200000
% eth1: Configured External Path cost 200000
% eth1: Configured Internal Priority 128
% eth1: Configured External Priority 128
% eth1: Designated Root 8002525400b092de
% eth1: Designated Bridge 8002525400b092de
% eth1: Message Age 0 - Max Age 20
% eth1: Hello Time 2 - Forward Delay 15
% eth1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 1
%
 
%
#show spanning-tree rpvst+ vlan 2 interface eth1
% 1: Root Path Cost 0 - Root Port 0 - Bridge Priority 32768
% 1: Root Id 8002525400b092de
% 1: Bridge Id 8002525400b092de
% eth1: Port Number 3 - Ifindex 3 - Port Id 0x8003 - Role Designated - State Forwarding
% eth1: Designated Internal Path Cost 0 - Designated Port Id 0x8003
% eth1: Configured Internal Path Cost 200000
% eth1: Configured External Path cost 200000
% eth1: Configured Internal Priority 128
% eth1: Configured External Priority 128
% eth1: Designated Root 8002525400b092de
% eth1: Designated Bridge 8002525400b092de
% eth1: Message Age 0 - Max Age 20
% eth1: Hello Time 2 - Forward Delay 15
% eth1: Forward Timer 0 - Msg Age Timer 0 - Hello Timer 0
%
 
spanning-tree rpvst+ configuration
Use this command to enter RPVST+ configuration mode after creating a bridge and adding a VLAN to that bridge.
Internally, an RSTP Instance is created for each configured VLAN.
Command Syntax
spanning-tree rpvst+ configuration
Parameters
None
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#spanning-tree rpvst+ configuration
(config-rpvst+)#
spanning-tree vlan restricted-role
Use this command to restrict the role of the interface.
Use the no form of this command to not restrict the role of the interface.
Command Syntax
spanning-tree vlan <2-4094> restricted-role
no spanning-tree vlan <2-4094> restricted-role
Parameters
<2-4094>
VLAN identifier.
Default
The default is to not restrict the role of the interface
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#spanning-tree vlan 10 restricted-role
spanning-tree vlan restricted-tcn
Use this command to restrict propagating topology change notifications (TCNs) from the interface.
Use the no form of this command to not restrict propagating TCNs from the interface.
Command Syntax
spanning-tree vlan <2-4094> restricted-tcn
no spanning-tree vlan <2-4094> restricted_tcn
Parameters
<2-4094>
VLAN identifier.
Default
The default is to not restrict propagating TCNs
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#spanning-tree vlan 10 restricted-tcn
(config-if)#no spanning-tree vlan 10 restricted_tcn