hit counter script

Adding Ports To A Vlan; Verifying Vlan Configuration - Cisco AP775A - Nexus Converged Network Switch 5010 Configuration Manual

Cli software configuration guide
Hide thumbs Also See for AP775A - Nexus Converged Network Switch 5010:
Table of Contents

Advertisement

Adding Ports to a VLAN

Adding Ports to a VLAN
After you have completed the configuration of a VLAN, assign ports to it. To add ports, perform this task:
Procedure
Step 1
Step 2
Step 3
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
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
84
Command or Action
switch# configure terminal
switch(config)# interface {ethernet
slot/port | port-channel number}
switch(config-if)# switchport access vlan
vlan-id
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).
Configuring VLANs
OL-16597-01

Advertisement

Table of Contents
loading

Table of Contents