Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
2-92
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
switchport access vlan
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.
switchport access vlan vlan-id
no switchport access vlan
Syntax Description
Command Default VLAN 1.
Command Modes Interface configuration mode
Command History
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(config)# interface ethernet 1/7
switch(config-if)# switchport access vlan 2
Related Commands
vlan-id VLAN to set when the interface is in access mode; valid values are from 1
to 4094, except for the VLANs reserved for internal use.
Release Modification
4.0(0)N1(1a) This command was introduced.
Command Description
show interface
switchport
Displays the administrative and operational status of a port.