Specifications
2-855
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
switchport mode
switchport mode
To set the interface type, use the switchport mode command. To reset the mode to the appropriate
default mode for the de vice, u se the no form of this command.
switchport mode {access | dot1q-tunnel | trunk | dynami c { auto | desirab le }}
switchport mode private-vlan {host | promiscuous | trunk promiscuous | trunk [secondary]}
no switchport mode dot1q-tunnel
no switchport mode private-vlan
Syntax Description
Defaults Link converts to a trunk li nk.
dot1q tunnel ports are disabled.
Command Modes Interface configur ation mode
Usage Guidelines If you enter access mode, the interface goes into permanent nontrunking mode and negotiates to convert
the link into a nontrunk link even if the neighbor ing interface does no t approve the change.
If you enter tr unk mo de, the interface goes into permanent trunkin g mode and negotia tes to conve rt the
link into a trunk link even if the neighbori ng interface does not appr ove the change.
If you enter dynamic auto mode, the interface converts the link to a trunk link if the neighboring
interface is set to trunk or desirab le mode.
If you enter dynamic desirable mode, the interface becomes a trunk interface if the neighboring
interface is set to trunk, desirable, or auto mode.
If you specify the dot1q-tunnel keyword, the port is set unconditionally as an 802.1Q tunnel port.
access Specifies a nontrunking, nont agged single VLAN Layer 2 inte rface.
dot1q-tunnel Specifies an 802.1Q tunnel port.
trunk Specifies a trunking VLAN Layer 2 interface.
dynamic auto Specifies that the interface convert the link to a trunk link.
dynamic desirable Specifies that the interface actively a ttempt to convert the link to a trunk li nk.
private-vlan host Specifies that the ports with a valid PVLAN trunk association become active host
private VLAN trunk ports.
private-vlan
promiscuous
Specifies that the ports with a valid PVLAN mapping become active promiscuous
ports.
private-vlan trunk
promiscuous
Specifies that the ports with valid PVLAN trunk mapping become active
promiscuous trunk ports.
private-vlan trunk
secondary
Specifies that the ports with a valid PVLAN trunk association become active host
private VLAN trunk ports.