Switchport Access Vlan - Cisco Catalyst 3650 series Command Reference Manual

Cisco ios xe everest 16.5.1a
Hide thumbs Also See for Catalyst 3650 series:
Table of Contents

Advertisement

switchport access vlan

To configure a port as a static-access port, use the switchport access vlan command in interface configuration
mode. To reset the access mode to the default VLAN mode for the device, use the no form of this command.
switchport access vlan {vlan-id | name vlan_name}
no switchport access vlan
Syntax Description
vlan-id
Command Default
The default access VLAN and trunk interface native VLAN is a default VLAN corresponding to the platform
or interface hardware.
Command Modes
Interface configuration
Command History
Release
Cisco IOS XE 3.3SE Cisco IOS XE 3.3SE
Cisco IOS XE Denali 16.2.1
Usage Guidelines
The port must be in access mode before the switchport access vlan command can take effect.
If the switchport mode is set to access vlan vlan-id, the port operates as a member of the specified VLAN.
An access port can be assigned to only one VLAN.
The no switchport access command resets the access mode VLAN to the appropriate default VLAN for the
device.
Examples
This example shows how to change a switched port interface that is operating in access mode to operate in
VLAN 2 instead of the default VLAN:
Device(config-if)# switchport access vlan 2
Examples
This example show how to first populate the VLAN database by associating a VLAN ID with a VLAN name,
and then configure the VLAN (using the name) on an interface, in the access mode: You can also verify your
configuration by entering the show interfaces interface-id switchport in privileged EXEC command and
examining information in the Access Mode VLAN: row.
VLAN ID of the access mode VLAN; the range is 1 to 4094.
Modification
This command was introduced.
The name vlan_name keyword was introduced.
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
switchport access vlan
357

Advertisement

Table of Contents
loading

Table of Contents