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.

Filter by
Sorted by
Tagged with
73 votes
7 answers
206k views

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 ...
jdgregson's user avatar
  • 1,024
10 votes
2 answers
8k views

Why is the network configuration I set in /etc/network/interfaces ignored on Ubuntu 17.10?

I've just installed ubuntu server 17.10. During installation, it suggested me to connect to the network through wifi, and so i did. After installation was finished and system was rebooted, computer ...
lucius's user avatar
  • 147
18 votes
1 answer
61k views

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 ...
Karl's user avatar
  • 331
34 votes
1 answer
31k views

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 ...
Yves's user avatar
  • 1,238
4 votes
1 answer
9k views

How do I use a static IP in Ubuntu 17.10 and newer?

I changed config from dhcp to static (192.168.0.17), but still getting a dhcp assigned (192.168.0.141) IP. I don't know where else to check... any idea? ifconfig ens33: flags=4163<UP,BROADCAST,...
igtoth's user avatar
  • 61
27 votes
1 answer
48k views

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) ...
pkaramol's user avatar
  • 2,031
24 votes
11 answers
76k views

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 ...
Thomas Aichinger's user avatar
16 votes
4 answers
21k views

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. ...
hellojason's user avatar
15 votes
5 answers
83k views

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 ...
Petar's user avatar
  • 153
11 votes
1 answer
4k views

Reproducing a set of ip commands in netplan

I recently upgraded to ubuntu 18.04 from 16.04 and am trying to figure out how to get my ip route and ip rule commands that I used to put in /etc/network/interfaces working under netplan. These are ...
Colton Myers's user avatar
10 votes
5 answers
28k views

Ubuntu 17.10+ disable netplan

According to: https://wiki.ubuntu.com/Netplan I can disable netplan by: "preseeding netcfg/do_not_use_netplan=true (adding it the the command-line when you boot the Ubuntu Server installation media" ...
user avatar
3 votes
1 answer
665 views

How to correctly setup Ubuntu 18.04 LTS installed from mini.iso to use NetworkManager?

I have just installed Ubuntu 18.04 LTS from mini.iso using Ethernet/cable. Then I have installed MATE desktop to it by sudo apt-get install ubuntu-mate-desktop^. But the Network Manager tray icon/nm-...
N0rbert's user avatar
  • 97.4k
19 votes
4 answers
37k views

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 ...
Maciek D.'s user avatar
  • 431
17 votes
4 answers
23k views

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 ...
alanwj's user avatar
  • 411
16 votes
6 answers
73k views

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,...
Mykle's user avatar
  • 321
10 votes
1 answer
19k views

Does netplan support DHCP and static addresses on one interface?

I have a couple Ubuntu Server 16 installations where the NIC gets a static address and a dhcp address using the interface:X syntax in the /etc/network/interfaces file. auto eno1 iface eno1 inet ...
user38537's user avatar
  • 683
10 votes
3 answers
6k views

ipv6 tunnel in Ubuntu 17.10?

I used to be able to do the configuration below with no issues in /etc/network/interfaces but now it's not picked up anymore. How do I configure a ipv6 tunnel now? I see see the new netplan software ...
Tek's user avatar
  • 348
9 votes
1 answer
18k views

multiple NICs under ubuntu 18.04

How to translate what we had to do to have 2 independent stream of traffic on 2 or more NIC interfaces with the new netplan.io + systemd-networkd? auto ens2 iface ens2 inet static address 192.168.5....
vigilian's user avatar
  • 814
6 votes
2 answers
7k views

Netplan not connecting to hidden SSID Server 18.04.1 LTS

I've a problem with Netplan not connecting to WiFi network with hidden SSID. It works great if I'll make this network visible. But no chance with hidden one. Any options to configure that?
k1T4eR's user avatar
  • 63
5 votes
2 answers
11k views

How do you configure Netplan on Ubuntu to store 802.1x credentials securely?

In an 802.1x enterprise network, I can use NetworkManager to configure 802.1x parameters, including the password. This all works, but requires storing the password in cleartext. We are trying to use ...
Phillip Remaker's user avatar
3 votes
1 answer
7k views

How can I add a route that is "on the link", directly connected to the interface even if the IPs are not the same?

We're working on an Ubuntu 17.10 linux and we would have to use Netplan for network configuration. We have a /run/systemd/network/*.network file which fit what we need, but we want to "translate" it ...
Bardyl's user avatar
  • 133
3 votes
2 answers
2k views

Automatic network card configuration?

We have lots of different servers with different network cards, is there a way to have Ubuntu 20.04 automatically configure the network cards with DHCP? Right now we have to manually change the .yaml ...
Russ's user avatar
  • 31
3 votes
1 answer
1k views

Can't disable local addresses on network interfaces

My server: ASRock B450M/ac (RealTek 8111/8168/8411) Ryzen 5 3400G 64GB System Memory Rosewill RC-411v3 (RealTek 8111/8168/8411) My Computer: Ryzen 7 2700X 32GB System Memory MSI X470 Gaming Pro ...
user avatar
1 vote
1 answer
17k views

How to restore a working network configuration with netplan on Ubuntu 20.04

Recently I tried to install open nebula and for some reason,the eno1 network interface disappeared from my Ubuntu 20.04 network configuration and I would like to restore it, because now I'm not able ...
Marietto's user avatar
  • 515
28 votes
3 answers
56k views

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?
user avatar
16 votes
1 answer
55k views

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: ...
jeiea's user avatar
  • 263
11 votes
1 answer
31k views

How can I create a bond interface in Ubuntu 18.04?

I'm trying to reinstall an Ubuntu server to 18.04. I discovered that 18.04 uses Netplan, and I'm having trouble creating a bond interface using this. Updated configuration: ############# BOND - ...
moxom's user avatar
  • 113
10 votes
3 answers
32k views

Why is Netplan/Networkd not bringing up a static ethernet interface?

I have a machine running Ubuntu Server 18.04. The network is configured using Netplan, so I have this config in /etc/netplan/01-netcfg.yaml: network: version: 2 renderer: networkd ethernets: ...
detly's user avatar
  • 3,342
6 votes
2 answers
7k views

How to get netplan on 17.10 server to work with a Windows Server DHCP server using MAC address reservations?

To do this on recent Fedora and Arch, it is necessary to set dhcp-client-identifier = hardware to get DHCP to work. I suspect the same is true on 17.10. However, Artful uses netplan and systemd-...
Russell Jones's user avatar
5 votes
1 answer
5k views

How to force a bridge to clone mac-address from first added physical port

I'm configuring KVM/QEMU on Ubuntu 18.04 using netplan. There is corporative dhcp-server that provide a lot of mandatory data in addition to ip/netmask. The issue is that a bridge on setup generates ...
Harry Urcen's user avatar
4 votes
2 answers
6k views

How do I use netplan to configure PPPoE?

I want to add lines to a working 01-netcfg-yaml file to automatically connect an interface to ppp using a script created by pppoeconf. But I can't find any guides or examples. I would much ...
AndrewG's user avatar
  • 49
4 votes
1 answer
22k views

Ubuntu 18.04: How to create a persistent dummy network interface

I am trying to create a dummy network interface on a Ubuntu 18.04 server. Here is how I would do it on my previous Ubuntu 16.04 servers: In /etc/network/interfaces.d/dummy.cfg, write: auto dummy0 ...
Pierre Mourlanne's user avatar
4 votes
2 answers
14k views

Failed to start netplan-wpa-wlan0.sevice: Unit netplan-wpa-wlan0.service not found

Setting up my rasbperry pi to work as my personal production testing machine. I've installed ubuntu server 20.04.1 LTS (RPI 3/4) 64bit and desperately trying to setup a wireless connection on it. ...
user avatar
3 votes
2 answers
22k views

Configure bonded 802.3ad network using netplan on Ubuntu 18.04

I am running into some issues configuring netplan on Ubuntu 18.04 server to bond my four hardware ethernet ports named eno1, eno2, eno3, eno4 using the 802.3ad protocol. I've consulted the netplan man ...
n8tlarsen's user avatar
3 votes
1 answer
6k views

Ubuntu Server 18.04 waiting for Network at startup although the network is ok

I have fresh installation of Ubuntu Server 18.04. Until it is all set up and tested, I want it to be connected to both wired and wifi network. My /etc/netplan directory contains two files: 01-netcfg....
Passiday's user avatar
  • 265
3 votes
2 answers
2k views

What is creating /run/netplan/eth0.yaml?

Something is creating /run/netplan/eth0.yaml at boot and I can't figure out what it is. (I'm running 18.04 Bionic Beaver.) That file is causing eth0 to be managed by systemd-networkd but I want it to ...
Richard Hansen's user avatar
2 votes
2 answers
19k views

How to disable WiFi interface with netplan?

My netplan config at /etc/netplan/wireless.yaml seems to be working well for my WiFi-to-USB adapter, but I seem to still get the native interface to come up. I would prefer to keep that down. Right ...
tarabyte's user avatar
  • 274
2 votes
2 answers
22k views

Routes in Netplan... using routes: from the example says unknown key

I have two NIC both connected to private networks one that goes to a dead end network and the other that can get to the internet through NAT. When I bring up both the defaut route gets switched to ...
Networklackey's user avatar
2 votes
3 answers
14k views

How to setup netplan with additional loopback addresses but mainly use NetworkManager?

I have recently installed Kubuntu 18.04 which uses netplan instead of the old networking subsystems. In the past I have set up a few extra loopback addresses for a variety of reasons using /etc/...
cardonator's user avatar
1 vote
3 answers
7k views

Convert /etc/network/interfaces to netplan for floating IP

I am new to the netplan on Ubuntu 18.04, just discovered it exists today. I have an interface that I am trying to add to create a floating IP on google cloud. It is based on this example: https://...
justadev's user avatar
  • 223
1 vote
2 answers
6k views

Wifi Problem After Setting Static IP in Ubuntu 18.04.01 LTS

I set a static IP by following the instructions on https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/netplan-how-to-configure-static-ip-address-in-ubuntu-18-04-using-netplan.html At first, it ...
Enes Altuncu's user avatar
0 votes
1 answer
3k views

How do I set up bridges and vlans with netplan

I'm trying to ready my network for running some VMs. As far as I could read, the way to go is to create a bunch of bridges from my physical ethernet interface (perhaps even bond the two I have?), and ...
Aephir's user avatar
  • 19
0 votes
1 answer
2k views

Ubuntu 18.04 bond with netplan duplicate MAC address after cloning

I have a situation in which I have many identical servers to setup Ubuntu 18.04 on. I set one server up, took an image with Clonezilla and then restored on all others. Normally, I go to each of these ...
Ahmed Tawfik's user avatar
29 votes
2 answers
33k views

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 ...
interfect's user avatar
  • 632
19 votes
3 answers
27k views

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 -...
Sigge's user avatar
  • 201
16 votes
3 answers
36k views

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?", ...
marc-medley's user avatar
  • 1,090
13 votes
2 answers
52k views

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:...
Thomas Aichinger's user avatar
12 votes
2 answers
7k views

What does "changes to it will not persist across an instance" actually mean in 50-cloud-init.yaml

In recent Ubuntu, netplan is the default way of configuring network adapters. I want a static IP on one of mine, and there are some guides on how to do that. Some point you to editing 50-cloud-init....
aggieNick02's user avatar
11 votes
3 answers
35k views

netplan apply does not change the IP address

ok, my file is located at /etc/netplan/50-cloud-init.yaml I changed the IP address as a static IP address as following: network: version: 2 renderer: netwokrd ethernets: dhcp4: no ...
stakes's user avatar
  • 171
10 votes
2 answers
42k views

Ubuntu Server Netplan for Wifi and Ethernet

I'm new to Ubuntu server and want set up my netplan so that I can use two different IP addresses for two separate interfaces (Wifi and Ethernet). So far, Ethernet works fine, but I can't get the wifi ...
TheEngineEar's user avatar