Cisco Catalyst 4500 Series Command Reference Manual page 1108

Cisco ios command reference release ios xe 3.4.0sg and ios 15.1(2)sg
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

switchport mode
If you enter dynamic auto mode, the interface converts the link to a trunk link if the neighboring
interface is set to trunk or desirable 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.
The port becomes inactive if you configure it as a private VLAN trunk port and one of the following
applies:
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 port for an 802.1Q tunnel port:
Switch(config-if)# switchport mode dot1q-tunnel
Switch(config-if)#
This example shows how to configure a promiscuous trunk port:
Switch(config-if)# switchport mode private-vlan trunk promiscuous
Switch(config-if)#
This example shows how to configure an isolated 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 FastEthernet 5/2 as a PVLAN promiscuous port, map it
to a PVLAN, and verify the configuration:
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
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
2-1050
The port does not have a valid PVLAN association.
The port does not have valid allowed normal VLANs.
Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
OL-27596 -01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents