S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
12-6
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 12 Configuring Access and Trunk Interfaces
Configuring Access and Trunk Interfaces
This example shows how to set Ethernet 1/10 as an Ethernet access port with
PortFast enabled
and port
channel 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. (See
“Understanding IEEE 802.1Q
Encapsulation” section on page 12-2
for information about encapsulation.)
Note
Cisco NX-OS supports only 802.1Q encapsulation.
To configure a trunk port, perform this task:
This example shows how to set Ethernet 3/1 as an Ethernet trunk port:
switch#
configure terminal
switch(config)#
interface ethernet 3/1
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.
To configure native VLAN for a 802.1Q trunk port, perform this task:
Command
Purpose
Step 1
switch#
configure terminal
Enters configuration mode.
Step 2
switch(config)#
interface
{
type
slot
/
port
|
port-channel
number
}
Specifies an interface to configure, and enters interface
configuration mode.
Step 3
switch(config-if)#
switchport mode
{
access
|
trunk
}
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.
Command
Purpose
Step 1
switch#
configure terminal
Enters configuration mode.
Summary of Contents for N5010P-N2K-BE
Page 50: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 102: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 240: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 312: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 400: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 418: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 436: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 658: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...