< Home

vlan configuration

Function

The vlan configuration command creates and enters the configuration view of a VLAN. When the VLAN is not created, this command does not create the VLAN.

The undo vlan vlan-id configuration command deletes the configuration view of a VLAN.

By default, no VLAN configuration view is created.

Format

vlan vlan-id configuration

undo vlan vlan-id configuration

Parameters

Parameter Description Value
vlan-id Specifies the VLAN ID. The value is an integer ranging from 1 to 4094.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command applies to the following scenarios:
  • If you need to perform configurations in a VLAN without creating the VLAN on VCMP clients, create the VLAN on the VCMP server and run the vlan configuration command on VCMP clients to enter the VLAN configuration view.

  • After a VLAN is deleted on the VCMP server, VCMP clients delete the local VLAN but do not delete configurations in the VLAN. To delete or modify configurations in a VLAN without creating the VLAN, run the vlan configuration command to enter the VLAN configuration view to delete or modify configurations.

The vlan vlan-id configuration command completes the VLAN configuration when the VLAN is not created.

Precautions

The vlan configuration command only enters the VLAN configuration view. Neither the corresponding VLAN or configurations in the VLAN take effect. To make configurations in the VLAN take effect, create the VLAN using the vlan command.

The vlan vlan-id configuration command configuration is displayed in the following situations:
  • The vlan vlan-id configuration command displays the VLAN view and services are configured in the VLAN.
  • The VLAN is deleted using VCMP.

Example

# Enter the configuration view of VLAN 10.

<HUAWEI> system-view
[HUAWEI] vlan 10 configuration
[HUAWEI-vlan10]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >