Cisco Systems N3KC3064TFAL3 Configuring the Native VLAN for 802.1Q Trunking Ports, Procedure

Models: N3KC3064TFAL3 N3KC3048TP1GE

1 164
Download 164 pages 5.98 Kb
Page 69
Image 69
specified trunk, use the switchport trunk allowed vlan

Configuring Access and Trunk Interfaces

Configuring the Native VLAN for 802.1Q Trunking Ports

 

Command or Action

Purpose

Step 3

switch(config-if)# switchport

Sets the interface as an Ethernet trunk port. A trunk port can

 

mode {access trunk}

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.

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

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface {type slot/port

Specifies an interface to configure, and enters

 

port-channel number}

interface configuration mode.

Step 3

switch(config-if)# switchport trunk

Sets the native VLAN for the 802.1Q trunk. Valid

 

native vlan vlan-id

values are from 1 to 4094, except those VLANs

 

 

reserved for internal use. The default value is

 

 

VLAN1.

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.

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

OL-26590-01

55

Page 69
Image 69
Cisco Systems N3KC3064TFAL3 Configuring the Native VLAN for 802.1Q Trunking Ports, port-channel number, Procedure, Purpose