interface vlan

Last Updated : Nov 06, 2012 |
Enters VLAN interface configuration mode. Use no interface vlan to delete the interface.
Prolog information
If the specified interface does not exist, the system creates it and enters its configuration mode.

Syntax

[no] interface vlan vlan_id[.ip_interface]

Parameters

Parameter
Description
Possible Values
Default Value
vlan_id
The VLAN ID number of this interface
1-4,090
ip_interface
The IP sub-interface number within this interface. A number of IP interfaces may be bound to a Layer 3 interface.
0-1,024

User level

read-write

Context

general

Examples

To create VLAN 2 and enter its configuration context:
Gxxx-001(super)# interface vlan 2
To create a sub interface 1 on VLAN 2:
Gxxx-001(if:Vlan 2)# interface vlan 2.1