vlan

Creates VLANs.

Syntax

vlan vlan-id [ to vlan-id | [ vlan-id to vlan-id | vlan-id ] ... ] [ name string ] [ by port ]
no vlan vlan-id [ to vlan-id | [ vlan-id to vlan-id | vlan-id ] ... ] [ name string ] [ by port ]

Command Default

The default VLAN is 1.

Parameters

vlan-id
Specifies the VLAN ID.
to vlan-id
Creates a range of VLANs.
name string
Specifies the name of the VLAN. The name can be up to 32 characters in length.
by port
Configures the VLAN as a port-based VLAN.

Modes

Global configuration mode

Usage Guidelines

You can configure up to 1023 port-based VLANs on a device (4063 on the Brocade ICX 6650) running Layer 2 code or 4061 port-based VLANs on a device running Layer 3 code. Each port-based VLAN can contain either tagged or untagged ports. A port cannot be a member of more than one port-based VLAN unless the port is tagged.

NOTE
VLAN IDs 4087, 4090, and 4093 are reserved for Brocade internal use only. VLAN 4094 is reserved for use by Single STP. Also, VLAN IDs 4091 and 4092 may be reserved for Brocade internal use only. If you want to use VLANs 4091 and 4092 as configurable VLANs, you can assign them to different VLAN IDs

The no form of the command removes the VLAN.

Examples

The following example shows how to create a port-based VLAN.

device(config)# vlan 222 by port

The following example shows the port-based VLAN configuration.

device(config)# vlan 10 name IP_VLAN by port
device(config-vlan-10)# untagged ethernet 1/1/1 to 1/1/6
added untagged port ethe 1/1/1 to 1/1/6 to port-vlan 10.

The following example shows how to create continuous and discontinuous VLANs.

device(config)# vlan 2 to 7 20 25 
device(config-mvlan-2*25)#

The following example shows how to create continuous VLANs.

device(config)# vlan 2 to 7
device(config-mvlan-2-7)#

The following example shows how to create discontinuous VLANs.

device(config)# vlan 2 4 7
device(config-mvlan-2*7)#