hit counter script

Verifying Vlan Configuration - Cisco Nexus 3000 series Configuration Manual

Nx-os layer 2
Hide thumbs Also See for Nexus 3000 series:
Table of Contents

Advertisement

Configuring VLANs
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# interface {ethernet slot/port | port-channel number}
3. switch(config-if)# switchport access vlan vlan-id
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# interface {ethernet 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 5.0(3)U1(1)
vlan 1
vlan 5
The following example shows the VLANs created on the switch and their status:
switch# show vlan
VLAN Name
---- -------------------------------- --------- -------------------------------
1
default
Cisco Nexus 3000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U1(1)
Purpose
Enters configuration mode.
Specifies the interface to configure, and enters the interface
configuration mode. The interface can be a physical Ethernet
port or an EtherChannel.
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
Verifying VLAN Configuration
31

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents