instance vlan (VLAN instance view)

Function

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.

Format

instance instance-id vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo instance instance-id [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

Parameters

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.

Views

VLAN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vlan write

Usage Guidelines

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.

Example

# Map VLAN 2 to instance 1.
<HUAWEI> system-view
[~HUAWEI] vlan instance
[~HUAWEI-vlan-instance] instance 1 vlan 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >