Switchport Access Vlan - Cisco MWR 2941 Command Reference Manual

Table of Contents

Advertisement

Cisco MWR 2941 Router Command Reference, Release 15.0(1)MR

switchport access vlan

To set the VLAN when the interface is in access mode, use the switchport access vlan command in
interface configuration mode. 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
Defaults
The defaults are:
Command Modes
Interface configuration
Command History
Release
12.2(14)SX
12.2(17d)SXB Support for this command on the Supervisor Engine 2 was extended to Release
12.2(33)SRA
15.0(1)MR
Usage Guidelines
You must enter the switchport command without any keywords to configure the LAN interface as a
Layer 2 interface before you can enter the switchport access vlan command. This action is required only
if you have not entered the switchport command for the interface.
Entering the no switchport command shuts down the port and then reenables it. This action may
generate 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.
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:
Router(config-if)# switchport
OL-23890-01
switchport access vlan vlan-id
no switchport access vlan
VLAN that is to be set when the interface is in access mode; valid values are from
1 to 4094.
Access VLAN and trunk-interface native VLAN are default VLANs that correspond to the platform
or interface hardware.
All VLAN lists include all VLANs.
Modification
Support for this command was introduced on the Supervisor Engine 720.
12.2(17d)SXB.
This command was integrated into Cisco IOS Release 12.2(33)SRA.
This command was integrated into Cisco IOS Release 15.0(1)MR.
Cisco MWR 2941 Router Command Reference, Release 15.0(1)MR
switchport access vlan
653

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mwr 2941-dcMwr 2941-dc-a

Table of Contents