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
55
votes
6answers
120k 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 ...
26
votes
1answer
22k 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 ...
15
votes
2answers
14k 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 ...
14
votes
4answers
13k 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. ...
13
votes
3answers
18k 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 ...
13
votes
10answers
35k 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 ...
12
votes
3answers
11k 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 -...
11
votes
1answer
15k views

How to setup of Raspberry Pi 3 onboard WiFi for Ubuntu Server 18.04?

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?", ...
11
votes
1answer
23k 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 ...
11
votes
1answer
24k 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
1answer
6k 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 ...
10
votes
4answers
24k 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" ...
10
votes
1answer
15k 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) ...
10
votes
1answer
5k 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
2answers
4k 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
1answer
14k 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/...
9
votes
0answers
2k 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 ...
8
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 ...
8
votes
1answer
2k 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 ...
8
votes
2answers
15k 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?
8
votes
4answers
6k 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-...
7
votes
4answers
8k 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 ...
7
votes
2answers
18k 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 ...
7
votes
0answers
92 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, ...
6
votes
2answers
14k 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 ...
6
votes
5answers
23k 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 ...
6
votes
2answers
3k 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....
6
votes
2answers
3k 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: ...
6
votes
1answer
13k 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....
6
votes
2answers
14k 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 ...
6
votes
1answer
4k 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 ...
5
votes
1answer
17k 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: ...
5
votes
2answers
29k 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: ...
5
votes
1answer
2k 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
1answer
782 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
4answers
15k 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 ...
5
votes
1answer
9k 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
3k 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 ...
5
votes
1answer
7k 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....
5
votes
1answer
13k 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 ...
5
votes
2answers
11k 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
1answer
1k 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
1answer
3k 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 ...
4
votes
2answers
17k 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
2answers
3k 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
4answers
34k 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-...
4
votes
1answer
29k 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, ...
4
votes
2answers
25k 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 ...
4
votes
2answers
11k 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. ...
4
votes
1answer
6k 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,...

1
2 3 4 5
11