interface vlan
Use the interface vlan command in Global Configuration mode to configure a VLAN type and
to enter Interface Configuration mode.
Syntax
vlan-id
interface vlan
vlan-id — The ID of a valid VLAN (Range: 1–4093).
•
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode
User Guidelines
This command has no user guidelines.
Example
The following example configures the VLAN 1 IP address of 131.108.1.27 and subnet mask
255.255.255.0.
console(config)#interface vlan 1
console(config-vlan)#ip address 131.108.1.27 255.255.255.0
interface range vlan
Use the interface range vlan command in Global Configuration mode to execute a command
on multiple VLANs at the same time.
Syntax
vlan-range
interface range vlan {
vlan-range — 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: 2–4093)
all — All existing static VLANs.
•
Default Configuration
This command has no default configuration.
|all}
493
VLAN Commands