Administrator Guide

Layer 2 Switching Commands 808
User Guidelines
Assigning an IP address to a VLAN interface enables Layer 3 on the VLAN
interface. If IP routing is globally enabled and an IP address is assigned, the
router will route packets to and from the VLAN.
Use the no form of the command to remove empty interface vlan entries from
the running config.
Examples
console(config-vlan10)# interface vlan 10
console(config-if-vlan10)#
interface range vlan
Use the interface range vlan command in Global Configuration mode to
enable routing on a range of VLANs and to execute a command on multiple
VLANs at the same time.
Syntax
interface range vlan {
vlan-id
|
all
}
vlan-id
— A list of valid VLAN IDs to add. Separate nonconsecutive VLAN
IDs with a comma and no spaces; use a hyphen to designate a range of IDs.
(Range: 1–4093)
all
All existing static VLANs.
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode
User Guidelines
The VLANs in the interface range must by configured and enabled for
routing prior to use in the vlan range command. Commands used in 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.
2CSNXXX_SWUM204.book Page 808 Monday, January 25, 2016 1:25 PM