ECS2020 Series CLI Reference Guide R04

53
The switch port default mode is access
Interface configuration mode
If a switch port mode is access, this port can only be a member of a VLAN. Use command:
switch access vlan to
specify which VLAN is the member of the interface. If a switch
port
mode is trunk or hybrid, this port can be a member of multiple VLANs. The port
VLAN that the interface can belong to is determined by the VLAN list of the interface.
Trunk
ports or hybrid ports are members of all VLANs in the list
Use the
switch {trunk | hybrid }
command to define the VLAN list of interfaces.
Configure the port1 mode to trunk:
ECS2020-10P(config)# interface GigabitEthernet 0/1
ECS2020-10P(config-if-GigabitEthernet0/1)# switch mode trunk
Management VLAN
Use the command management-vlan vlan vlan-id to enter configuration mode .Use the no option
of the command to remove the created management-vlan.
management-vlan vlan vlan-id
no management-vlan
management-vlan vlan 1
Global configuration mode
If the input VLAN ID does not exist, the system creates the VLAN and enters the VLAN.
If the VLAN exists, the system enters the VLAN.
ECS2020-ECS2020-10P(config)# management-vlan vlan 4
ECS2020-10P(config)# no management-vlan
Command
Command
Description
show vlan
Displays the VLAN
configuration.
Parameter
Parameter
Description
vlan-id
VLAN ID number(1-4094).
Command
Command
Description
show vlan
Displays the VLAN configuration.
Default
Mode
Usage
Example
Default
Mode
Usage
Example