Configure Network VLAN Properties

A Virtual Local Area Network (VLAN) is a logical network within a physical network. Cockpit administrators can build a VLAN configuration from any of the available network interfaces on the host system. Properties for creating and maintaining a VLAN configuration are available on the Networking page of the Cockpit web console.

What Do You Need?

  • The Cockpit web console must be installed and accessible.

    For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.

  • The parent VLAN network interface must support VLAN tags.
  • The network switch connected to the host system must support VLAN. For more details, see the documentation provided with the switch.
  • If you configure the VLAN on top of a bonded interface, the following requirements apply:
    • The port connections must be up to support a VLAN configuration over a bonded interface.
    • The bond fail_over_mac=follow option isn't supported for VLAN configurations over a bonded interface.
    • IPv4 from a DHCP server and IPv6 auto configuration options aren't supported on a VLAN over a bonded interface.
  • Administrator privileges.

Steps

Using the Cockpit web console, follow these steps to create, change, or remove a VLAN configuration on the host system.

  1. In the Networking page, navigate to the Interfaces panel and perform any of the following:
    • Create VLAN configuration. Click Add VLAN, specify the following properties in the Add VLAN dialog box, and click Add.
      Property Description
      Parent In the Parent drop-down list, assign a parent interface to the VLAN configuration. For example, enp0s3
      VLAN ID In the VLAN ID field, use the default VLAN ID provided (for example, 1) or enter a user-specified VLAN ID.
      Name In the Name field, keep the default name provided (for example, enp0s3.1) or enter a user-specified VLAN name.

      The name of the new VLAN configuration appears in the Interfaces panel on the Networking page.

    • Edit or remove existing VLAN properties.
      1. In the Interfaces panel, click the name of a VLAN (for example, enp0s3.1 ) that you want edit.

        The Networking [VLAN name] page appears.

      2. In the Networking [VLAN name] page, edit the configurable VLAN properties as needed. For example:
        Action Steps
        Toggle the state of a VLAN connection Click the toggle switch to either activate or deactivate the VLAN connection state.
        Delete a VLAN configuration Click Delete (next to the VLAN name) to remove the VLAN configuration.
        Automatically connect the VLAN configuration (after reboot) Select the checkbox to enable automatic connection after reboot, or clear the check box to disable automatic connection after reboot.
        Edit IPv4 or IPv6 Network Address Click the applicable edit link to change the IPv4 or IPv6 network addressing properties.
        Set MTU size Click edit to change the set MTU size.
        Edit VLAN: Parent: name properties Click edit to edit any of the applicable properties appearing on the VLAN Settings dialog box. For example, VLAN name, interface assignment, and VLAN ID.