2-893
Catalyst 3750 Switch Command Reference
OL-8552-07
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
vlan (VLAN configuration)
Command History
Usage Guidelines
You can only use this command mode for configuring normal-range VLANs, that is, VLAN IDs 1
to 1005.
Note
To configure extended-range VLANs (VLAN IDs 1006 to 4094), use the
vlan
global configuration
command.
VLAN configuration is always saved in the VLAN database. If VTP mode is transparent, it is also saved
in the switch running configuration file, along with the VTP mode and domain name. You can then save
it in the switch startup configuration file by using the
copy running-config startup-config
privileged
EXEC command.
When you save VLAN and VTP configuration in the startup configuration file and reboot the switch, the
configuration is selected in these ways:
•
If both the VLAN database and the configuration file show the VTP mode as transparent and the
VTP domain names match, the VLAN database is ignored. The VTP and VLAN configurations in
the startup configuration file are used. The VLAN database revision number remains unchanged in
the VLAN database.
•
If the VTP mode is server, or if the startup VTP mode or domain names do not match the VLAN
database, the VTP mode and the VLAN configuration for the first 1005 VLANs use VLAN database
information.
The following are the results of using the
no vlan
commands:
•
When the
no
vlan
vlan-id
form is used, the VLAN is deleted. Deleting VLANs automatically resets
to zero any other parent VLANs and translational bridging parameters that see the deleted VLAN.
•
When the
no
vlan
vlan-id
bridge
form is used, the VLAN source-routing bridge number returns to
the default (0). The
vlan
vlan-id
bridge
command is used only for FDDI-NET and Token Ring-NET
VLANs and is ignored in other VLAN types.
•
When the
no
vlan
vlan-id
media
form is used, the media type returns to the default (
ethernet
).
Changing the VLAN media type (including the
no
form) resets the VLAN MTU to the default MTU
for the type (unless the
mtu
keyword is also present in the command). It also resets the VLAN parent
and translational bridging VLAN to the default (unless the
parent
,
tb-vlan1
, or
tb-vlan2
are also
present in the command).
•
When the
no vlan
vlan-id
mtu
form is used, the VLAN MTU returns to the default for the applicable
VLAN media type. You can also modify the MTU by using the
media
keyword.
•
When the
no
vlan
vlan-id
name
vlan-name
form is used, the VLAN name returns to the default
name (
VLANxxxx
, where
xxxx
represent four numeric digits [including leading zeros] equal to the
VLAN ID number).
•
When the
no
vlan
vlan-id
parent
form is used, the parent VLAN returns to the default (0). The
parent VLAN resets to the default if the parent VLAN is deleted or if the
media
keyword changes
the VLAN type or the VLAN type of the parent VLAN.
•
When the
no
vlan
vlan-id
ring
form is used, the VLAN logical ring number returns to the
default (0).
•
When the
no
vlan
vlan-id
said
form is used, the VLAN SAID returns to the default (100,000 plus
the VLAN ID).
Release
Modification
12.1(11)AX
This command was introduced.