Configure Network VLAN Properties

A Virtual Local Area Network (VLAN) is a logical network within a physical network. Cockpit administrators, as needed, 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.

Note:

For more information about implementing a VLAN connection on the host system, see Create VLANs on Oracle Linux.

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.
  • The cockpit-networkmanager package is installed. Typically, this package is installed by default. For package installation details, see Install and Manage Add-on Applications.
  • 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 Interface panel and perform any of the following:
    • Create VLAN configuration. Click Add VLAN, specify the following properties on the VLAN Settings dialog, and click Save.
      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 text box, use the default VLAN ID provided (for example, 1) or enter a user-specified VLAN ID.
      Name In the Name text box, 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 Interface panel on the Networking page.

    • Edit or removeexisting VLAN properties.
      1. In the Interface 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:
        Toggle the state of a VLAN connection Turn off the toggle switch to deactivate the VLAN connection state or turn on the toggle switch to activate 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 Automatic link to change the IPv4 or IPv6 network addressing properties.
        Set MTU size Click the link to change the set MTU size.
        Edit VLAN: Parent: name properties Click the link to edit any of the applicable properties appearing on the VLAN Settings dialog. For example, VLAN name, interface assignment, and VLAN ID.