Send document comments to nexus7k-docfeedback@cisco.com
3-21
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 3 Configuring Layer 2 Interfaces
Configuring Access and Trunk Interfaces
DETAILED STEPS
This example shows how to change the behavior of the native VLAN on an 802.1Q trunked interface to
maintain the tagged packets and drop all untagged traffic (except control traffic):
switch# configure terminal
switch(config)# vlan dot1q tag native
switch#
Changing the System Default Port Mode to Layer 2
You can set the system default port mode to Layer 2 access ports.
See the Cisco NX-OS FCoE Configuration Guide for Cisco Nexus 7000 and Cisco MDS 9500 for
information on setting the system default port mode to Fibre Channel in storage VDCs.
SUMMARY STEPS
1. configure terminal
2. system default switchport [shutdown]
3. exit
4. (Optional) show interface brief
5. (Optional) copy running-config startup-config
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
vlan dot1q tag native
Example:
switch(config)# vlan dot1q tag native
Modifies the behavior of a 802.1Q trunked native
VLAN ID interface. The interface maintains the
taggings for all packets that enter with a tag that
matches the value of the native VLAN ID and drops all
untagged traffic. The control traffic is still carried on
the native VLAN. The default is disabled.
Step 3
exit
Example:
switch(config)# exit
switch#
Exits the configuration mode.
Step 4
show vlan
Example:
switch# show vlan
(Optional) Displays the status and information for
VLANs.
Step 5
copy running-config startup-config
Example:
switch# copy running-config
startup-config
(Optional) Copies the running configuration to the
startup configuration.