14-10
Cisco 7600 Series Router Cisco IOS Software Configuration Guide, Release 12.2SX
OL-4266-08
Chapter 14 Configuring VLANs
Configuring VLANs
VLAN Configuration in VLAN Database Mode
Note
•
VLAN database mode is supported in releases earlier than Release 12.2(18)SXD.
•
You cannot configure extended-range VLANs in VLAN database mode. You can configure
extended-range VLANs only in global configuration mode. RPR+ redundancy does not support
configuration entered in VLAN database mode. Use global configuration mode with RPR+
redundancy.
If the router 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 files. To display the VLAN configuration, enter the
show vlan
command.
You use the interface configuration command mode to define the port membership mode and add and
remove ports from a VLAN. The results of these commands are written to the running-config file, and
you can display the file by entering the
show running-config
command.
Creating or Modifying an Ethernet VLAN
User-configured VLANs have unique IDs from 1 to 4094, except for reserved VLANs (see
Table 14-1
on page 14-2
). Enter the
vlan
command with an unused ID to create a VLAN. Enter the
vlan
command
for an existing VLAN to modify the VLAN (you cannot modify an existing VLAN that is being used by
a Layer 3 port or a software feature).
See the
“VLAN Default Configuration” section on page 14-6
for the list of default parameters that are
assigned when you create a VLAN. If you do not specify the VLAN type with the
media
keyword, the
VLAN is an Ethernet VLAN.
To create or modify a VLAN, perform this task:
Command
Purpose
Step 1
Router#
configure terminal
or
Router#
vlan database
Enters VLAN configuration mode.
Step 2
Router(config)#
vlan
vlan_ID
{[-
vlan_ID
]|[,
vlan_ID
])
Router(config-vlan)#
or
Router(vlan)#
vlan
vlan_ID
Creates or modifies an Ethernet VLAN, a range of
Ethernet VLANs, or several Ethernet VLANs specified in
a comma-separated list (do not enter space characters).
Router(config)#
no vlan
vlan_ID
Router(config-vlan)#
or
Router(vlan)#
no vlan
vlan_ID
Deletes a VLAN.
Step 3
Router(config-vlan)#
end
or
Router(vlan)#
exit
Updates the VLAN database and returns to privileged
EXEC mode.
Step 4
Router#
show vlan
[
id
|
name
]
vlan
Verifies the VLAN configuration.