Switchport Access Vlan - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

switchport access vlan

switchport access vlan
To set the VLAN when an interface is in access mode, use the switchport access vlan command. To
reset the access mode VLAN to the appropriate default VLAN for the device, use the no form of this
command.
Syntax Description
vlan-id
dynamic
Defaults
The default settings are as follows:
Command Modes
Interface configuration mode
Command History
Release
12.1(12c)EW
12.1(13)EW
Usage Guidelines
You must enter the
Layer 2 interface before you can enter the switchport access vlan command. This action is required only
if you have not already entered the
Entering the no
messages on the device to which the port is connected.
The no form of the switchport access vlan command resets the access mode VLAN to the appropriate
default VLAN for the device.
Valid values for vlan-id are from 1 to 4094.
Examples
This example shows how to cause the port interface to stop operating as a Cisco-routed port and convert
to a Layer 2-switched interface:
Switch(config-if)# switchport
Switch(config-if)#
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0SG and IOS 15.1(1)SG)
2-990
switchport access [vlan {vlan-id | dynamic}]
no switchport access vlan
(Optional) Number of the VLAN on the interface in access mode; valid values are from
1 to 4094.
(Optional) Enables VMPS control of the VLAN.
The access VLAN and trunk interface native VLAN are default VLANs that correspond to the
platform or the interface hardware.
All VLAN lists include all VLANs.
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Support for VPMS was added.
switchport
switchport
command shuts the port down and then reenables it, which could generate
Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
command without any keywords to configure the LAN interface as a
switchport
command for the interface.
OL-25342 -01

Advertisement

Table of Contents
loading

Table of Contents