![H3C S5120-SI Series Command Reference Manual Download Page 134](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_command-reference-manual_3713315134.webp)
123
undo vlan
{
vlan-id1
[
to
vlan-id2
] |
all
}
View
System view
Default level
2: System level
Parameters
vlan-id1
,
vlan-id2
: Specifies a VLAN ID, ranging from 1 to 4094.
vlan-id1
to
vlan-id2
: Specifies a VLAN range.
all
: Creates or removes all VLANs except reserved VLANs. The keyword is not supported when the
maximum number of VLANs that can be created on a device is less than 4094.
Description
Use the
vlan
vlan-id
command to create a VLAN and enter its view or enter the view of an existing VLAN.
Use the
vlan
vlan-id1
to
vlan-id2
command to create a range of VLANs specified by
vlan-id1
to
vlan-id2
,
except reserved VLANs.
Use the
undo vlan
command to remove the specified VLANs.
NOTE:
•
As the default VLAN, VLAN 1 cannot be created or removed.
•
You cannot create or remove reserved VLANs reserved for specific functions.
•
You cannot use the
undo vlan
command to directly remove reserved VLANs, voice VLANs,
management VLANs, dynamic VLANs, VLANs configured with QoS policies, control VLANs configured
for Smart Link, or remote probe VLANs configured for port mirroring. To remove these VLANs, remove
related configurations first.
•
If an isolate-user-VLAN and a secondary VLAN are associated with each other with the
isolate-user-vlan
command, the isolate-user-VLAN or secondary VLAN cannot be removed unless the
association is removed first.
Related commands:
display vlan
.
Examples
# 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.