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.
Parameter | Description | Value |
---|---|---|
vlan-id | Specifies the VLAN ID. | The value is an integer ranging from 1 to 4094. |
Usage Scenario
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.