H3C LSW1FC4P0 Interface Card for S5820X-28C Ethernet Switches Command Line Interface Guide Firmware Version 9.0.7

Command Reference
Vlan
306 59272-00 C
Vlan
Manages and displays virtual LAN configurations.
Authority Admin session for the Vlan List command. All other commands require an Admin
session and a Config Edit session.
Syntax vlan list
active
configured
edited
or
vlan [vlan_number]
add port [port_list]
create
delete
remove port [port_list]
Keywords active
Displays the active virtual LAN configuration. This is the Vlan List command
default.
configured
Displays the virtual LAN configuration that resides in volatile memory.
edited
Displays the virtual LAN configuration residing in volatile memory that has not
been saved.
[vlan_number]
The number of the virtual LAN associated with the operation to add an internal
port, create a virtual LAN, delete a virtual LAN, or to remove an internal port.
[vlan_number] can be an integer from 1–4094. The vlan number 1002 is reserved
as the default virtual LAN.
add port [port_list]
Adds one or more internal ports given by [port_list] to the virtual LAN given by
[vlan_number]. [port_list] can be a set of internal port numbers (4–7) and ranges
delimited by spaces. A port can be assigned to one virtual LAN at a time. If you
add a port to a VLAN, that port will be removed from any VLAN to which it is
currently assigned. By default, all internal ports (4–7) are members of the VLAN
1002.