ECS2020 Series CLI Reference Guide R04
55
Parameter
Description
Parameter
allowed vlan vlan-list
Configure the VLAN permission list for this
trunk
port. The parameter vlan-list can be
either a
VLAN or a series of VLANs, beginning
with a
small VLAN ID and ending with a large
VLAN ID,
with the (-) symbol connection in
the middle.
Such as 10-20. Segments can be
separated by
symbols, such as: 1-10,20-
25,30,33.The
meaning of all is that the
permission VLAN list
contains all supported
VLANs; “add” indicates
that the specified VLAN list is added to the
allowed VLAN list;
“remove” indicates that the
specified VLAN
list is removed from the allowed
VLAN list.
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 belong to vlan 3:
ECS2020-10P(config)# interface GigabitEthernet 0/1
ECS2020-10P(config-if-GigabitEthernet0/1)# switch trunk allowed vlan 3
Trunk native VLAN
Specify a native VLAN for a trunk port and a list of permissions to configure a trunk port VLAN.
Use the no option of this command to restore the interface’s trunk property to the default value.
switch trunk native vlan vlan-id
no switch trunk native vlan
Command
Command
Description
show vlan
Displays the VLAN configuration.
Default
Mode
Usage
Example