Switchport - Cisco Catalyst 4500 Series Command Reference Manual

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

switchport
To modify the switching characteristics of a Layer 2 switch interface, use the switchport command. To
return the interface to the routed-interface status and cause all further Layer 2 configuration to be erased,
use the no form of this command without parameters.
Syntax Description
access vlan vlan_num
nonegotiate
voice vlan vlan_id
dot1p
none
untagged
Defaults
The default settings are as follows:
Command Modes
Interface configuration mode
Command History
Release
12.1(8a)EW
12.1(11)EW
Usage Guidelines
The no switchport command shuts the port down and then reenables it, which may generate messages
on the device to which the port is connected.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
2-1042
switchport [access vlan vlan_num] | [nonegotiate] | [voice vlan {vlan_id | dot1p | none |
untagged}]
no switchport [access | nonegotiate | voice vlan]
(Optional) Sets the VLAN when the interface is in access mode; valid values
are from 1 to 1005.
(Optional) Specifies that the DISL/DTP negotiation packets will not be sent
on the interface.
(Optional) Specifies the number of the VLAN; valid values are from 1 to
1005.
(Optional) Specifies that the PVID packets are tagged as priority.
(Optional) Specifies that the telephone and voice VLAN do not
communicate.
(Optional) Specifies the untagged PVID packets.
Switchport trunking mode is enabled.
Dynamic negotiation parameter is set to auto.
Access VLANs and trunk interface native VLANs are a default VLAN corresponding to the platform
or interface hardware.
All VLAN lists include all VLANs.
No voice VLAN is enabled.
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Support for voice VLAN was added.
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