Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Before You Begin
Ensure that you are configuring the correct interface; it must be an interface that is connnected to an end
station.
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
Step 2
Sets the interface to be an access host port, which
immediately moves to the spanning tree forwarding state
and disables port channeling on this interface.
switch(config-if)# switchport host
Step 3
Apply this command only to end
stations.
Note
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.
Cisco NX-OS supports only 802.1Q encapsulation.Note
To configure a trunk port, perform this task:
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 interface as an Ethernet trunk port. A trunk port can
carry traffic in one or more VLANs on the same physical
switch(config-if)# switchport
mode {access | trunk}
Step 3
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 Switch CLI Software Configuration Guide
106 OL-16597-01
Configuring Access and Trunk Interfaces
Configuring Trunk Ports