2-1070
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -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 The default settings are as follows:
• IOS-XE only supports dot1Q.
• The access VLANs and trunk interface native VLANs are a default VLAN that corresponds to the
platform or the interface hardware.
• All VLAN lists include all VLANs.
• Native VLAN tagging is enabled on the port if enabled globally.
Command Modes Interface configuration mode
Command History
native vlan tag Specifies the tagging of native VLAN traffic on 802.1Q trunks.
native vlan vlan_id Sets the native VLAN for the trunk in 802.1Q trunking 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 vlan_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.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch..
12.1(12c)EW Support for extended addressing was added.
12.2(18)EW Support for native VLAN tagging was added.