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
6-6
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 6 Configuring VLANs
Verifying VLAN Configuration
Adding Ports to a VLAN
After you have completed the configuration of a VLAN, assign ports to it. To add ports, perform this
task:
This example shows how to configure an Ethernet interface to join VLAN 5:
switch#
configure terminal
switch(config)#
interface ethernet 1/13
switch(config-if)#
switchport access vlan 5
Verifying VLAN Configuration
To display VLAN configuration information, perform one of these tasks:
The following example shows all VLANs defined in the range of 1 to 21.
switch#
show running-config vlan 1-21
version 4.0(1a)N1(1)
vlan 1
vlan 5
The following example shows the VLANs created on the switch and their status:
switch#
show vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- -------------------------------
1
default
active
Eth1/1, Eth1/2, Eth1/3, Eth1/4
Eth1/5, Eth1/6, Eth1/7, Eth1/8
Eth1/9, Eth1/10, Eth1/11
Eth1/12, Eth1/15, Eth1/16
Eth1/17, Eth1/18, Eth1/19
Eth1/20, Eth1/21, Eth1/22
Eth1/23, Eth1/24, Eth1/25
Eth1/26, Eth1/27, Eth1/28
Eth1/29, Eth1/30, Eth1/31
Command
Purpose
Step 1
switch#
configure terminal
Enters configuration mode.
Step 2
switch(config)#
interface
{
type
slot/port
|
port-channel
number
}
Specifies the interface to configure, and enters the
interface configuration mode. The interface can be a
physical Ethernet port or a port channel.
Step 3
switch(config-if)#
switchport
access
vlan
vlan-id
Sets the access mode of the interface to the specified
VLAN.
Command
Purpose
switch#
show running-config vlan
[
vlan_id
|
vlan_range
]
Displays VLAN information.
switch#
show vlan
[
brief
|
id
[
vlan_id
|
vlan_range
] |
name
name
|
summary
]
Displays selected configuration information for the
defined VLAN(s).
Summary of Contents for N5010P-N2K-BE
Page 50: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 102: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 240: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 312: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 400: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 418: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 436: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...
Page 658: ...Se n d f e e d b a ck t o n x 5 0 0 0 d o c f e e d b a ck c i s c o c o m ...