vlan create

Create a VLAN by port, protocol, or SPBM. Optionally, you can choose to assign the VLAN a name and color. VLANs 4060-4094 are used internally. Create a VLAN with a value between 2 and 4059.

Syntax

Command Parameters

<2-4059>

Specifies the VLAN ID in the range of 2 to 4059. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1. By default, the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998.

color <0-32>
Specifies the color of the VLAN.
name WORD<0-64>
Specifies the VLAN name in the range of 0-64. This parameter is optional.
Note

Note

Do not use the name Mgmt when you specify a name for the VLAN that you create. The switch creates a management VLAN at boot up with the assigned name Mgmt.

The show command does not show the management VLAN.

port-mstprstp <0-63>
Specifies the VLAN type as created by port. <0-63> specifies the instance ID.
protocol-mstprstp <0-63>
Specifies the VLAN type as created by protocol. <0-63> specifies the instance ID.
pvlan-mstprstp <0-63>
Specifies the VLAN type as private for use in Etree deployments. <0-63> specifies the instance ID.
spbm-bvlan
Specifies the VLAN type as the backbone VLAN (B-VLAN) for Shortest Path Bridging MAC (SPBM).
type ipsubnet-mstprstp <0-63> <A.B.C.D/X> [color <0-32]
Creates a VLAN by IP subnet:
  • <0-63> is the STP instance ID in the range of 0-63

  • A.B.C.D/X is the subnet address or mask {a.b.c.d/x | a.b.c.d/x.x.x.x}

  • color <0-32> is the color of the VLAN in the range of 0 to 32

type port-mstprstp <0-63> [color <0-32>]
Creates a VLAN by port: 0-63 is the STP instance ID from 0 to 63. color <0-32> is the color of the VLAN in the range of 0 to 32.
type protocol-mstprstp <0-63> {appleTalk | decLat | decOther | ip | ipv6 | ipx802dot2 | ipx802dot3 | ipxEthernet2 | ipxsnap | netBios | PPPoE | rarp | sna802dot2 | snaEthernet2 | vines | xns} [color <0-32>]
Creates a VLAN by protocol:
  • 0-63 is the STP instance ID

  • appleTalk is the apple talk protocol

  • decLat is the declat protocol

  • decOther is the decother protocol

  • ip is the Ip version 4 protocol

  • ipx802dot2 specifies the Novell Internetwork Packet Exchange (IPX) on IEEE 802.2 frames

  • ipx802dot3 specifies the Novell Internetwork Packet Exchange (IPX) on Ethernet 802.3 frames

  • ipxEthernet2 specifies the Novell IPX on Ethernet type 2 frames

  • ipxsnap specifies the Novell IPX on Ethernet Standard Network Access Protocol (SNAP) frames

  • netbios is the Netbios protocol

  • PPPoE is the Point-to-Point Protocol Over Ethernet

  • rarp is the Rarp protocol

  • sna802dot2 is the Sna802dot2 protocol

  • snaethernet2 is the Snaethernet2 protocol

  • vines is the Vines protocol

  • xns is the Xns protocol

  • color <0-32> is the color of the VLAN in the range of 0 to 32

type protocol-mstprstp <0-63> userDefined {0x0000 | <decimal value>} [color ] <0-32>] [encap {ethernet-ii | llc | snap}]
Creates a VLAN using a user defined protocol.
  • <0-63> is the STP instance ID in the range of 0-63

  • {0x0000|<decimal value>} is the protocol ID in hexadecimal or decimal value

  • color <0-32> is the color of the VLAN in the range of 0 to 32

  • encap specifies the frame encapsulation header type

type pvlan-mstprstp <0-63> secondary <2-4059> color <0-32>
Creates a Private VLAN by port for a secondary VLAN ID. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.
By default, the system reserves VLAN IDs 4060 to 4094 for internal use. If you enable VRF scaling and SPBM mode, the system also reserves VLAN IDs 3500 to 3998.
type srcmac-mstprstp <0-63> [color<0-32> ]
Creates a VLAN by source MAC address: 0-63 is the STP instance ID in the range of 0-63. color <0-32> is the color of the VLAN in the range of 0 to 32.

Default

None

Command Mode

Global Configuration

Usage Guidelines

You cannot configure a VLAN name that uses all numbers, for example, 222.