606 Configuring VLANs
switchport trunk 
{allowed vlan 
vlan-
list
|native vlan 
vlan-id
}
Set the list of allowed VLANs that can receive and send 
traffic on this interface in tagged format when in trunking 
mode.
•
allowed
 
vlan-list
 — Set the list of allowed VLANs that 
can receive and send traffic on this interface in tagged 
format when in trunking mode. Separate non-consecutive 
VLAN IDs with a comma and no spaces. Use a hyphen to 
designate a range of IDs.
The 
vlan-list
 format is 
all
 | [
add
 | 
remove
 | 
except
] 
vlan-
atom
 [
vlan-atom
...] where: 
•
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 1005; extended-range VLAN IDs are 
valid in.
•
except
—Lists the VLANs that should be calculated by 
inverting the defined list of VLANs. (VLANs are added 
except the ones specified.) .
•
vlan-atom 
—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.
•
native
 vlan-id
— The untagged VLAN.  Untagged packets 
received on this interface are switched in this VLAN. 
Transmitted packets in this VLAN are sent untagged. 
CTRL + Z Exit to Privileged EXEC mode.
show interfaces 
switchport 
interface
Display information about the VLAN settings configured 
for the specified interface. The 
interface 
variable includes 
the interface type and number.
Command Purpose