Configuring Trunk Ports - Cisco Nexus 5000 Series Configuration Manual

Nx-os layer 2 switching configuration guide, release 5.0(3)n1(1)
Hide thumbs Also See for Nexus 5000 Series:
Table of Contents

Advertisement

Configuring Access and Trunk Interfaces
This example shows how to set an interface as an Ethernet access host port with EtherChannel disabled:
switch# configure terminal
switch(config)# interface ethernet 1/10
switch(config-if)# switchport host

Configuring Trunk Ports

You can configure an Ethernet port as a trunk port; a trunk port transmits untagged packets for the native
VLAN plus encapsulated, tagged, packets for multiple VLANs.
Note
Cisco NX-OS supports only 802.1Q encapsulation.
To configure a trunk port, perform this task:
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# interface {type slot/port | port-channel number}
3. switch(config-if)# switchport mode {access | trunk}
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 mode
{access | trunk}
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, on page 73
Purpose
Enters configuration mode.
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.
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)N1(1)
Configuring Trunk Ports
77

Advertisement

Table of Contents
loading

Table of Contents