HP VPN Firewall Appliances Network Management Command Reference

58
vlan
Use vlan vlan-id to create a VLAN and enter its view or enter the view of an existing VLAN.
Use vlan vlan-id1 to vlan-id2 to create VLANs in the range of vlan-id1 to vlan-id2, except reserved
VLANs.
Use vlan all to create VLANs 1 through 4094.
Use undo vlan to remove the specified VLANs.
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. The value range for vlan-id1 and vlan-id2 is 1 to 4094.
vlan-id2 must be no smaller than vlan-id1.
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.
Usage guidelines
You cannot create or remove the default VLAN (VLAN 1).
You cannot create or remove VLANs reserved for specific functions.
To remove protocol reserved VLANs, remove the related configurations first, because you cannot use the
undo vlan command to directly remove them.
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