VLAN Commands
vlan-create
This command is used to create a new VLAN on the network. You can create a VLAN by specifying a VLAN ID or a range of VLAN IDs.
Syntax vlan-create
id vlan-id |
Specify a VLAN identifier for the VLAN. This is a value between 0, and 4095. |
OR |
|
range vlan-list |
Specify a range of VLAN IDs. |
scope local|cluster|fabric |
Specify a scope for the VLAN. |
Specify any of the following options: |
|
vnet vnet-name |
Specify the vNET assigned to this VLAN. |
vxlan vxlan-id |
Specify the VXLAN mapped to the VLAN for the tunnel. |
auto-vxlan|no-auto-vxlan |
Specify if you want to enable or disable auto-vxlan. Enabling this option automatically assigns a user-defined VLAN/VNI mapping to all VTEP connections in the fabric. If the vxlan option is not specified, the software assigns a VNI automatically. |
vxlan-mode standard|transparent |
Specify the VXLAN mode as standard or transparent. |
vxlan-hybrid-mode standard|transparent |
|
replicators vtep-group name|none |
Specify the replicator group. |
public-vlan vlan-id |
Specify the ID of the public VLAN. |
description description-string |
Specify a description for the VLAN. |
stats|no-stats |
Specify if you want to collect statistics for a VLAN. Statistic collection is enabled by default. |
ports port-list |
Specifies the switch network data port number, list of ports, or range of ports. Port numbers must be in the range of 1 to 64. |
port-desc port-desc-string |
Specify a port description to be assigned to the VLAN. |
untagged-ports untagged-port-list |
Specifies the ports that should have untagged packets mapped to the VLAN. Untagged packets are packets that do not contain IEEE 802.1Q VLAN tags. |
Defaults None.
Access CLI
History
Version 1.2 |
Command introduced. |
Version 2.2 |
The parameter stats added. The scope option cluster deprecated. |
Version 2.3 |
The parameter name changed to description. |
Version 2.4.1 |
The parameters: vxlan, vxlan-mode, and public-vlan are added. The option cluster in the scope parameter added. |
Version 2.5.2 |
The parameter vxlan-mode standard|transparent added. |
Version 2.6.2 |
The parameter range added. |
Version 3.0.0 |
The parameter range deprecated. The parameter replicators added. |
Version 6.0.0 |
The parameter auto-vxlan added. |
Version 7.0.0 |
The parameter port-desc added. |
Usage VLANs are used to isolate network traffic at Layer 2. Use this command to create a new VLAN. While creating the VLAN, you can specify a VLAN ID or a range of VLAN IDs.
Informational Note:
The VLAN identifiers 0, and 4095 are reserved, and cannot be used per the IEEE 802.1Q standard.
The range of configurable VLAN identifiers is 0 through 4095.
Examples To create a new fabric-wide VLAN with the description, finance VLAN, and an identifier of 7, use the following command:
CLI (network-admin@switch) > vlan-create id 7 description finance-VLAN scope fabric