Questions tagged [netplan]

Netplan is a utility for easily configuring networking on a linux system. You simply create a YAML description of the required network interfaces and what each should be configured to do. From this description Netplan will generate all the necessary configuration for your chosen renderer tool.

Netplan reads network configuration from /etc/netplan/*.yaml which are written by administrators, installers, cloud image instantiations, or other OS deployments. During early boot it then generates back-end specific configuration files in /run to hand off control of devices to a particular networking daemon.

You can find out more about Netplan on the Ubuntu Netplan wiki page or the Netplan website.

955 questions
73
votes
7 answers

Ubuntu 18.04: switch back to /etc/network/interfaces

Starting sometime around Ubuntu 18.04, the Ubuntu devs stopped using the classic /etc/init.d/networking and /etc/network/interfaces method of configuring the network and switched to some thing called netplan. This has made a lot of people very angry…
jdgregson
  • 1,024
  • 1
  • 10
  • 16
34
votes
1 answer

Why did Ubuntu change the network configuration

As we all know, to configure the network, we can edit /etc/network/interfaces and execute /etc/init.d/networking restart. Today I try to use Ubuntu 17.10 and I've found the network configuration had changed. Now we should edit…
Yves
  • 1,238
  • 5
  • 18
  • 33
32
votes
2 answers

Netplan in Ubuntu Server 18.04. How to restart network fully?

Ubuntu 18.04 LTS use netplan and systemd-networkd as default network config tool. In earlier release, we can use service networking restart, or just ifdown & ifup to fully restart the network or an interface. In 18.04, netplan tells just change the…
TerryR01
  • 441
  • 2
  • 5
  • 8
29
votes
2 answers

How do I reload network configuration with cloud-init?

I've installed Ubuntu Server 18.04, and instead of the old /etc/network/interfaces, it seems that my network configuration now lives in a series of YAML files in /etc/netplan, of which the only one I actually have is…
interfect
  • 632
  • 1
  • 6
  • 10
28
votes
3 answers

Am I running NetworkManager or networkd?

I am learning to use netplan. When writing a YAML configuration file I need to know which renderer to use, either NetworkManager or networkd. How do I know if I am running NetworkManager or networkd?
user822833
27
votes
1 answer

netplan vs NetworkManager on Ubuntu 18.04 and above

What is the concept of renderer in a netplan configuration file? What practical difference does it make between choosing a networkd and a NetworkNamager renderer? Can anyone (in the second case) proceed with nmtui or nmcli?
pkaramol
  • 2,031
  • 5
  • 23
  • 29
24
votes
11 answers

Netplan does not apply at startup

I installed Ubuntu 17.10 with latest updates on a vmware virtual machine. Netplan does not configure my 2 ethernets. Here is my /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ethernets: lan: match: …
Thomas Aichinger
  • 2,746
  • 5
  • 23
  • 48
19
votes
4 answers

Virtual interface in netplan

In the old /etc/network/interfaces I could define a virtual interface: auto enp7s0f0 iface enp7s0f0 inet static address aaa.aaa.aaa.aaa netmask 255.255.255.0 gateway aaa.aaa.aaa.1 auto enp7s0f0:0 iface enp7s0f0:0 inet static …
Maciek D.
  • 431
  • 1
  • 3
  • 9
19
votes
3 answers

How to execute post-up scripts with netplan

My nic crashes in high bandwidth scenarios unless TSO offloading is disabled. It is a I217-LM (e1000e driver). I used to do this in interfaces: auto eno1 iface eno1 inet dhcp post-up /sbin/ethtool -K eno1 tso off How do I do this with netplan on…
Sigge
  • 201
  • 1
  • 2
  • 5
18
votes
1 answer

How to enable netplan on ubuntu server upgraded from 16.04 to 18.04

I recently upgraded my 16.04 server system to 18.04, and then tried to use netplan to set up networking. Unfortunately, now my network settings are broken and I don't know which files belong to which network configuration system. The…
Karl
  • 331
  • 1
  • 2
  • 8
17
votes
4 answers

Can netplan configured nameservers supersede (not merge with) the DHCP nameservers?

I would like to use DHCP to assign an IP address to my server, but specify the DNS servers manually. I tried the following simple configuration: network: version: 2 renderer: networkd ethernets: enp0s3: dhcp4: yes nameservers:…
alanwj
  • 411
  • 1
  • 4
  • 9
16
votes
4 answers

netplan configuration on Ubuntu 17.04 virtual machine

I'm running VirtualBox with 2 network adapters: standard NAT (enp0s3) and a Host-only Adapter (enp0s8). I use the NAT to access the internet and the Host-only Adapter to SSH in from my local machine. The box boots up with both adapters enabled, both…
hellojason
  • 263
  • 1
  • 2
  • 5
16
votes
3 answers

How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server with 'netplan'?

How to setup of Raspberry Pi 3 B+ onboard WiFi for Ubuntu Server 18.04? In particular, with netplan? Existing answers, such as "How to use onboard wifi on Raspberry Pi 3 with Ubuntu Server 16.04?", no longer seem to apply since…
marc-medley
  • 1,090
  • 2
  • 16
  • 23
16
votes
1 answer

How can I configure default route metric with dhcp and netplan?

My problem is quite similar to this question. My vagrant machine sets default route metric incorrectly. The following is netplan configuration. network: version: 2 ethernets: enp0s3: dhcp4: true match: macaddress:…
jeiea
  • 263
  • 1
  • 2
  • 6
15
votes
6 answers

DNS issues after upgrading to 20.04

After upgrading to 20.04, both my wired and wireless networking lost access to the internet. I confirmed my drivers were working when I was able to resolve a ping to the Google nameserver 8.8.8.8. Now, every time I reboot, I have to manually edit…
Mykle
  • 311
  • 1
  • 2
  • 7
1
2 3
63 64