ECS2020 Series CLI Reference Guide R04
54
16.2
Configure different types of VLAN
Access VLAN
In port mode, configure the access attributes of the port.
switch access vlan vlan-id
Port default mode is access, default VLAN is VLAN 1
Interface configuration mode
Enter a VLAN ID. If the input is a VLAN ID that is not created, the device will indicate
that the VLAN does not exist. If the input is an already existing VLAN
ID, the VLAN
member port is increased.
Configure port 1 to belong to VLAN 2:
ECS2020-10P(config)# interface GigabitEthernet 0/1
ECS2020-10P(config-if-GigabitEthernet0/1)# switch access vlan 2
Trunk allowed VLAN
Specify a native VLAN for a trunk port and a list of permissions to configure this trunk port
VLAN. Use the no option of this command to restore the trunk property of the interface to the
default value.
switch trunk allowed vlan vlan-id
no switch trunk allowed vlan
Parameter
Parameter
Description
vlan-id
Port to join VLAN's ID.
Command
Command
Description
show vlan
Displays the VLAN configuration.
Default
Command
Usage
Example