EasyManua.ls Logo

Cisco Sx350

Cisco Sx350
1323 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
Loading...
Virtual Local Area Network (VLAN) Commands
1265 Cisco Sx350 Ph. 2.2.5 Devices - Command Line Interface Reference Guide
67
switchxxxxxx(config)#
interface
gi1
2
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 show interfaces switchport 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).

Table of Contents

Related product manuals