ECS2020 Series CLI Reference Guide-R04

52
vlan
Use the command vlan vlan-id to enter configuration mode .Use the no option of the command to
remove the existing VLAN.
vlan vlan-id
no vlan vlan-id
VLAN 1
Global configuration mode
If the input vlan vlan-id does not exist, the system creates the VLAN and enters the vlan.
When the VLAN exists, the system enters the VLAN.
ECS2020-10P(config)# vlan 5
ECS2020-10P(config)# no vlan 5
switch mode
Using this command specifies a two-layer interface (switch port) mode, which can be specified as
an access/trunk/hybrid port. Use the switch mode access option to revert the configuration of the
interface to default values.
switch mode [access | trunk | hybrid ]
Parameter
Parameter
Description
vlan-id
VLAN ID number (1-4094).
NoticeThe default VLANVLAN 1cannot be deleted.
Command
Command
Description
show vlan
Displays the VLAN member
ports and
other information.
Parameter
Description
access
Configure a switch port mode is access
trunk
Configure a switch port mode is trunk
hybrid
Configure a switch port mode is hybrid
Default
Mode
Usage
Example