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
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 ...
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 ...
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,...
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 ...
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. ...
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" ...
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 ...
2
votes
1answer
9k 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....
1
vote
1answer
514 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?
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 ...
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 ...
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 ...
1
vote
2answers
2k 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 ...
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-...
1
vote
2answers
8k 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: ...
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 ...
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....
0
votes
2answers
874 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://...
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 ...
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 ...
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 ...
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 ...
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 -...
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....
1
vote
3answers
2k 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/...
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 ...
1
vote
2answers
8k 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 ...
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 ...
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
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 ...
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
0answers
7k views

Disable IPv6 on Ubuntu 17.10 (Netplan) [duplicate]

I'm trying to disable IPv6 on all of the adapters on an Ubuntu 17.10 machine. I used to be able to do so (prior Ubuntu versions) by editing /etc/sysctl.d/99-sysctl.conf to add disable parameters as ...
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: ...
2
votes
0answers
271 views

ubuntu 18.04: not releasing old IPs from DHCP [duplicate]

We're running ubuntu 18.04, with the following configuration of netplan: network: version: 2 renderer: networkd ethernets: ens3: dhcp4: yes Currently we're running into an issue with ...
2
votes
1answer
915 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 ...
2
votes
1answer
1k views

Netplan-configured LXD host doesn't restore network config on reboot

I have 17.10 server with LXD installed via snap (2 containers). I've configured host to have static IP and let containers be accessible from LAN. My 01-netcfg.yaml in /etc/netplan: network: ...
2
votes
1answer
117 views

Is /etc/network/interfaces still working with newer Ubuntu?

I know newer Ubuntu are using Netplan to manage the network and it will replace the traditional /etc/network/interfaces way of network configuration. I have to configure some Ubuntu machines this ...
1
vote
1answer
6k 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 ...
1
vote
1answer
2k views

convert ip route add to netplan

I'm following an answer I found on Serverfault located here https://serverfault.com/a/487911/141509 I created the following routing table in rt_table 10 wlx74da388c32c7 Below is my full rt_table # ...
1
vote
3answers
619 views

Ubuntu 19.04 bind not resolving locally

Just trying the newest Ubuntu 19.04 and it has some differences with resolv.conf when running my own bind locally. Previously in 18.04 resolv.conf looks like this nameserver 127.0.0.1 nameserver 127....
1
vote
2answers
9k 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
0answers
1k views

netplan + WiFi: link is not ready (18.04 Server)

I'm trying 18.04 Server with this fancy new netplan and can't get my WiFi to work. Doing it the old-fashioned way (e.g. configuring wpa_supplicant.service and using dhclient), everything is fine. But ...
1
vote
0answers
2k views

Ubuntu server 18.04 - No IP address with Netplan

Background: Hardware: Thinkpad X301 In the installation of Ubuntu 18.04.1 Server (64-bit) the installation was stuck at the network setup portion of the installation. The network setup timed out and ...
0
votes
1answer
306 views

How to use netplan to do the same as was being done using iptables?

I am setting up a new server with 18.04 based on instructions written for 14.04. I have got as far as these steps: /sbin/iptables -A FORWARD -p tcp --destination-port 80 -j ACCEPT /sbin/iptables -t ...
0
votes
2answers
1k views

18.04 - does it force netplan or can I still use resolved.conf?

I kept getting timeout errors on 18.04 Bionic Beaver, until I switched to OpenDNS using these commands sudo rm -f /etc/resolv.conf sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf sudo ...
0
votes
1answer
2k views

Ubuntu 17.10 - OpenVPN TAP - Help

I am desperate at this point. I have been trying to configure a bridge networking on Ubuntu 17.10 and it has been hell. I can’t find any documents online to assist with install. All of the ones I have ...
0
votes
0answers
259 views

create a vlan bond with netplan fails to get ip

So i have a server with 2 nics which i linke to have a bond for redundancy. The switch only accepts vlans, so they need to be present. I created the following yaml: network: version: 2 renderer: ...
0
votes
2answers
975 views

Bond slave got IP-address from DHCP in Ubuntu 18.04

I setup up a bond with 2 devices in ubuntu 18.04. It looks like the bond0 is comming and i can ping it, but the physical interfaces got an IP-address from my DHCP-Server, too. IP-address of ...
0
votes
0answers
45 views

Ubuntu Server 18.04 is set to static IP and get also DHCP-Address

I had problems to setup up a bond, i decided now to use only on interface without bonding. But now i have 4 IPs on my two interfaces, 2x static and 2x DHCP. but it is configurated to only have the ...
0
votes
1answer
373 views

Second IP via DHCP. Why? [duplicate]

I have a secondary IP on my ens160 interface and I don't know why :) System is Ubuntu 17.10. Any hints where to dig here? 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN ...