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
34
votes
6answers
63k 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 ...
16
votes
1answer
14k 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 ...
11
votes
8answers
18k 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
3answers
8k 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. ...
9
votes
2answers
6k 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 -...
9
votes
3answers
10k 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 ...
9
votes
2answers
2k 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 ...
8
votes
1answer
13k 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 - ...
7
votes
2answers
5k 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 ...
7
votes
3answers
18k 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" ...
7
votes
1answer
12k 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 ...
7
votes
1answer
9k 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/...
7
votes
0answers
1k views

Ubuntu 18.04.2 LTS server - network configuration problem during setup

Has anyone had the same problem? 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 ...
6
votes
1answer
1k 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
4answers
3k 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-...
6
votes
1answer
3k 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 ...
5
votes
1answer
907 views

netplan gateway6 seems to have no effect

I'm trying to configure static IPv6 with netplan on a cloud server (public cloud from OVH) running Ubuntu 18.04 I have created a /etc/netplan/66-ipv6.yaml yaml file in addition to the existing /etc/...
5
votes
2answers
10k views

Add second IP-address to interface in 17.10

How do I add a second IP-address in Ubuntu 17.10 like the old days where you could add eth0:1, eth0:2 etc. I've tried but lots of commands have been deprecated like ifup, ifdown etc. and the network ...
5
votes
1answer
299 views

Malformed Address '10.10.21.08/24', must be X.X.X.X/NN or

I am trying to set a static IP for my ubuntu server by creating a yaml file on /etc/netplan/ as follows: network: version: 2 renderer: networkd ethernets: enp0s3: ...
5
votes
2answers
3k 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 ...
5
votes
1answer
820 views

/etc/network/interfaces and ifup/ifdown still present. Why?

netplan is now the default network configurator on 18.04 But on a freshly installed 18.04 system, I am still finding /etc/network stuff with interfaces file and other directories. the ifup/ifdown ...
5
votes
2answers
12k 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 ...
4
votes
1answer
10k 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: ...
4
votes
2answers
2k 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-...
4
votes
1answer
4k 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,...
4
votes
1answer
7k views

NetPlan Static IP address not acceptiing

Trying to setup Static IP and it will not work. IP address 192.168.100.40 pre 17.10 and netplan config as follows auto ens160 iface ens160 inet static address 192.168.100.45 netmask 255.255.252.0 ...
4
votes
4answers
4k 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 ...
4
votes
1answer
7k 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?
4
votes
1answer
6k 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 ...
4
votes
1answer
5k 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 ...
4
votes
2answers
702 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 ...
4
votes
2answers
2k 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: ...
4
votes
1answer
5k views

Configuration of a bridge with a static IP with the netplan to be used with linux container

Summary: how to configure the netplan on a host machine to create a bridge (with a static IP address) that would be used on guest virtual machine (shall be accessible from a local lan). I am using ...
4
votes
1answer
2k views

Can “netplan” be used with OpenVPN

I'm using Kubuntu 17.10, and use OpenVPN to connect to my corporate network. Since Ubuntu moved over to the new "netplan" way of doing network related things, I have found that several things in ...
3
votes
2answers
7k 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 ...
3
votes
2answers
7k views

netplan: nameservers in netplan yaml. What effect?

What is the effect of the nameservers/addresses field in the yaml configuration file? Any application I've tried uses the /etc/resolv.conf nameservers. This happens even with resolvconf stopped. ...
3
votes
2answers
20k views

Netplan error, error on nameserver

I'm trying to setup a Ubuntu server and running in to a problem setting up a static IP. My OS is as below: Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: 17.10 Codename: ...
3
votes
2answers
10k 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
1answer
2k 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 ...
3
votes
1answer
525 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....
3
votes
1answer
3k views

Ubuntu 18.04 fails to start network, netplan DHCP configuration

Netplan configured for DHCP on interface ens160: more /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ethernets: ens160: dhcp4: yes When executing netplan restart ...
3
votes
3answers
10k views

Adding DNS servers to Ubuntu 18.04

There is no less than 3 different ways to add DNS servers posted all over the internet. I have been reading netplan documentation and am I still not clear on how to add dns servers to a laptop. I am ...
3
votes
2answers
14k views

Netplan bridge for KVM on Ubuntu Server 18.04 with static ips

I set up my first ubuntu server recently and I am struggeling with netplan. As I need a Windows to run one service which isnt available on linux, I try to set up KVM. The server has serveral static ...
3
votes
1answer
2k 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....
3
votes
1answer
1k 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 ...
3
votes
1answer
3k views

Netplan Generate generates nothing

Just did a sudo netplan generate to add a new yaml file. It was not created. Even doing it as root it failed. forge@app-webserver-1:~$ sudo netplan generate [sudo] password for forge: forge@app-...
3
votes
1answer
4k 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
0answers
674 views

Ubuntu Bionic Server edition + Netplan: Not getting static IP on a ethernet connection

Problem: I cannot get a static IP on the ethernet port. Aim: Trying to setup a static IP on the Realtek built-in ethernet (enp3s0) port so I can connect the server to my desktop via a crossover cable....
3
votes
1answer
6k views

Correct way to route between 2 interfaces with netplan in Ubuntu 18.04

Problem and Network Configuration I am currently trying to allow communication between two interfaces, each with their own subnet, in Ubuntu 18.04 server using netplan but I am having a difficult ...
3
votes
0answers
398 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 ...