OcNOS-SP : Layer 2 Guide : Layer 2 Command Reference : Spanning Tree Protocol Commands : bridge instance vlan
bridge instance vlan
Use this command to simultaneously add multiple VLANs for the corresponding instance of a bridge.The VLANs must be created before being associated with an MST instance (MSTI). If the VLAN range is not specified, the MSTI will not be created.
Use the no form of this command to simultaneously remove multiple VLANs for the corresponding instance of a bridge.
Command Syntax
bridge (<1-32> | backbone) instance (<1-63>) vlan VLANID
no bridge (<1-32> | backbone) instance (<1-63>) vlan VLANID
Parameters
<1-32>
Bridge identifier.
backbone
Backbone bridge.
<1-63>
MST instance identifier.
VLANID
VLAN identifier(s) <2-4094>. You can specify a single VLAN, a VLAN range, or a VLAN list.
For a VLAN range, specify two VLAN identifiers: the lowest and then the highest separated by a hyphen. For a VLAN list, specify the VLAN identifiers separated by commas. Do not enter spaces between the hyphens or commas.
Default
The bridge instance VLAN ID Interfaces default-switch is VLAN100 100 ae0.0 ae1.0 ae2.0.
Command Mode
MST configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
To associate multiple VLANs, in this case VLANs 10 and 20 to instance 1 of bridge 1:
#configure terminal
(config)#bridge 1 protocol mstp
(config)#spanning-tree mst configuration
(config-mst)#bridge 1 instance 1 vlan 10,20
To associate multiple VLANs, in this case, VLANs 10, 11, 12, 13, 14, and 15 to instance 1 of bridge 1:
#configure terminal
(config)#bridge 1 protocol mstp
(config)#spanning-tree mst configuration
(config-mst)#bridge 1 instance 1 vlan 10-15
To delete multiple VLANs, in this case, VLANs 10 and 11 from instance 1 of bridge 1:
#configure terminal
(config)#bridge 1 protocol mstp
(config)#spanning-tree mst configuration
(config-mst)#no bridge 1 instance 1 vlan 10,11
Last modified date: 07/06/2023