EasyManuals Logo

Cisco Catalyst 250 Series Command Reference

Cisco Catalyst 250 Series
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #121 background imageLoading...
Page #121 background image
switchport access vlan
To configure a port as a static-access, use the switchport access vlan command in interface configuration
mode. To reset the access mode to the default VLAN mode, use the no form of this command.
switchport access vlan vlan-id
no switchport access vlan
Syntax Description
VLAN ID of the access mode VLAN. The range is 1 to 4094.
vlan-id
Command Default
The default access VLAN and trunk interface native VLAN is a default VLAN corresponding to the platform
or interface hardware.
A dynamic-access port is initially a member of no VLAN and receives its assignment based on the packet it
receives.
Command Modes
Interface configuration
Command History
ModificationRelease
This command was introduced.Cisco IOS 15.0(2)EX
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:
Switch(config-if)# switchport access vlan 2
Related Commands
DescriptionCommand
Configures the VLAN membership mode of a port.
switchport mode
Catalyst 2960-X Switch Layer 2 Command Reference, Cisco IOS Release 15.0(2)EX
OL-29043 -01 115
Layer 2 Commands
switchport access vlan

Table of Contents

Other manuals for Cisco Catalyst 250 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 250 Series and is the answer not in the manual?

Cisco Catalyst 250 Series Specifications

General IconGeneral
BrandCisco
ModelCatalyst 250 Series
CategorySwitch
LanguageEnglish

Related product manuals