Configuring The Native Vlan For 802.1Q Trunking Ports; Configuring The Allowed Vlans For Trunking Ports - Cisco Nexus 3000 Series Configuration Manual

Nx-os layer 2 switching configuration guide, release 6.x
Hide thumbs Also See for Nexus 3000 Series:
Table of Contents

Advertisement

Configuring Access and Trunk Interfaces
Step 2
Step 3
This example shows how to set an interface as an Ethernet trunk port:
switch# configure terminal
switch(config)# interface ethernet 1/3
switch(config-if)# switchport mode trunk

Configuring the Native VLAN for 802.1Q Trunking Ports

If you do not configure this parameter, the trunk port uses the default VLAN as the native VLAN ID.
Procedure
Step 1
Step 2
Step 3
This example shows how to set the native VLAN for an Ethernet trunk port:
switch# configure terminal
switch(config)# interface ethernet 1/3
switch(config-if)# switchport trunk native vlan 5

Configuring the Allowed VLANs for Trunking Ports

You can specify the IDs for the VLANs that are allowed on the specific trunk port.
Before you configure the allowed VLANs for the specified trunk ports, ensure that you are configuring the
correct interfaces and that the interfaces are trunks.
OL-29545-03
Command or Action
switch(config)# interface {type
slot/port | port-channel number}
switch(config-if)# switchport
mode {access | trunk}
Command or Action
switch# configure terminal
switch(config)# interface {type slot/port
| port-channel number}
switch(config-if)# switchport trunk
native vlan vlan-id
Cisco Nexus 3000 Series NX-OS Layer 2 Switching Configuration Guide, Release 6.x
Configuring the Native VLAN for 802.1Q Trunking Ports
Purpose
Specifies an interface to configure, and enters interface
configuration mode.
Sets the interface as an Ethernet 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.
Purpose
Enters global configuration mode.
Specifies an interface to configure, and enters
interface configuration mode.
Sets the native VLAN for the 802.1Q trunk. Valid
values are from 1 to 4094, except those VLANs
reserved for internal use. The default value is
VLAN1.
45

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents