Cisco Systems N3KC3064TFAL3 Manual De Usuario
Configuring Access Host Ports
By using switchport host, you can make an access port a spanning-tree edge port, and enable bpdu filtering
and bpdu guard at the same time.
and bpdu guard at the same time.
Before You Begin
Ensure that you are configuring the correct interface; it must be an interface that is connnected to an end
station.
station.
Procedure
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Specifies an interface to configure, and enters interface
configuration mode.
configuration mode.
switch(config)# interface type
slot/port
slot/port
Step 2
Sets the interface to spanning-tree port type edge, turns
on bpdu filtering and bpdu guard.
on bpdu filtering and bpdu guard.
switch(config-if)# switchport host
Step 3
Apply this command only to switchports which
connect to hosts.
connect to hosts.
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.
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
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Specifies an interface to configure, and enters interface
configuration mode.
configuration mode.
switch(config)# interface {type
slot/port | port-channel number}
slot/port | port-channel number}
Step 2
Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)
54
OL-26590-01
Configuring Access and Trunk Interfaces
Configuring Access Host Ports