The assign vlan command allocates a VLAN to the virtual system.
The undo assign vlan command cancels the allocation.
| Parameter | Description | Value |
|---|---|---|
| vlan-id | Specifies a VLAN ID. | It must be the ID of an existing VLAN. VLAN 1 cannot be assigned to any virtual system. |
By default, no VLAN is assigned to the virtual system.
Prerequisites
A VLAN must be created in the public system before being assigned to a virtual system.
VLANs cannot be assigned in the following conditions. You need to delete the configurations or dissociate the features.
Configuration Impact
VLANs assigned to one virtual system cannot be assigned to other virtual systems.
After a VLAN is assigned to a virtual system, the corresponding VLANIF interface is also automatically assigned to the virtual system.
Precautions
When a VLAN is assigned to a virtual system or is disassociated from a virtual system, the VLANIF interface configurations (such as IP address and IPSec policy configurations) corresponding to the VLAN will be deleted. Exercise caution when assigning a VLAN to a virtual system to prevent service interruption.