People who code: we want your input. Take the Survey

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
61
votes
7answers
156k 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 ...
9
votes
2answers
6k 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 ...
4
votes
1answer
7k 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,...
29
votes
1answer
26k 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 ...
13
votes
1answer
33k 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 ...
14
votes
4answers
16k 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. ...
10
votes
4answers
26k 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" ...
15
votes
10answers
50k 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 ...
10
votes
1answer
3k 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 ...
6
votes
5answers
34k 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 ...
13
votes
1answer
27k 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) ...
17
votes
3answers
26k 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 ...
8
votes
1answer
16k 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....
4
votes
2answers
4k 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?
1
vote
1answer
257 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 NetworkManager tray icon/nm-...
3
votes
1answer
3k 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 ...
10
votes
2answers
5k 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 ...
11
votes
1answer
28k 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 - ...
6
votes
2answers
5k 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-...
10
votes
4answers
12k 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 ...
2
votes
2answers
4k 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 ...
1
vote
3answers
7k 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/...
9
votes
2answers
24k 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: ...
8
votes
1answer
11k 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 ...
5
votes
2answers
5k 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 ...
2
votes
1answer
14k 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 ...
2
votes
2answers
14k 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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
4k 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....
2
votes
2answers
4k 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. ...
2
votes
1answer
645 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 ...
2
votes
2answers
19k 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 ...
1
vote
2answers
3k 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 ...
1
vote
3answers
4k 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://...
0
votes
1answer
2k views

Netplan - Ethernet when available, wifi when not. Reconnect if needed

Note: this question has changed while investigating problem to stay up to date. Note 2: This question is invalid, the described problem is gone. Askubuntu prevents me from deleting it. Here is my /...
0
votes
1answer
353 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 ...
0
votes
1answer
5k 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 ...
0
votes
1answer
932 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 ...
10
votes
1answer
7k 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 ...
9
votes
1answer
26k 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: ...
9
votes
2answers
28k 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 ...
15
votes
2answers
26k 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?", ...
7
votes
2answers
16k 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 ...
5
votes
2answers
25k views

Ubuntu 18.04 Network card with two IP addresses

I would like to learn how to setup my network card with two IP addresses I tried as bellow, but now network: version: 2 renderer: NetworkManager ethernets: enp0s3: dhcp4: no ...
3
votes
6answers
9k 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: ...
21
votes
2answers
21k 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 ...
16
votes
3answers
16k 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 -...
7
votes
1answer
10k 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....
3
votes
1answer
11k views

Ubuntu 18.04 SERVER VPS on failover IP OVH

I am new into Ubuntu 18.04 and I am trying to make my VPS hosted on dedicated server (VMware) working, I tried the automatic network setup during install, but I got an subnet error, because IP and ...
3
votes
1answer
1k views

Share Internet to Ethernet network from wireless connections with netplan

A computer 1 (on Ubuntu server 18.04) is connected through wireless to an access point and through Ethernet to a switch. A computer 2 (resp. 3) is connected to 1 through the switch (resp. the wireless ...