![Cisco Sx350 Cli Manual Download Page 1266](http://html.mh-extra.com/html/cisco/sx350/sx350_cli-manual_26093201266.webp)
Virtual Local Area Network (VLAN) Commands
1265
Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
67
switchxxxxxx(config)#
interface
gi12
switchxxxxxx(config-if)#
switchport mode private-vlan host
67.11 switchport access vlan
A port in access mode can be an untagged member of at most a single VLAN. The
switchport access vlan Interface Configuration command reassigns an interface
to a different VLAN than it currently belongs or assigns it to none, in which case it is
not a member of any VLAN.
The no form of this command to restore the default configuration.
Syntax
switchport access vlan
{
vlan-id
| none}
no switchport access vlan
Parameters
•
vlan-id
—Specifies the VLAN to which the port is configured.
•
none—Specifies that the access port cannot belong to any VLAN.
Default Configuration
The interface belongs to the Default VLAN.
Command Mode
Interface (Ethernet, Port Channel) Configuration mode
User Guidelines
When the port is assigned to a different VLAN, it is automatically removed from its
previous VLAN and added it to the new VLAN. If the port is assigned to none
,
it is
removed from the previous VLAN and not assigned to any other VLAN.
A non-existed VLAN can be assigned as an Access VLAN. If the Access VLAN
does not exist the
command adds text "(Inactive)" after
VLAN ID.
Example
The following example assigns access port gi11 to VLAN 2 (and removes it from
its previous VLAN).
Summary of Contents for Sx350
Page 1: ...Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide CLI GUIDE ...
Page 26: ...25 Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 1 ...
Page 237: ...CDP Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 236 8 ...
Page 975: ...RADIUS Commands Cisco Sx350 Ph 2 2 5 Devices Command Line Interface Reference Guide 974 48 ...