Cisco Systems N3KC3048TP1GE Adding Ports to a VLAN, active suspend, Procedure, Command or Action

Models: N3KC3064TFAL3 N3KC3048TP1GE

1 164
Download 164 pages 5.98 Kb
Page 46
Image 46
{active suspend}

Configuring VLANs

Adding Ports to a VLAN

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# vlan {vlan-id

Enters VLAN configuration submode. If the VLAN does not

 

vlan-range}

exist, the system first creates the specified VLAN.

Step 3

switch(config-vlan)# name

Names the VLAN. You can enter up to 32 alphanumeric

 

vlan-name

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.

Step 4

switch(config-vlan)# state

Sets the state of the VLAN to active or suspend. While the VLAN

 

{active suspend}

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.

Step 5

switch(config-vlan)# no

(Optional)

 

shutdown

Enables the VLAN. The default value is no shutdown (or

 

 

enabled). You cannot shut down the default VLAN, VLAN1, or

 

 

VLANs 1006 to 4094.

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

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# interface {ethernet

Specifies the interface to configure, and enters the

 

slot/port port-channelnumber}

interface configuration mode. The interface can be

 

 

a physical Ethernet port or an EtherChannel.

 

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

32

OL-26590-01

Page 46
Image 46
Cisco Systems N3KC3048TP1GE Adding Ports to a VLAN, active suspend, switchconfig# interface ethernet, Procedure, Purpose