Specifications
interface vlan
124
interface vlan
Configures a VLAN interface. Setting the VLAN interface allows you to set IP addresses for
VLANs.
Syntax
To set or change information:
interface vlan <VLAN ID>
To delete information:
no interface vlan <VLAN ID>
Input mode
(config)
Parameters
<VLAN ID>
Sets the VLAN ID.
1. Default value when this parameter is omitted:
This parameter cannot be omitted.
2. Range of values:
See Specifiable values for parameters. Note that the default VLAN (VLAN ID
= 1) cannot be set when information is deleted.
Default behavior
None
Impact on communication
None
When the change is applied
The change is applied immediately after setting values are changed.
Notes
1. If a VLAN ID which has not yet been set is set for <VLAN ID>, a VLAN is created.
Created VLANs are port-based VLANs. For a protocol-based VLAN or MAC VLAN,
the VLAN must be created beforehand by using the
vlan command.
2. If you set information for multiple VLAN interfaces, use the
interface range
command to set <VLAN ID list>.
3. Setting
no vlan for a VLAN generated by the interface vlan command deletes the
VLAN. Also, setting the
no interface vlan command for a VLAN generated by the
vlan command deletes the VLAN.
Related commands
vlan