Add, Edit, Unplug, or Plug VM Network Interface

Using the VM [name] page, Cockpit administrators can choose add, edit, unplug, or plug a virtual network interface as needed.

By default, all VM instances on the host are connected to a NAT mode virtual network environment. This default network (libvirtd) is available upon installing and enabling the Oracle Linux virtualization packages.

Note:

For more details about setting up and managing a virtual network, see Setting up and Managing Virtual Networks in the Oracle Linux: KVM User's Guide.

What Do You Need?

Steps

Using the Cockpit web console, follow these steps to configure, connect, or disconnect a virtual network interface.

  1. In the Cockpit navigation pane, click Virtual machines.

    The Virtual machines page appears.

  2. In the Virtual machines page, click the name of the virtual machine of interest.

    The Virtual machines [VM name] page appears.

  3. In Virtual machines [VM name] page, navigate to the Network Interface section and perform any of the following actions:

    Add Network Interface Perform these steps:
    1. Click Add Network Interface.
    2. In the Add Network dialog, specify the required properties. For more details, see the configurable properties description that follows.
    3. Click Add.

      The network interface is added and appears in the Network Interface section of the page.

    Configurable properties:
    • Interface type: In the list box, select one of the following: Virtual (default), Bridge to LAN, or Direct attachment.

      Click question mark icon for a description of each option.

    • Source: In the list box, select the applicable source destination for the network interface type.
    • Model: In the list box, select the applicable model for the network interface type.
    • MAC Address: Select to either have the MAC address for the interface automatically generated or to enter the MAC Address for the interface manually.
    • Persistence (always attached): Clear the check box to disable this option, or select the check box to enable this option.
    Remove Network Interface Perform these steps:
    1. Unplug (disconnect) the network interface.
    2. Click Remove to delete the network interface configuration.

      The Network interface configuration is removed from the Network Interface section.

    Unplug or Plug Network Interface Perform one of the following:
    • Click Unplug to disconnect the network interface configuration on the VM instance.
    • Click Plug to connect the network interface configuration on the VM instance.
    Edit Network Interface Requirement:

    Perform these steps:

    1. Click Edit.
    2. In the Edit dialog, change the applicable properties (type, source, model, MAC address).
    3. Click Save to save the change.
    4. Restart VM instance to apply the network changes.