Configuring Access Host Ports - Cisco 7604-RSP720C-R Configuration Manual

Nx-os interfaces
Table of Contents

Advertisement

Chapter 3
Configuring Layer 2 Interfaces
S e n d d o c u m e n t c o m m e n t s t o n e x u s 7 k - d o c f e e d b a c k @ c i s c o . c o m
DETAILED STEPS
Command
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Step 2
interface {{type slot/port} |
{port-channel number}}
Example:
switch(config)# interface ethernet 3/1
switch(config-if)#
Step 3
switchport mode {access | trunk}
Example:
switch(config-if)# switchport mode
access
Step 4
switchport access vlan vlan-id
Example:
switch(config-if)# switchport access
vlan 5
Step 5
exit
Example:
switch(config-if)# exit
switch(config)#
Step 6
show interface
Example:
switch# show interface
Step 7
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
This example shows how to set Ethernet 3/1 as a Layer 2 access port that carries traffic for VLAN 5 only:
switch# configure terminal
switch(config)# interface ethernet 3/1
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan 5
switch(config-if)#

Configuring Access Host Ports

Note
You should apply the switchport host command only to interfaces connected to an end station.
OL-23435-03
Purpose
Enters configuration mode.
Specifies an interface to configure, and enters interface
configuration mode.
Sets the interface as a nontrunking nontagged,
single-VLAN Layer 2 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.
Exits the configuration mode.
(Optional) Displays the interface status and
information.
(Optional) Copies the running configuration to the
startup configuration.
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
Configuring Access and Trunk Interfaces
3-11

Advertisement

Table of Contents
loading

Table of Contents