done on the transmit side. You should take this merging on VLANs into consideration before
designing the spanning tree topology. With VLAN translation in conjunction with MST, VLAN
translation must ensure that the original and translated VLANs are within the same MST instance.
You should also ensure that the original VLAN (101) is not present in the trunk allowed VLAN
list of local switch (SW2) on its trunk port (P), and that the translated VLAN (202) is not present
in the trunk allowed VLAN list of the neighboring switch (SW1), on SW1
’
s trunk port.
Configuring a VLAN
Creating and Deleting a VLAN
You can create or delete all VLANs except the default VLAN and those VLANs that are internally allocated
for use by the switch. Once a VLAN is created, it is automatically in the active state.
When you delete a VLAN, ports associated to that VLAN shut down. The traffic does not flow and the
packets are dropped.
Note
Procedure
Purpose
Command or Action
Enters global configuration mode.
switch#
configure terminal
Step 1
Creates a VLAN or a range of VLANs.
switch(config)#
vlan
{
vlan-id
|
vlan-range
}
Step 2
If you enter a number that is already assigned to a VLAN, the switch
moves 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.
Deletes the specified VLAN or range of VLANs and removes you
from the VLAN configuration submode. You cannot delete VLAN1
or the internally allocated VLANs.
switch(config-vlan)#
no
vlan
{
vlan-id
|
vlan-range
}
Step 3
This example shows how to create a range of VLANs from 15 to 20:
switch#
configure terminal
switch(config)#
vlan 15-20
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
15
Configuring VLANs
Configuring a VLAN