Chapter 11
Configuring VLANs
Creating or Modifying an Ethernet VLAN
To access VLAN configuration mode, enter the vlan global configuration command with a VLAN ID.
Enter a new VLAN ID to create a VLAN, or enter an existing VLAN ID to modify that VLAN. You can
use the default VLAN configuration
Note
Extended-range VLANs use the default Ethernet VLAN characteristics and the MTU, the private VLAN,
the RSPAN, and the UNI-VLAN configurations are the only parameters you can change.
For more information about commands available in this mode, see the vlan command description in the
command reference for this release. When you have finished the configuration, you must exit VLAN
configuration mode for the configuration to take effect. To display the VLAN configuration, enter the
show vlan privileged EXEC command.
The configurations of VLAN IDs 1 to 1005 are always saved in the VLAN database (vlan.dat file) with
a VLAN number and name and in the switch running configuration file. Extended-range VLANs are not
saved in the VLAN database; they are saved in the switch running configuration file. You can save the
VLAN configuration in the switch startup configuration file by using the copy running-config
startup-config privileged EXEC command.
Note
Before you create an extended-range VLAN, you can verify that the VLAN ID is not used internally by
entering the show vlan internal usage privileged EXEC command. If the VLAN ID is used internally
and you want to release it, go to the
section on page 11-11
Beginning in privileged EXEC mode, follow these steps to create or modify an Ethernet VLAN:
Command
Step 1
configure terminal
Step 2
vlan vlan-id
Step 3
name vlan-name
Step 4
mtu mtu-size
Step 5
end
Step 6
show vlan {name vlan-name | id vlan-id} Verify your entries. The name option is only valid for VLAN IDs 1 to
Step 7
copy running-config startup config
78-17058-01
(Table
11-2) or enter commands to configure the VLAN.
"Creating an Extended-Range VLAN with an Internal VLAN ID"
before creating the extended-range VLAN.
Purpose
Enter global configuration mode.
Enter a VLAN ID, and enter VLAN configuration mode. Enter a new
VLAN ID to create a VLAN, or enter an existing VLAN ID to modify
that VLAN. The available VLAN ID range for this command is 1 to
4094.
When you create a new VLAN, by default the VLAN is a UNI
Note
isolated VLAN.
(Optional and supported on normal-range VLANs only) Enter a name
for the VLAN. If no name is entered for the VLAN, the default in the
VLAN database is to append the vlan-id with leading zeros to the word
VLAN. For example, VLAN0004 is a default VLAN name for VLAN 4.
(Optional) Change the MTU size.
Return to privileged EXEC mode.
1005.
(Optional) Save the configuration in the switch startup configuration
file.
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
Creating and Modifying VLANs
11-9