Creating a VLAN

You can create a VLAN for maintaining separate broadcast domains within the same network domain by using the network port vlan create command.

Before you begin

Your network administrator must have confirmed that the following requirements have been met:

About this task

In certain circumstances, if you want to create the VLAN port on a degraded port without correcting the hardware issue or any software misconfiguration, then you can set the -ignore-health-status parameter of the network port modify command as true.

Creating a VLAN attaches the VLAN to the network port on a specified node in a cluster.

When you configure a VLAN over a port for the first time, the port might go down, resulting in a temporary disconnection of the network. Subsequent VLAN additions to the same port do not affect the port state.

Note: You should not create a VLAN on a network interface with the same identifier as the native VLAN of the switch. For example, if the network interface e0b is on native VLAN 10, you should not create a VLAN e0b-10 on that interface.


Use the network port vlan create command to create a VLAN.
You must specify either the vlan-name or the port and vlan-id options when creating a VLAN. The VLAN name is a combination of the name of the port (or interface group) and the network switch VLAN identifier, with a hyphen in between. For example, e0c-24 and e1c-80 are valid VLAN names.
The following example shows how to create a VLAN e1c-80 attached to network port e1c on the node cluster-1-01:
network port vlan create -node cluster-1-01 -vlan-name e1c-80
Starting with ONTAP 9.8, VLANs are automatically placed into appropriate broadcast domains about one minute after their creation.

For more information about this command, see the man page.