Configuring The Native Vlan For 802.1Q Trunking Ports - Cisco 7604-RSP720C-R Configuration Manual

Nx-os interfaces
Table of Contents

Advertisement

Configuring Access and Trunk Interfaces
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
DETAILED STEPS
Command
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
interface {type slot/port | port-channel
number}
Example:
switch(config)# interface ethernet 3/1
switch(config-if)#
Step 3
switchport mode {access | trunk}
Example:
switch(config-if)# switchport mode trunk
Step 4
exit
Example:
switch(config-if)# exit
switch(config)#
Step 5
show interface
Example:
switch# show interface
Step 6
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
This example shows how to set Ethernet 3/1 as a Layer 2 trunk port:
switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# switchport mode trunk
switch(config-if)#

Configuring the Native VLAN for 802.1Q Trunking Ports

You can configure the native VLAN for 802.1Q trunk ports. If you do not configure this parameter, the
trunk port uses the default VLAN as the native VLAN ID.
You cannot configure an FCoE VLAN as a native VLAN for an Ethernet interface.
Note
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
3-14
Chapter 3
Purpose
Enters configuration mode.
Specifies an interface to configure, and enters interface
configuration mode.
Sets the interface as a Layer 2 trunk port. A trunk port
can carry traffic in one or more VLANs on the same
physical link (VLANs are based on the trunk-allowed
VLANs list). By default, a trunk interface can carry
traffic for all VLANs. To specify that only certain
VLANs are allowed on the specified trunk, use the
switchport trunk allowed vlan command.
Exits the interface mode.
(Optional) Displays the interface status and
information.
(Optional Copies the running configuration to the
startup configuration.
Configuring Layer 2 Interfaces
OL-23435-03

Advertisement

Table of Contents
loading

Table of Contents