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.

1075 questions
77
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,094
40
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
  • 521
38
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
35
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,358
31
votes
3 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
  • 662
30
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,291
26
votes
12 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: …
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.
  • 451
19
votes
2 answers

Netplan - gateway has been deprecated

I newly installed Ubuntu 22.04 and configured netplan like this: network: version: 2 ethernets: ens18: addresses: - 10.10.0.101/24 - 2009:470:1099:10::101/64 dhcp4: false …
19
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
  • 351
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
18
votes
5 answers

How to set default route with netplan, Ubuntu 18.04 server, 2 NIC

I have two NIC, both is controled over DHCP. One have public IP, second private. Both interfaces have static IP reserved in DHCP and both interfaces get right IP, but somethimes when reboot server I can't access from public, because default route is…
Petar
  • 183
17
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,160
17
votes
2 answers

How do I use cloud-init to apply netplan?

After I manually edit /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg, how do I tell cloud-init to update /etc/netplan/50-cloud-init.yaml? In other words, it doesn't make sense to manually update both files; what's the standard process to re-apply…
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
  • 461
1
2 3
71 72