Switchport Access Vlan - Cisco 4500M Command Reference Manual

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

Advertisement

Chapter2
Cisco IOS Commands for the Catalyst 4500 Series Switches

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
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.
If your system is configured with a Supervisor Engine 1, valid values for vlan-id are from 1 to 1005. If
your system is configured with a Supervisor Engine 2, valid values for vlan-id are from 1 to 4094.
Extended-range VLANs are not supported on systems configured with a Supervisor Engine 1.
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)#
78-16201-01
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.
Access VLAN and trunk interface native VLAN are default VLANs corresponding to the platform
or 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
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
command without any keywords to configure the LAN interface as a
switchport
command for the interface.
switchport access vlan
2-459

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ws-c4507r4500 series

Table of Contents