hit counter script

Adding Ports To A Vlan; Verifying Vlan Configuration - Cisco AJ732A - MDS 9134 Fabric Switch Configuration Manual

Cisco nexus 5000 series switch cli software configuration guide, nx-os 4.0(1a)n1 (ol-16597-01, january 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Verifying VLAN Configuration

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

Adding Ports to a VLAN

After you have completed the configuration of a VLAN, assign ports to it. To add ports, perform this
task:
Command
Step 1
switch# configure terminal
Step 2
switch(config)# interface {type
slot/port | port-channel number}
Step 3
switch(config-if)# switchport access
vlan vlan-id
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:
Command
switch# show running-config vlan
[vlan_id | vlan_range]
switch# show vlan [brief | id [vlan_id |
vlan_range] | name name | summary]
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
---- -------------------------------- --------- -------------------------------
1
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
6-6
default
Purpose
Enters configuration mode.
Specifies the interface to configure, and enters the
interface configuration mode. The interface can be a
physical Ethernet port or a port channel.
Sets the access mode of the interface to the specified
VLAN.
Purpose
Displays VLAN information.
Displays selected configuration information for the
defined VLAN(s).
Status
Ports
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
Chapter 6
Configuring VLANs
OL-16597-01

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents