Configuring The Native Vlan For 802.1Q Trunking Ports - Cisco Nexus 1000V Configuration Manual

For vmware vsphere
Hide thumbs Also See for Nexus 1000V:
Table of Contents

Advertisement

Configuring the Native VLAN for 802.1Q Trunking Ports

• Know that a trunk port transmits untagged packets for one VLAN plus encapsulated, tagged, packets
• The device supports 802.1Q encapsulation only.
• Know that the Cisco Nexus 1000V commands may differ from the Cisco IOS commands.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
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.
Cisco Nexus 1000V for VMware vSphere Interface Configuration Guide, Release 5.x
28
for multiple VLANs. See
IEEE 802.1Q Encapsulation, on page 24
Command or Action
switch# configure terminal
switch(config)# interface
interface
switch(config-if)# switchport
mode trunk
switch(config-if)# show
interface interface
switch(config-if)# copy
running-config
startup-config
Purpose
Enters global configuration mode.
Specifies the interface that you are configuring and places you in
interface configuration mode. The interface argument is defined
as follows:
• For an Ethernet port, use the ethernet slot/port command,
where slot is the module slot number and port is the port
number.
• For a vEthernet port, use the vethernet interface-number
command, where interface-number is a number from 1 to
1048575.
Sets the interface as a Layer 2 trunk port in the running
configuration. 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.
(Optional)
Displays the interface status and information.
(Optional)
Saves the change persistently through reboots and restarts by
copying the running configuration to the startup configuration.
Configuring Layer 2 Interfaces
for more information.

Advertisement

Table of Contents
loading

Table of Contents