ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Ubuntu Server 17.10 and Netplan

    Scheduled Pinned Locked Moved IT Discussion
    netplanubuntu 17.10
    1 Posts 1 Posters 2.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • black3dynamiteB
      black3dynamite
      last edited by black3dynamite

      Since I'm using KVM on Fedora Workstation I needed to add a isolated interface so I can access my VM from the host. First of all loopback interface was the only thing in /etc/network/interfaces.

      I thought something was broken so I added my ens3 (macvtap-bridge) and ens4 (isolated) interfaces.

      And then none of commands that we normally would use was not available.
      After doing some Google-fu, I found out that Ubuntu Server 17.10 uses NetPlan to manage the network configuraton now.

      https://wiki.ubuntu.com/Netplan

      The configuration in /etc/netplan/01-netcfg.yaml looks this.

      # This file describes the network interfaces available on your system
      # For more information, see netplan(5).
      network:
        version: 2
        renderer: networkd
        ethernets:
          ens3:
            dhcp4: yes
          ens4:
             dhcp4: yes
      

      The supported renderers are NetworkManager NetworkManager and systemd-networkd networkd.

      The following commands is available to generate and apply the configuration.

      # Use /etc/netplan to generate the required configuration for the renderers.
      sudo netplan generate
      
      # Apply all configuration for the renderers, restarting them as necessary.
      sudo netplan apply
      
      # Attempt to generate an equivalent configuration to what is specified in /etc/network/interfaces.
      sudo netplan ifupdown-migrate
      
      1 Reply Last reply Reply Quote 3
      • 1 / 1
      • First post
        Last post