TrueNAS SCALETrueNAS SCALE Version Documentation
This content follows the TrueNAS SCALE 23.10 (Cobia) releases. Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.

Setting Up a Network VLAN

  2 minute read.

Last Modified 2023-08-01 16:14 EDT

A virtual LAN (VLAN) is a partitioned and isolated domain in a computer network at the data link layer (OSI layer 2). Click here for more information on VLANs. TrueNAS uses vlan(4) to manage VLANs.

Before you begin, make sure you have an Ethernet card connected to a switch port and already configured for your VLAN. Also that you have preconfigured the VLAN tag in the switched network.

To set up a VLAN interface, from the Network screen:

  1. Click Add in the Interfaces widget. The Add Interface configuration screen displays.

    AddInterfaceVLANType

  2. Select VLAN from the Type dropdown list. You cannot change the Type field value after you click Apply.

  3. Enter a name for the interface using the format vlanX where X is a number representing a non-parent interface. You cannot change the Name of the interface after you click Apply.

  4. (Optional but recommended) Enter any notes or reminders about this particular VLAN in the Description field.

  5. Select the interface in the Parent Interface dropdown list. This is typically an Ethernet card connected to a switch port already configured for the VLAN.

  6. Enter the numeric tag for the interface in the Vlan Tag field. This is typically preconfigured in the switched network.

  7. Select the VLAN Class of Service from the Priority Code Point dropdown list.

  8. (Optional) Click Aliases Add next to Aliases to enter another IP address if desired for this bridge interface. Click Add to display an IP address field for each IP address you want to add.

  9. Click Apply when finished.

Related Content

Related Network Articles