Cisco Systems N3KC3064TFAL3 Manual De Usuario
Procedure
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Enters VLAN configuration submode. If the VLAN does not
exist, the system first creates the specified VLAN.
exist, the system first creates the specified VLAN.
switch(config)# vlan {vlan-id
| vlan-range}
| vlan-range}
Step 2
Names the VLAN. You can enter up to 32 alphanumeric
characters to name the VLAN. You cannot change the name of
characters to name the VLAN. You cannot change the name of
switch(config-vlan)# name
vlan-name
vlan-name
Step 3
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.
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
state is suspended, the ports associated with this VLAN are shut
switch(config-vlan)# state
{active | suspend}
{active | suspend}
Step 4
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.
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.
Enables the VLAN. The default value is no shutdown (or
enabled). You cannot shut down the default VLAN, VLAN1, or
VLANs 1006 to 4094.
switch(config-vlan)# no
shutdown
shutdown
Step 5
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:
Procedure
Purpose
Command or Action
Enters configuration mode.
switch# configure terminal
Step 1
Specifies the interface to configure, and enters the
interface configuration mode. The interface can be
a physical Ethernet port or an EtherChannel.
interface configuration mode. The interface can be
a physical Ethernet port or an EtherChannel.
switch(config)# interface {ethernet
slot/port | port-channel number}
slot/port | port-channel number}
Step 2
Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)
32
OL-26590-01
Configuring VLANs
Adding Ports to a VLAN