Specifications
2-876
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport trunk
switchport trunk
To set the trunk characteristics when an interface is in trunking mode, use the switchport trunk
command. To reset all of the trunking characteristics back to the original defaults, use the no form of
this command.
switchport trunk native vlan {tag | vlan_id}
no switchport trunk native vlan {tag | vlan_id}
switchport trunk allowed vlan vlan_list
no switchport trunk allowed vlan vlan_list
switchport trunk pruning vlan vlan_list
no switchport trunk pruning vlan vlan_list
Syntax Description
Defaults T he default settings are as follows:
• IOS- XE only suppor ts dot1Q.
• The acce ss VLANs and trunk inter face native VLANs are a default VLAN that corresponds t o the
platform or the interface hardware.
• All VLA N lists include all V LANs.
• Native VLAN tagging is enabled on the port if enabled globally.
Command Modes Interface configuration mode
Usage Guidelines The vlan_list format is all | none | [add | remove | except] vlan_atom[,vlan_atom...], whe re:
• all specifies all VLANs from 1 to 4094. This keyword is not supported on com mands that do not
permit all VLANs in the list to be set at the same time.
• none indicates an empty list. This keyword is not supported on commands that require certain
VLANs to be set or at least one VLAN to be set.
• 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.
native vlan tag Specifies the tagging of native VLAN traffic on 802.1Q trunks.
native vlan vlan_id Sets the native VLAN for the tr unk in 802.1Q trunki ng mode.
allowed vlan vlan_list Sets the list of allowed VLANs that transmit this interface in tagged
format when in trunking mode. See the “Usage Guidelines” section for
formatting guidelines for v lan_list.
pruning vlan vlan_list Sets the list of VLANs that are enabled for VTP pruning when the switch
is in trunking mode. See the “Usage Guidelines” section for formatting
guidelines for vlan_list.