EasyManua.ls Logo

Cisco 7206 - VXR Router

Cisco 7206 - VXR Router
308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Send document comments to nexus7k-docfeedback@cisco.com
3-11
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 3 Configuring Layer 2 Interfaces
Configuring Access and Trunk Interfaces
DETAILED STEPS
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.
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters configuration mode.
Step 2
interface {{type slot/port} |
{port-channel number}}
Example:
switch(config)# interface ethernet 3/1
switch(config-if)#
Specifies an interface to configure, and enters interface
configuration mode.
Step 3
switchport mode {access | trunk}
Example:
switch(config-if)# switchport mode
access
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.
Step 4
switchport access vlan vlan-id
Example:
switch(config-if)# switchport access
vlan 5
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.
Step 5
exit
Example:
switch(config-if)# exit
switch(config)#
Exits the configuration mode.
Step 6
show interface
Example:
switch# show interface
(Optional) Displays the interface status and
information.
Step 7
copy running-config startup-config
Example:
switch(config)# copy running-config
startup-config
(Optional) Copies the running configuration to the
startup configuration.

Table of Contents

Other manuals for Cisco 7206 - VXR Router

Related product manuals