vlan (Default MD view)

Function

The vlan command creates VLANs in the default MD.

The undo vlan command deletes VLANs from the default MD.

By default, no VLAN is configured in the default MD.

Format

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

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

Parameters

Parameter Description Value
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.

The value is an integer ranging from 1 to 4094. vlan-id2 must be greater than <vlanBgn>.

Views

Default MD view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
y1731 write

Usage Guidelines

Usage Scenario

After running the cfm default md command to configure a default MD, you can run the vlan command to configure VLANs to which created MIPs belong.

Precautions

The specified VLANs must not be associated with MAs.

Example

# Associate VLANs 100 to 200 with the default MD.
<HUAWEI> system-view
[~HUAWEI] cfm enable
[*HUAWEI] cfm default md
[*HUAWEI-default-md] vlan 100 to 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic