Configuring Access Host Ports - Cisco nexus 5000 series Cli Configuration Manual

Hide thumbs Also See for nexus 5000 series:
Table of Contents

Advertisement

Chapter 1
Configuring Access and Trunk Interfaces
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
Command
Step 3
switch(config-if)# switchport mode
{access | trunk}
Step 4
switch(config-if)# switchport access
vlan vlan-id
This example shows how to set Ethernet 1/10 as an Ethernet access port that carries traffic for VLAN 5
only:
switch# configure terminal
switch(config)# interface ethernet 1/10
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan 5

Configuring Access Host Ports

You should apply the switchport host command only to interfaces connected to an end station.
Note
You can optimize performance on access ports that are connected to end stations by simultaneously
setting that port as an access port. An access host port handles the Spanning Tree Protocol (STP) like an
edge port and immediately moves to the forwarding state without passing through the blocking and
learning states. Configuring an interface as an access host port also disables port channeling on that
interface.
See
Note
"Configuring Rapid PVST+"
Ensure that you are configuring the correct interface to an interface that is an end station.
To configure an access host port, perform this task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# interface type
slot/port
Step 3
switch(config-if)# switchport host
OL-16597-01
Chapter 1, "Configuring Port Channels"
for complete information on the Spanning Tree Protocol.
Purpose
Sets the interface as a nontrunking nontagged
single-VLAN Ethernet interface. An access port can
carry traffic in one VLAN only. By default, an access
port carries traffic for VLAN1; to set the access port to
carry traffic for a different VLAN, use the switchport
access vlan command.
Specifies the VLAN for which this access port will
carry traffic. If you do not enter this command, the
access port carries traffic on VLAN1 only; use this
command to change the VLAN for which the access
port carries traffic.
for information on port channel interfaces and
Purpose
Enters configuration mode.
Specifies an interface to configure, and enters interface
configuration mode.
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.
Apply this command only to end stations.
Note
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Configuring Access and Trunk Interfaces
Chapter 1,
1-5

Advertisement

Table of Contents
loading

Table of Contents