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.
1,039
questions
76
votes
7
answers
220k
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 ...
37
votes
2
answers
133k
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 ...
36
votes
3
answers
77k
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?
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 ...
30
votes
3
answers
40k
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 ...
29
votes
1
answer
54k
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) ...
26
votes
11
answers
85k
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
...
19
votes
3
answers
31k
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 -...
19
votes
1
answer
75k
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 ...
19
votes
4
answers
41k
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 ...
18
votes
2
answers
88k
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:...
18
votes
5
answers
96k
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 ...
17
votes
3
answers
39k
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?", ...
17
votes
4
answers
29k
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
...
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.
...
16
votes
6
answers
83k
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,...
16
votes
1
answer
65k
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:
...
14
votes
2
answers
10k
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....
13
votes
2
answers
23k
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 ...
12
votes
3
answers
43k
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
...
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/...
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"
...
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 ...
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 ...
11
votes
2
answers
18k
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:
...
11
votes
3
answers
35k
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:
...
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 - ...
11
votes
1
answer
5k
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, ...
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 ...
10
votes
1
answer
94k
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, ...
10
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 ...
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 ...
10
votes
2
answers
26k
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 ...
10
votes
2
answers
22k
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:
...
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 ...
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....
10
votes
1
answer
14k
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 ...
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-...
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-...
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 ...
8
votes
8
answers
26k
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 ...
8
votes
1
answer
37k
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 ...
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....
8
votes
2
answers
79k
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 ...
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 /...
7
votes
6
answers
23k
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: ...
7
votes
6
answers
142k
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-...
7
votes
3
answers
31k
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 ...
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 ...
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 ...