Cisco 4500M Command Reference Manual page 490

Command reference
Hide thumbs Also See for 4500M:
Table of Contents

Advertisement

switchport
When you are using the nonegotiate keyword, DISL/DTP negotiation packets will not be sent on the
interface. The device will trunk or not trunk according to the mode parameter given: access or trunk.
This command will return an error if you attempt to execute it in dynamic (auto or desirable) mode.
The voice VLAN is automatically set to VLAN 1 unless you use one of the optional keywords.
If you use the switch port voice vlan command for an interface, the interface cannot join a port channel.
When you use the switchport voice vlan command the output for the show running-config command
changes to show the voice VLAN set.
Examples
This example shows how to cause the port interface to cease operating as a Cisco-routed port and convert
to a Layer 2-switched interface:
Switch(config-if)# switchport
Switch(config-if)#
This example shows how to cause a port interface in access mode, configured as a switched interface, to
operate in VLAN 2:
Switch(config-if)# switchport access vlan 2
Switch(config-if)#
This example shows how to cause a port interface, configured as a switched interface, to refrain from
negotiating trunking mode and act as a trunk or access port (depending on the mode set):
Switch(config-if)# switchport nonegotiate
Switch(config-if)#
This example shows how to set the voice VLAN for the interface to VLAN 2:
Switch(config-if)# switchport voice vlan 2
switchport voice vlan 2
Switch(config-if)#
Related Commands
show interfaces switchport
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
2-458
Chapter2
Cisco IOS Commands for the Catalyst 4500 Series Switches
78-16201-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ws-c4507r4500 series

Table of Contents