Adding Ports To A Vlan - Cisco Nexus 5000 Series Configuration Manual

Nx-os layer 2 switching configuration guide, release 5.0(3)n1(1)
Hide thumbs Also See for Nexus 5000 Series:
Table of Contents

Advertisement

Configuring VLANs
Command or Action
Step 2
switch(config)# vlan {vlan-id |
vlan-range}
Step 3
switch(config-vlan)# name vlan-name
Step 4
switch(config-vlan)# state {active |
suspend}
Step 5
switch(config-vlan)# no shutdown
This example shows how to configure optional parameters for VLAN 5:
switch# configure terminal
switch(config)# vlan 5
switch(config-vlan)# name accounting
switch(config-vlan)# state active
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:
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}
Purpose
Enters VLAN configuration submode. If the VLAN does not exist, the system
first creates the specified VLAN.
Names the VLAN. You can enter up to 32 alphanumeric characters to name
the VLAN. You cannot change the name of VLAN1 or the internally allocated
VLANs. The default value is VLANxxxx where xxxx represent four numeric
digits (including leading zeroes) equal to the VLAN ID number.
Sets the state of the VLAN to active or suspend. While the VLAN state is
suspended, the ports associated with this VLAN are shut down, and that VLAN
does not pass any traffic. The default state is active. You cannot suspend the
state for the default VLAN or VLANs 1006 to 4094.
(Optional)
Enables the VLAN. The default value is no shutdown (or enabled). You cannot
shut down the default VLAN, VLAN1, or VLANs 1006 to 4094.
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.
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)N1(1)
Adding Ports to a VLAN
49

Advertisement

Table of Contents
loading

Table of Contents