Configuring The Allowed Vlans For Trunking Ports - Cisco Nexus 3000 series Configuration Manual

Nx-os layer 2
Hide thumbs Also See for Nexus 3000 series:
Table of Contents

Advertisement

Configuring Access and Trunk Interfaces
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# interface {type slot/port | port-channel number}
3. switch(config-if)# switchport trunk native vlan vlan-id
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# interface {type slot/port |
port-channel number}
Step 3
switch(config-if)# switchport trunk native vlan
vlan-id
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.
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# interface {type slot/port | port-channel number}
3. switch(config-if)# switchport trunk allowed vlan {vlan-list all | none [add |except | none | remove
{vlan-list}]}
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Purpose
Enters 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.
Purpose
Enters configuration mode.
Cisco Nexus 3000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U1(1)
Configuring the Allowed VLANs for Trunking Ports
51

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents