Specifications

2-856
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 mode
The port becomes inactive if you configu re it as a private VLAN trunk port and one of the following
applies:
The po rt does not have a valid PVLAN associa tion.
The po rt does not have valid allowed nor mal VLANs.
If a private port PVLAN association or mapping is deleted, or if a private port is configured as a SPAN
destination, it becomes inactive.
Examples This example shows how to set the interface to dynamic desirable mode:
Switch(config-if)# switchport mode dynamic desirable
Switch(config-if)#
This example shows how to set a port to PVLAN host mode:
Switch(config-if)# switchport mode private-vlan host
Switch(config-if)#
This example shows how to set a port to private VLAN trunk:
Switch(config-if)# switchport mode private-vlan trunk
Switch(config-if)#
This example shows how to configure a por t for an 802.1Q tunnel port:
Switch(config-if)# switchport mode dot1q-tunnel
Switch(config-if)#
This example shows how to configure a pr omiscuous trunk port :
Switch(config-if)# switchport mode private-vlan trunk promiscuous
Switch(config-if)#
This example shows how to configure an isola ted trunk port:
Switch(config-if)# switchport mode private-vlan trunk
OR
Switch(config-if)# switchport mode private-vlan trunk secondary
Switch(config-if)#
You can verify your settings by entering the show interfaces switchport command and examining
information in the Administrative Mode and Operational Mode rows.
This example shows how to configure interface Fast Ethernet 5/2 as a PVLAN promiscu ous port, map it
to a PVLAN, and verify the configurat ion:
Switch# configure terminal
Switch(config)# interface fastethernet 5/2
Switch(config-if)# switchport mode private-vlan promiscuous
Switch(config-if)# switchport private-vlan mapping 200 2
Switch(config-if)# end
Switch# show interfaces fastethernet 5/2 switchport
Name:Fa5/2
Switchport:Enabled
Administrative Mode:private-vlan promiscuous
Operational Mode:private-vlan promiscuous
Administrative Trunking Encapsulation:negotiate
Operational Trunking Encapsulation:native
Negotiation of Trunking:Off
Access Mode VLAN:1 (default)
Trunking Native Mode VLAN:1 (default)
Voice VLAN:none