R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
40
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 VLANs ranging from vlan-id1 to vlan-id2, except
reserved VLANs.
Use the undo vlan command to remove the specified VLANs.
You cannot create or remove the default VLAN (VLAN 1).
You cannot create or remove VLANs reserved for specific functions.
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.
Port-based VLAN configuration commands
display port
Syntax
display port { hybrid | trunk }
View
Any view
Default level
1: Monitor level
Parameters
hybrid: Displays hybrid ports.
trunk: Displays trunk ports.
Description
Use the display port command to display information about the hybrid or trunk ports on the device,
including the port names, PVIDs, and allowed VLAN IDs.