VLAN Commands
501
FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\CLI Folders\Dell Contax
CLI\files\VLAN_ISCLI_Only.fm
D E L L CO N F I D E N T I A L – P R E L I MI N A RY 5/ 1 5 /1 2 - F O R PR O O F O N LY
Example
The following example configures gigabitethernet port
1/0/1
as an untagged
layer 2 VLAN port.
Console(config)#
interface
gigabitethernet 1/0/1
Console(config-if)#
switchport mode access
switchport access vlan
Use the
switchport access vlan
Interface Configuration (Ethernet, port-
channel) mode command to configure the VLAN ID when the interface is in
access mode. Use 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 ID to which the port is configured.
none
—Specifies the access port cannot belong to any VLAN.
Default Configuration
If the default VLAN is enabled, the VLAN ID is 1. Otherwise, it is not a
member of any VLAN.
Command Mode
Interface Configuration (Ethernet, port-channel) mode
User Guidelines
The command automatically removes the port from the previous VLAN and
adds it to the new VLAN.