8-18
Catalyst 2950 Desktop Switch Software Configuration Guide
78-11380-03
Chapter8 Configuring VLANs
VLANs in the VTP Database
Adding a VLAN
Each VLAN has a unique, 4-digit ID that can be a number from 1 to 1001. To add a VLAN to the VLAN
database, assign a number and name to the VLAN. For the list of default parameters that are assigned
when you add a VLAN, see the “Default VLAN Configuration” section on page 8-16.
If you do not specify the VLAN media type, the VLAN is an Ethernet VLAN.
Beginning in privileged EXEC mode, follow these steps to add an Ethernet VLAN:
Modifying a VLAN
Beginning in privileged EXEC mode, follow these steps to modify an Ethernet VLAN:
Deleting a VLAN from the Database
When you delete a VLAN from a switch that is in VTP server mode, the VLAN is removed from all
switches in the VTP domain. When you delete a VLAN from a switch that is in VTP transparent mode,
the VLAN is deleted only on that specific switch.
You cannot delete the default VLANs for the different media types: Ethernet VLAN 1 and FDDI or
TokenRingVLANs1002to1005.
Caution When you delete a VLAN, any ports assigned to that VLAN become inactive. They remain associated
with the VLAN (and thus inactive) until you assign them to a new VLAN.
Command Purpose
Step 1
vlan database Enter VLAN database mode.
Step 2
vlan vlan-id name vlan-name AddanEthernetVLANbyassigninganumbertoit.Ifnonameisenteredforthe
VLAN, the default is to append the vlan-id to the word VLAN. For example,
VLAN0004 could be a default VLAN name.
If you do not specify the VLAN media type, the VLAN is an Ethernet VLAN.
Step 3
exit Update the VLAN database, propagate it throughout the administrative domain,
andreturntoprivilegedEXECmode.
Step 4
show vlan name vlan-name Verify the VLAN configuration.
Command Purpose
Step 1
vlan database Enter VLAN configuration mode.
Step 2
vlan vlan-id mtu mtu-size Identify the VLAN, and change the MTU size.
Step 3
exit Update the VLAN database, propagate it throughout the administrative domain,
andreturntoprivilegedEXECmode.
Step 4
show vlan vlan-id Verify the VLAN configuration.