R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference
100
Syntax
vlan { vlan-id1 [ to vlan-id2 ] | all }
undo vlan { vlan-id1 [ to vlan-id2 ] | all }
Default
Only the default VLAN (VLAN 1) exists in the system.
Views
System view
Default command level
2: System level
Parameters
vlan-id1, vlan-id2: Specifies a VLAN ID in the range of 1 to 4094.
vlan-id1 to vlan-id2: Specifies a VLAN range. vlan-id2 must be no smaller than vlan-id1.
all: Creates or removes all VLANs except reserved VLANs.
Usage guidelines
You cannot create or remove the default VLAN (VLAN 1).
You cannot create or remove VLANs reserved for specific functions.
To remove the following VLANs, remove the related configurations first, because you cannot use the undo
vlan command to directly remove them:
• Protocol reserved VLANs
• Voice VLANs
• Management VLANs
• Dynamic VLANs
• VLANs configured with QoS policies
• Control VLANs configured for smart link groups or RRPP domains
• Source VLANs for port mirroring
• Remote probe VLANs for remote port mirroring
Examples
# Create VLAN 2, and enter VLAN 2 view.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2]
# Create VLAN 4 through VLAN 100.
<Sysname> system-view
[Sysname] vlan 4 to 100
Please wait............. Done.
Related commands
display vlan