EasyManua.ls Logo

Cisco Nexus 5000 Series - Adding Ports to a Vlan; Verifying Vlan Configuration

Cisco Nexus 5000 Series
660 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 feedback to nx5000-docfeedback@cisco.com
1-6
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring VLANs
Verifying VLAN Configuration
switch(config-vlan)# no shutdown
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-21.
switch# show running-config vlan 1-21
version 4.0(0)
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
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).

Table of Contents

Other manuals for Cisco Nexus 5000 Series

Related product manuals