Cisco Systems WSC4500X24XIPB Switch User Manual


 
10-7
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter 10 Understanding and Configuring VLANs, VTP, and VMPS
VLANs
Configuring VLANs in VLAN Database Mode
When the switch is in VTP server or transparent mode, you can configure VLANs in the VLAN database
mode. When you configure VLANs in VLAN database mode, the VLAN configuration is saved in the
vlan.dat file, not the running-config or startup-config files. To display the VLAN configuration, enter
the show running-config vlan command.
User-configurable VLANs have unique IDs from 1 to 4094. Database mode supports configuration of
IDs from 1 to 1001, but not the extended addresses from 1006 to 4094. To create a VLAN, enter the vlan
command with an unused ID. To verify whether a particular ID is in use, enter the show vlan id ID
command. To modify a VLAN, enter the vlan command for an existing VLAN.
See the “VLAN Default Configuration” section on page 10-4 for a listing of the default parameters that
are assigned when you create a VLAN. If you do not use the media keyword when specifying the VLAN
type, the VLAN is an Ethernet VLAN.
To create a VLAN, perform this task:
This example shows how to create an Ethernet VLAN in VLAN database mode and verify the
configuration:
Switch# vlan database
Switch(vlan)# vlan 3
VLAN 3 added:
Name: VLAN0003
Switch(vlan)# exit
APPLY completed.
Exiting....
Switch# show vlan name VLAN0003
VLAN Name Status Ports
---- -------------------------------- --------- ---------------------
3 VLAN0003 active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- ------ ------
3 enet 100003 1500 - - - - 0 0
Switch#
Command Purpose
Step 1
Switch# vlan database
Enters VLAN database mode.
Step 2
Switch(vlan)# vlan
vlan_ID
Adds an Ethernet VLAN.
Note You cannot delete the default VLANs for these media
types: Ethernet VLAN 1 and FDDI or Token Ring
VLANs 1002 to 1005.
When you delete a VLAN, any LAN interfaces
configured as access ports assigned to that VLAN become
inactive. They remain associated with the VLAN (and
thus inactive) until you assign them to a new VLAN.
You can use the no keyword to delete a VLAN.
Step 3
Switch(vlan)# exit
Returns to enable mode.
Step 4
Switch# show vlan [id | name]
vlan_name
Verifies the VLAN configuration.