Ubuntu Server 17.10 and Netplan
-
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-networkdnetworkd
.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