VLAN Commands 453
interface range vlan
The interface range vlan Global Configuration mode command enters the Interface Configuration
mode to configure multiple VLANs.
Syntax
•
interface range vlan
{
vlan-range |
all
}
•
vlan-range
— A list of valid VLAN IDs to add. Separate non consecutive VLAN IDs with a comma
and no spaces; a hyphen designates a range of IDs.
•
all
— All existing static VLANs.
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode.
User Guidelines
• Commands under the interface range context are executed independently on each interface in the
range. If the command returns an error on one of the interfaces, an error message is displayed and
execution continues on other interfaces.
Example
The following example groups VLAN 221 until 228 and VLAN 889 to receive the same command.
name
The name Interface Configuration mode command adds a name to a VLAN. Use the no form of this
command to remove the VLAN name.
Syntax
•
name
string
• no name
•
string
— Unique name, up to 32 characters in length, to be associated with this VLAN.
Default Configuration
No name is defined.
Console (config)# interface range vlan 221-228,889
Console (config-if)#
5400_CLI.book Page 453 Wednesday, December 17, 2008 4:33 PM