Switchport access vlan – Dell PowerEdge VRTX User Manual

Page 544

Advertising
background image

544

VLAN Commands

FILE LOCATION: C:\Users\gina\Desktop\Checkout_new\CLI Folders\Dell Plasma-ARC

2+3\new_system_mifs_ARC2_latest\VLAN.fm

D E L L C O N F ID E N T IA L – P R E L IM I N A RY 4 / 3 /1 4 - FO R P R O O F O N LY

Example

Example 1 - The following example configures gi0/1 as an access port
(untagged layer 2) VLAN port.

console(config)# interface gi0/1

console(config-if)# switchport mode access

console(config-if)# switchport access vlan 2

Example 2 - The following example puts the port gi0/2 into private-vlan host

mode.

console(config)# interface gi0/2

console(config-if)# switchport mode private-vlan host

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.

Advertising