86 CHAPTER 9: VLAN CONFIGURATION
Configuring Basic 
VLAN Attributes
Follow these steps to configure basic VLAN attributes:
n
■ As the default VLAN, VLAN 1 cannot be created or removed.
■ You cannot manually create or remove reserved VLANs, which are reserved for 
specific functions.
■ Dynamic VLANs cannot be removed using the undo vlan command.
■ If a VLAN has a QoS policy configured, the VLAN cannot be removed.
■ If a VLAN is configured as a remote-probe VLAN for remote port mirroring, it 
cannot be removed using the undo vlan command unless its remote-probe 
VLAN configuration is removed.
Basic VLAN Interface 
Configuration
Hosts of different VLANs cannot communicate directly. That is, routers or Layer 3 
switches are needed for packets to travel across different VLANs. VLAN interfaces 
are used to forward VLAN packets on Layer 3.
VLAN interfaces are Layer 3 virtual interfaces (which do not exist physically on 
devices) used for Layer 3 interoperability between different VLANs. Each VLAN can 
have one VLAN interface. Packets of a VLAN can be forwarded on network layer 
through the corresponding VLAN interface. As each VLAN forms a broadcast 
domain, a VLAN can be an IP network segment and the VLAN interface can be the 
gateway to enable IP address-based Layer 3 forwarding.
Follow these steps to configure VLAN interface basic attributes:
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Create VLANs  vlan { vlan-id1 [ to vlan-id2 ] | 
all } 
Optional
Using this command can 
create multiple VLANs in a 
bulk. 
Enter VLAN view  vlan vlan-id Required
If the specified VLAN does not 
exist, the command creates 
the VLAN and then enters its 
view.
By default, only the default 
VLAN (that is, VLAN 1) exists 
in the system. 
Specify a descriptive string for 
the VLAN 
description text Optional
VLAN ID used by default, for 
example, “VLAN 0001"
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Create a VLAN interface or 
enter VLAN interface view 
interface Vlan-interface 
vlan-interface-id 
Required
This command leads you to 
VLAN interface view if the 
VLAN interface already exists.