vlan (VLAN configuration)
•
•
•
•
Examples
This example shows how to add an Ethernet VLAN with default media characteristics. The default
includes a vlan-name of VLANxxx, where xxxx represents four numeric digits (including leading zeros)
equal to the VLAN ID number. The default media option is ethernet; the state option is active. The
default said-value variable is 100000 plus the VLAN ID; the mtu-size variable is 1500; the stp-type
option is ieee. When you enter the exit or apply vlan configuration command, the VLAN is added if it
did not already exist; otherwise, this command does nothing.
Switch(vlan)# vlan 2
VLAN 2 added:
Switch(vlan)# exit
APPLY completed.
Exiting....
This example shows how to modify an existing VLAN by changing its name and MTU size:
Switch(vlan)# no vlan name engineering mtu 1200
You can verify your settings by entering the show vlan privileged EXEC command.
Related Commands
Command
show vlan
vlan (global
configuration)
Catalyst 3750 Switch Command Reference
2-526
When the no vlan vlan-id said form is used, the VLAN SAID returns to the default (100,000 plus
the VLAN ID).
When the no vlan vlan-id state form is used, the VLAN state returns to the default (active).
When the no vlan vlan-id stp type form is used, the VLAN spanning-tree type returns to the default
(ieee).
When the no vlan vlan-id tb-vlan1 or no vlan vlan-id tb-vlan2 form is used, the VLAN
translational bridge VLAN (or VLANs, if applicable) returns to the default (0). Translational bridge
VLANs must be a different VLAN type than the affected VLAN, and if two are specified, the two
must be different VLAN types from each other. A translational bridge VLAN resets to the default if
the translational bridge VLAN is deleted, if the media keyword changes the VLAN type, or if the
media keyword changes the VLAN type of the corresponding translation bridge VLAN.
Name: VLAN0002
Description
Displays the parameters for all configured VLANs or one VLAN (if the VLAN
ID or name is specified) in the administrative domain.
Enters config-vlan mode for configuring normal-range and extended-range
VLANs.
Chapter 2 Catalyst 3750 Switch Cisco IOS Commands
78-16181-01