CLI Reference Guide

822 VLAN Commands
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.)
vlan-atom
is either a single VLAN number from 1 to 4093 or a
continuous range of VLANs described by two VLAN numbers, the
lesser one first, separated by a hyphen.
valid–id
—A valid VLAN id from 1–4093.
Default Configuration
All VLANs are members of a trunk port.
VLAN 1 is the native VLAN on a trunk port. VLAN 1 is the default VLAN for
access mode ports.
Command Mode
Interface Configuration (gigabitethernet, port-channel, tengigabitethernet,
fortygigabitethernet) mode
Interface Range mode
Port-Channel Range mode
User Guidelines
Untagged traffic received on a trunk port is forwarded on the native VLAN, if
configured.
To drop untagged traffic on a trunk port, remove the native VLAN from the
trunk port. (Ex. switchport trunk allowed vlan remove 1.) Management
traffic is still allowed on the trunk port in this configuration.
The no form of the command sets the trunk port back to the defaults.
2CSNXXX_SWUM200.book Page 822 Tuesday, December 10, 2013 1:22 PM