The instance vlan command maps a VLAN or VLAN range to an instance.
The undo instance vlan command deletes the mapping between a VLAN or VLAN range and an instance.
By default, all VLANs are mapped to instance 0.
Parameter | Description | Value |
---|---|---|
instance-id |
Specifies the ID of a Layer 2 ring protocol instance. |
The value is an integer ranging from 0 to 4094, Value 0 indicates CIST. |
vlan-id1 |
Specifies the start VLAN ID. |
The value is an integer ranging from 1 to 4094. |
to vlan-id2 |
Specifies the end VLAN ID. <vlanIdEnd> and <vlanIdBegin> specify a value range. If you do not specify to <vlanIdEnd>, only <vlanIdBegin> is mapped to an instance. <vlanIdEnd> must be greater than or equal to <vlanIdBegin>. |
The value is an integer ranging from 1 to 4094. |
Usage Scenario
When you configure a Layer 2 ring protocol, run the instance vlan command in the VLAN instance view to configure mappings between a Layer 2 ring protocol instance and VLANs. This command applies to all ring protocols, facilitating configurations.
Configuration Impact
After you run the undo instance vlan command to delete mappings between a specified instance and VLANs, these VLANs will be remapped to instance 0.
If the instance vlan command is run more than once, all configurations take effect.