Cisco Systems N3KC3064TFAL3 manual Configuring a VLAN, Procedure, Command or Action, Purpose, Step

Models: N3KC3064TFAL3 N3KC3048TP1GE

1 164
Download 164 pages 5.98 Kb
Page 45
Image 45
Configuring a VLAN

Configuring VLANs

Configuring a VLAN

Note When you delete a VLAN, ports associated to that VLAN shut down. The traffic does not flow and the packets are dropped.

Procedure

 

Command or Action

Purpose

Step 1

switch# configure terminal

Enters configuration mode.

Step 2

switch(config)# vlan

Creates a VLAN or a range of VLANs.

 

{vlan-id vlan-range}

If you enter a number that is already assigned to a VLAN, the switch

 

 

 

 

puts you into the VLAN configuration submode for that VLAN. If

 

 

you enter a number that is assigned to an internally allocated VLAN,

 

 

the system returns an error message. However, if you enter a range

 

 

of VLANs and one or more of the specified VLANs is outside the

 

 

range of internally allocated VLANs, the command takes effect on

 

 

only those VLANs outside the range. The range is from 2 to 4094;

 

 

VLAN1 is the default VLAN and cannot be created or deleted. You

 

 

cannot create or delete those VLANs that are reserved for internal

 

 

use.

Step 3

switch(config-vlan)# no

Deletes the specified VLAN or range of VLANs and removes you

 

vlan {vlan-id vlan-range}

from the VLAN configuration submode. You cannot delete VLAN1

 

 

or the internally allocated VLANs.

This example shows how to create a range of VLANs from 15 to 20:

switch# configure terminal switch(config)# vlan 15-20

Note You can also create and delete VLANs in the VLAN configuration submode.

Configuring a VLAN

To configure or modify the VLAN for the following parameters, you must be in the VLAN configuration submode:

Name

Shut down

Note You cannot create, delete, or modify the default VLAN or the internally allocated VLANs. Additionally, some of these parameters cannot be modified on some VLANs.

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

OL-26590-01

31

Page 45
Image 45
Cisco Systems N3KC3064TFAL3 Configuring a VLAN, Procedure, Command or Action, Purpose, Step, switch# configure terminal