Switchport Access Vlan - Cisco Nexus 5500 Series Command Reference Manual

Nx-os layer 2 interfaces command reference
Hide thumbs Also See for Nexus 5500 Series:
Table of Contents

Advertisement

Chapter
S Commands

switchport access vlan

To set the access VLAN when the interface is in access mode, use the switchport access vlan command.
To reset the access-mode VLAN to the appropriate default VLAN for the switch, use the no form of this
command.
Syntax Description
vlan-id
Command Default
VLAN 1
Command Modes
Interface configuration mode
Virtual Ethernet interface configuration mode
Command History
Release
5.2(1)N1(1)
Usage Guidelines
Use the no form of the switchport access vlan command to reset the access-mode VLAN to the
appropriate default VLAN for the switch. This action may generate messages on the device to which the
port is connected.
Examples
This example shows how to configure an Ethernet interface to join VLAN 2:
switch# configure terminal
switch(config)# interface ethernet 1/7
switch(config-if)# switchport access vlan 2
switch(config-if)#
This example shows how to configure a virtual Ethernet interface to join VLAN 5:
switch# configure terminal
switch(config)# interface vethernet 1
switch(config-if)# switchport access vlan 5
switch(config-if)#
OL-27880-02
switchport access vlan vlan-id
no switchport access vlan
VLAN to set when the interface is in access mode. The range is from 1 to
4094, except for the VLANs reserved for internal use.
Modification
This command was introduced.
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
switchport access vlan
1223

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents