Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
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
Related Topics
• Understanding IEEE 802.1Q Encapsulation, page 102
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
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Specifies an interface to configure, and enters
interface configuration mode.
switch(config)# interface {type slot/port
| port-channel number}
Step 2
Sets the native VLAN for the 802.1Q trunk. Valid
values are from 1 to 4094, except those VLANs
switch(config-if)# switchport trunk
native vlan vlan-id
Step 3
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.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Specifies an interface to configure, and enters interface
configuration mode.
switch(config)# interface {type
slot/port | port-channel number}
Step 2
Sets allowed VLANs for the trunk interface. The default is
to allow all VLANs on the trunk interface: 1 to 3967 and
switch(config-if)# switchport trunk
allowed vlan {vlan-list all | none
Step 3
4048 to 4094. VLANs 3968 to 4047 are the default VLANs
[add |except | none | remove
{vlan-list}]}
reserved for internal use by default; this group of VLANs is
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 107
Configuring Access and Trunk Interfaces
Configuring the Native VLAN for 802.1Q Trunking Ports