Skip to main content

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
75 votes
7 answers
217k 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,044
37 votes
2 answers
126k views

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 ...
TerryR01's user avatar
  • 491
35 votes
1 answer
32k 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,308
34 votes
3 answers
73k 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
30 votes
3 answers
38k 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
  • 642
29 votes
1 answer
53k 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,191
26 votes
11 answers
83k 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
19 votes
3 answers
30k 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
19 votes
1 answer
72k 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
  • 341
19 votes
4 answers
40k 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
18 votes
2 answers
82k 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
18 votes
5 answers
94k 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
  • 183
17 votes
3 answers
38k 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,140
17 votes
4 answers
28k 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
  • 421
16 votes
4 answers
22k 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
16 votes
6 answers
81k 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
  • 331
16 votes
1 answer
63k 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
14 votes
2 answers
9k 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
12 votes
3 answers
41k 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
  • 181
12 votes
2 answers
21k views

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 ...
Reinderien's user avatar
12 votes
2 answers
22k views

How to set up IPv6 with netplan on Ubuntu 18.04?

I purchased a dedicated server installed with Ubuntu 18.04 which was given an IPv6 Block. I used the guide How to set up IPv6 on Ubuntu 16.04 before. Since Ubuntu 18.04 uses netplan instead of /etc/...
Eleatmelon's user avatar
11 votes
5 answers
29k 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
11 votes
1 answer
5k 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
11 votes
2 answers
44k 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
11 votes
2 answers
17k views

50-cloud-init.yaml, optional: true - will the network interface get initialized if it gets online after the boot sequence?

Good evening Unfortunately, the Man Page: https://netplan.io/reference is not precise in the description for the optional (bool) property. If one interface has this setting: ethernets: eth0: ...
Tom's user avatar
  • 274
11 votes
1 answer
32k 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
11 votes
1 answer
4k views

How to properly add two network interfaces with Netplan?

Problem Please check the picture here first, a visualization of my network plan. I'm trying to add two networks on same Ubuntu 18 server, one of them is vlan tagged. When I add the second network, ...
burakcalik's user avatar
10 votes
2 answers
9k 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
10 votes
1 answer
92k views

netplan with multiple vlans on single interface - help needed

I have a single virtual interface and 802.1q enabled. When I have a single vlan for my interface in netplan it works, but when I add a second, additional vlan only the last vlan in the file works, ...
Thor Peterson's user avatar
10 votes
3 answers
34k 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,412
10 votes
1 answer
22k 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
  • 693
10 votes
2 answers
25k views

Bring up but don't assign address with Netplan

I have an interface I want to bring up at boot but otherwise leave unconfigured. No DHCP, no static IP. Is there a way to do this with Netplan in 18.04? I tried the following (where enp10s0f1 is the ...
Dominick Pastore's user avatar
10 votes
2 answers
19k views

Is there a way to try out a netplan configuration without altering the system?

I work on remote servers, and its a painfull process to go into Rescue Mode everytime I screw something up when it comes to network configuraitons. Are there a way to implement something like: ...
BD Bear's user avatar
  • 478
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
10 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
  • 834
10 votes
1 answer
13k views

How do I stop netplan from binding a default gateway on every interface

I have a fresh install of ubuntu server 17.10, however the problem may affect previous versions, but this is the first time I have encountered this situation. The server is running 2 separate network ...
Aaron Murray's user avatar
10 votes
4 answers
8k views

What is the most authoritative file/process for managing IP addresses on an 18.04 server?

The 18.04 server installation process creates /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg, which, in turn, seems to generate /etc/netplan/50-cloud-init.yaml. I can't seem to find exactly how 50-...
kartik_subbarao's user avatar
10 votes
0 answers
2k views

Ubuntu 18.04.2 LTS server - network configuration problem during setup

When installing from current server iso's in a VMWare VM and without a DHCP Server present, both Ubuntu installers are not able to manualy configure a ethernet interface. With the ubuntu-18.04.2-...
anodhi's user avatar
  • 101
9 votes
1 answer
15k views

detailed how to or example needed to setup an access point using netplan

As headline stated: I am looking for instructions on how to setup an access point using netplan, including setting up a bridge between eth0 and wlan0. DHCP Server would be my router, to which the ...
heinerolli's user avatar
9 votes
1 answer
20k views

Detecting whether netplan is managing network config (shell)

I would like to figure out in a shell script in an LXD container, whether the container is being managed by Netplan. This can be a bit of an unknown as I have a mix of 16.04 systems 18.04 systems and ...
Arni J's user avatar
  • 125
8 votes
8 answers
25k views

make netplan write resolve.conf

I have an Odroid C2 - a single board computer running 18.04 minimal for ARM. Originally, it was using NetworkManager + systemd-resolved to manage network connections, but since I use only Ethernet and ...
e-pirate's user avatar
  • 123
8 votes
1 answer
36k views

/etc/netplan: No such file or directory

Upgraded from 16.04 to 18.04 today and want to start using netplan, but it doesn't appear to be installed? I tried to install it with apt install netplan but none of the files/directories listed on ...
19wolf's user avatar
  • 355
8 votes
1 answer
19k views

Convert /etc/network/interfaces to netplan

I'm following this tutorial for making an Ubuntu active directory domain controller with Samba. The problem I have run into, is that he is using Ubuntu Server 13.10, and I am using the latest, 18....
user7391836's user avatar
8 votes
2 answers
75k views

Netplan config not working

I migrated from Ubuntu 16 to 18.04, and now my Internet connectivity is broken. Problem seems to be that 18.04 is using netplan and it wasn't properly configured. The file /etc/network/interfaces ...
digory doo's user avatar
7 votes
2 answers
14k views

Ubuntu Server 20.04 - Netplan configuration for dynamic IPv4 and static IPv6

TL;DR Does anyone have a working netplan configuration that sets a dynamic IPv4 and a static IPv6 under Ubuntu Server 20.04? What works My provider (OVH) gave me a server with this configuration in /...
yaap's user avatar
  • 311
7 votes
6 answers
22k views

Trouble Overriding DNS Servers via Netplan Config

I'm trying to override the nameserver settings in the netplan yaml configuration, but it doesn't seem to be working. Here's the /etc/netplan/01-netcfg.yaml file: network: version: 2 renderer: ...
Andrew's user avatar
  • 211
7 votes
6 answers
137k views

Netplan error in network definition expected mapping

no way to make the network works on the new ubuntu server. This is the netplan yaml file: # To disable cloud-init's network configuration capabilities, write a file # /etc/cloud/cloud.cfg.d/99-...
Giox's user avatar
  • 263
7 votes
3 answers
27k views

Netplan DNS nameserver setting not being applied

I'm renting a VPS from Linode with Ubuntu 20.04 LTS (Focal Fossa) installed on it. But the default DNS server from Linode doesn't resolve a domain name which I really need it to resolve. Therefore, I ...
Joshua Schroijen's user avatar
7 votes
1 answer
6k views

network doesn't work after adding second interface to netplan

I have a fresh install of Ubuntu 18.04.1 server. When I configure netplan with just my WAN address it starts up fine and I can ping out right away. However; when I add another address to my netplan ...
tremors's user avatar
  • 71
7 votes
2 answers
12k views

18.04 - How to disable temporary/privacy IPv6 addresses?

I have 18.04 installed and I'm using it as jump box to reach other things. Some of the things I need to access are only reachable via IPv6 and expect me to connect from a specific IPv6 address so my ...
J Doe's user avatar
  • 71

1
2 3 4 5
21