![NetApp CN1610 Cli Command Reference Download Page 380](http://html.mh-extra.com/html/netapp/cn1610/cn1610_cli-command-reference_1669922380.webp)
Chapter 5: Switching Commands
377
switchport trunk
allowed vlan
Use this command to configure the list of allowed VLANs that can receive and
send traffic on this interface in tagged format when in trunking mode. The default
is all.
The VLANs list can be modified using the add or remove options or replaced
with another list using the vlan-list, all, or except options. If all is choosen, all
VLANs are added to the list of allowed vlan. The except option provides an
exclusion list.
Trunk ports accept tagged packets, where tagged packets are processed on the
VLAN ID contained in the packet, if this VLAN is in the allowed VLAN list.
Tagged packets received with a VLAN ID to which the port is not a member are
discarded and MAC learning is not performed. If a VLAN is added to the system
after a port is set to the Trunk mode and it is in the allowed VLAN list, this
VLAN is assigned to this port automatically.
Default
All
Format
switchport trunk allowed vlan {
vlan-list
| all | {add
vlan-list
} | {remove
vlan-list
} | {except
vlan-list
}}
Mode
Interface Config
Parameter
Description
all
Specifies all VLANs from 1 to 4093. This keyword
is not allowed on commands that do not permit all
VLANs in the list to be set at the same time.
add
Adds the defined list of VLANs to those currently
set instead of replacing the list.
remove
Removes the defined list of VLANs from those
currently set instead of replacing the list. Valid IDs
are from 1 to 4093; extended-range VLAN IDs of
the form X-Y or X,Y,Z are valid in this command.
except
Lists the VLANs that should be calculated by
inverting the defined list of VLANs. (VLANs are
added except the ones specified.)
Summary of Contents for CN1610
Page 3: ......
Page 31: ...28 Accessing the CLI ...
Page 309: ...306 Remote Monitoring Commands ...
Page 473: ...470 Port Mirroring Commands 100 ...
Page 487: ...484 DHCP L2 Relay Agent Commands Mode Privileged EXEC ...
Page 607: ...604 IPv6 Management Commands ...