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.

471 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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-...
anodhi's user avatar
  • 101
5 votes
0 answers
3k views

How to change NIC settings (ethtool settings) via netplan?

https://netplan.io/design requirements section includes "ethtool settings", but that is the only mention of ethtool on the netplan web site Based on the hint in netplan.io/faq, I put the "ethtool -G" ...
Aleksey Tsalolikhin's user avatar
4 votes
1 answer
5k views

Ubuntu 18 Server GRE tunnel with netplan?

How do I create a GRE tunnel with netplan? Previously in /etc/network/interfaces, I would do.. iface gr0 inet manual pre-up ip tunnel add gr0 mode gre remote 10.10.10.10 local 10.20.10.10 dev ens33 ...
adilias3's user avatar
4 votes
0 answers
2k views

Server 18.04: netplan, avahi and DHCP combination

For a long time now I have been looking for a means to replicate Window's IPv4 assignment behaviour. That is, first try DHCP and on failure switch to link-local addressing. So far I failed to find ...
Nathilion's user avatar
  • 153
4 votes
2 answers
4k views

Bridging LAN and WIFI using netplan not working and killing AP

I'm trying to extend my local LAN network via WiFi and would like all devices in the same network. The setup is as follows: DHCP/DNS server running inside the LAN separate PC linked to the LAN, with ...
M.Toppin's user avatar
3 votes
0 answers
496 views

Ubuntu 22.04 Server losing dns at random

It happens at random, could be a day could be 2 weeks. Boot up the server everything is fine. After a random time I'm unable to resolve any web addresses. Checking the server I get the following. ...
SpaceBallz's user avatar
3 votes
1 answer
3k views

netplan how to set hostname via option 12

I run Ubuntu 20.04 based from the cloudimage... so netplan has its 50-cloud-init.yaml which just says .. use dhcp In the background it uses systemd-networkd as backoffice But how can I advise ubuntu ...
stackelk's user avatar
3 votes
2 answers
4k views

Define hostapd configuration settings on netplan

I recently discovered that netplan can manage hostapd accesspoints, but this is the extent of the example config: wlp1s0: access-points: "guest": mode: ap # no ...
Oxwivi's user avatar
  • 17.6k
3 votes
1 answer
14k views

netplan error, unknown key nameservers

I have an error, but not a spelling error. Here is my netplan config: network: ethernets: ens32: addresses: [172.16.120.74/16] nameservers: addresses: [127.0.0.53, 172.16.1....
user10834390's user avatar
3 votes
0 answers
3k 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 ...
HrzM's user avatar
  • 39
3 votes
0 answers
375 views

Ubuntu 18.04: Host name changes spontaneously from FQDN to PQDN in DNS

We are running Ubuntu 18.04 LTS with networking configured by Netplan. The network has a Windows DHCP server and a Windows DNS server. The Ubuntu 18.04 machine uses this Netplan cfg file to obtain a ...
DavidA's user avatar
  • 181
3 votes
2 answers
3k views

netplan default gateway / route Internet traffic to WiFi

I need help with a (simple) network configuration with netplan. It is very simple, I have 2 NICs: enp5s0 is ethernet and give access to the company network, and wlp4s0 is WiFi and give access to ...
njames's user avatar
  • 130
3 votes
0 answers
2k 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....
mrjayviper's user avatar
  • 1,535
3 votes
0 answers
2k views

Netplan wireless bridge Ubuntu 18

I am trying to create a bridge for my wireless NIC (wlp4s0) with the intention to provide direct access to it from a KVM. I also intend to share the ethernet NIC the same way, but am only having ...
failsafe's user avatar
3 votes
1 answer
2k views

How can I override netplan's per-interface nameservers, rather than appending to them?

I have an DigitalOcean server that's being configured via cloud-init. With Ubuntu Bionic Beaver, this creates a netplan file in /etc/netplan/50-cloud-init.yaml that contains nameserver addresses. ...
CodeGnome's user avatar
  • 240
3 votes
2 answers
9k views

How to add static route with preferred source via Netplan in 18.04?

I want to use loopback alias IP for all outcome IP traffic from my Ubuntu server directed to some subnets. In /etc/network/interfaces that can be done by post-up statement with something like: /sbin/...
user1227888's user avatar
3 votes
1 answer
3k 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 ...
guhur's user avatar
  • 131
3 votes
0 answers
2k views

Network setup with Netplan and bridges

I'm having an issue where any bridge I create with netplan doesn't get an address. The following starts my NIC and I get a DHCP address: network: version: 2 ethernets: enp0s3: ...
DemomanCA's user avatar
3 votes
0 answers
6k views

netplan bridge for one static interface not working

I have a static ip address for interface eno1 which should become a bridge for kvm/qemu. My netplan configuration (Ubuntu 18.04) for the static ip looks like this and is working: network: version: ...
Alexander's user avatar
3 votes
3 answers
9k views

How to get Asus XG-C100C 10G ethernet card working on Ubuntu 18.04

Is there anything you need to do to get this network card working in 18.04? It was working fine in 16.04 with the “atlantic” driver built from sources provided by Asus. After upgrading to 18.04, I can ...
Musaul's user avatar
  • 131
2 votes
0 answers
102 views

Ubuntu server 23.04 netplan cloud-init python error

I've tried to find a solution and an answer myself before but didn't succeed. I recently changed my wi-fi SSID and thus had to reflect that change in my ubuntu server configs. On the raspi 4 ...
verypacific's user avatar
2 votes
1 answer
96 views

My Ubuntu client says that the wired connection is unmanaged

This is what is showing when I look at the wired management. I don't know what I did that it's showing all of these and I can no longer access the internet.
Smokechief's user avatar
2 votes
0 answers
71 views

netplan is not concatenating addresses on separate YAML files

I am trying to set up an additional address in an ethernet interface using netplan. The man page for netplan-generate mentions that the sequences for the same key configuration should be concatenated ,...
PySerial Killer's user avatar
2 votes
0 answers
44 views

Error on raid 0 when modifying the 00-network-manager-all.yaml file

I was making a change via SSH connection on 00-network-manager-all.yaml file on an Ubuntu Server 18.04 which is hosted on a three disk RAID0. While making the change and executing the command sudo ...
Lucas Del Negro's user avatar
2 votes
0 answers
1k views

cannot connect to wwan0 interface

apologies in advance if this is a stupid question. so i am trying to setup a network connection to my 4g modem using netplan like: network: version: 2 renderer: networkd ethernets: ...
Neville's user avatar
  • 21
2 votes
0 answers
322 views

Netplan adding unwanted default route

I am having one Ubuntu 18.04 server with 2 NIC card. One is for Public network & another is for Private. Both have been assigned static IP Address via Netplan. network: version: 2 renderer: ...
Rituparno Bhattacharya's user avatar
2 votes
1 answer
5k views

Can't execute `netplan apply` command in Ubuntu 20.04 LTS

The command netplan apply returns some errors when I execute it as root user. root@szyf1272:/etc/netplan# netplan apply System has not been booted with systemd as init system (PID 1). Can't operate. ...
LeonardoEzio's user avatar
2 votes
0 answers
815 views

netplan doesn't support loopback routes eg: ip route add local default dev lo table 100

I need to route everything with mark 1 to loopback address. With ip rule add fwmark 1 table 100 and ip route add local default dev lo table 100 It works fine. But I want to make it permanent with ...
netplannightmare's user avatar
2 votes
0 answers
753 views

Online account can't be added

I wanted to add my work calendar to my home system running Ubuntu 20.04 with Gnome and I get a message indicating there is "no internet connection - connect to set up new online accounts". I'...
Jarad Downing's user avatar
2 votes
0 answers
864 views

Ubuntu Server 20.04 netplan Static IPs dropped after disconnecting

I am setting static IP addresses for multiple ethernet ports on a machine using netplan. They work until a cable gets disconnected and then reconnected. When I pull a cable and plug it back in I don't ...
SlimCheney's user avatar
2 votes
0 answers
842 views

Trouble with Ubuntu 18.04 netplan bridge on hetzner server

i need some help with an hetzner server, netplan and a network-bridge.. I want do setup an kvm under my ubuntu 18.04 hetzner server, who is reachable from outside. So i need a network-bridge. So i ...
NETFLOX's user avatar
  • 125
2 votes
2 answers
4k views

Can't get networkd-dispatcher scripts working

I need to disable offloading on my Kubernetes host persistently due to various bugs. I followed the guide here: https://michael.mulqueen.me.uk/2018/08/disable-offloading-netplan-ubuntu/ but the script ...
Brett Jenkins's user avatar
2 votes
0 answers
375 views

Netplan configurations stop working after some time

I have this Ubuntu Server 18.04 LTS running and recently I changed my router subnet to 10.10.1.X. Also, I set DHCP to assign from 10.10.1.105 - 10.10.1.253 to other devices, since I want 100,101,102 ...
12tst321's user avatar
2 votes
1 answer
4k views

How to troubleshoot network problems for virtual machines connected via a bridge (Ubuntu 18.04)

On my server (Ubuntu 18.04 LTS) I am running a KVM virtual machine which has been running fine for over a year or so but recently - probably because of some update - the virtual machine would lose ...
Christoph's user avatar
  • 151
2 votes
1 answer
322 views

IPv6 source address selection with addrlabel (or similar) with netplan (or similar)

I have using something similar to How to enforce IPv6 source address selection with addrlabel at startup? to configure IPv6 address selection in Ubuntu 16.04. Now I am deploying Ubuntu 18.04 and the ...
jcea's user avatar
  • 121
2 votes
0 answers
633 views

Ubuntu server 19.04 - share internet over ethernet

I have small nettop with Ubuntu Server 19.04 on it. On one side, a USB modem is connected (Huawei e5785) with network interface eth_lte. On other side ens2 - 5-port switch where are several computers ...
Digital God's user avatar
2 votes
1 answer
832 views

Add new IP addresses in Ubuntu Server 18.04.1 LTS

I need to add new IP addresses to my server which runs Ubuntu 18.04.1 LTS, then I realised that Ubuntu 18.04 changed network configuration to use netplan. I read that all configurations are under /...
eerrzz's user avatar
  • 21
2 votes
1 answer
3k views

Ubuntu Server 18.04 — Use nmcli to (only) discover wifi networks but don’t interfere with netplan and networkd

Ubuntu Server 18.04 now uses netplan to manage ethernet and wifi devices. I’d like to be able to discover wifi networks via nmcli, as I’d like to use php-wifi in one projects. Is it somehow possible ...
fooness's user avatar
  • 21
2 votes
0 answers
2k views

Ubuntu 18.04 - why netplan still adds DHCP address?

I'm using Ubuntu 18.04. I added a new NIC (network interface card) to the box and I disabled the old one in BIOS. This is obviously required to amend a configuration. I just simply swapped eth0 with ...
Adam An's user avatar
  • 21
2 votes
0 answers
871 views

Netplan - Multiple Nic config

I have a netplan config as follows on fresh install of 18.04: network: version: 2 renderer: networkd ethernets: ens224: addresses: [192.168.10.10/24] nameservers: ...
Jamie's user avatar
  • 121
2 votes
0 answers
875 views

DNS no longer working after Ubuntu-Desktop installed

I built a Ubuntu Server 18.04 server to play with Docker and a few other things. When I initially installed Server I had some issues with Netplan and getting DNS (my own server) to work, but I go ...
neildeadman's user avatar
2 votes
2 answers
5k views

bond0: interface ens192 is not defined

I installed ubuntu 18.04, I trying to configure bond interface network: bonds: bond0: addresses: [10.11.6.119/24] gateway4: 10.11.6.1 nameservers: ...
Ayrat's user avatar
  • 21
2 votes
2 answers
3k views

Port 53 use by Netplan

I like working with Ubuntu but today I have a problem. With 18.04 LTS arrived Netplan and systemd-resolve. I want to deploy CoreDNS on a 18.04 server. If Netplan is the future then I would like to ...
user1691247's user avatar
2 votes
2 answers
1k views

Routing IP addresses in Ubuntu 18.04

I have been scratching my head about this all day. Basically, I have several servers on a private network, each with a private IPv6 address assigned and a public IPv4 and IPv6 assigned. I want the ...
matty0501's user avatar
2 votes
2 answers
11k views

UBUNTU 18.04 Server: multiple netplan route-policy rules, but only one works

UBUNTU SERVER 18.04 LTS with 2 GE NICs eno1: 172.22.1.1/20 eno2: 10.11.1.34/30 netplan yaml: network: version: 2 renderer: networkd ethernets: eno1: addresses: [ 172.22.1.1/20 ] ...
TerryR01's user avatar
  • 441
2 votes
1 answer
607 views

Find out netplan duid before starting the system

is there a way to find out the duid netplan is using to request the dhcp lease before starting the system. Can it be calculated or triggered from outside? Use case: Before netplan, I used the ...
catsem's user avatar
  • 21
2 votes
0 answers
5k views

Netplan - Bridging over a bond on Ubuntu 18.04 KVM host

Sorry in advance for the long post, this has been rattling me days. I've got a server with 4 NIC (eno1, eno2, eno3, eno4). I'm trying to establish the following setup: Host - Ubuntu Server 18.04 ...
cworner1's user avatar
  • 123
2 votes
0 answers
1k views

How do I configure Kickstart network settings with Ubuntu 18.04?

I saw that in Ubuntu Server versions 16.04 and prior, there used to be a way to auto-configure the SystemV networking part of the Ubuntu OS in unattended installs via Kickstart files. However it seems ...
xorLogic's user avatar
  • 121
2 votes
1 answer
6k views

How to route IP net to interface using netplan

The VLAN of eth0 holds 2 IP nets, from the machine with IP 10.64.0.101/27 (eth0@machine-1) I used to connect to the openVPN server at 10.0.0.41/27 (eth0@machine-2) with the IP range 192.168.0.0/24. ...
maniac_on_moon's user avatar
2 votes
0 answers
1k views

Port Forwarding Ubuntu Server 18.04 with netplan and ufw I have a server with 2 network interfaces

I have an Ubuntu server 18.04 with 2 network interfaces. enp1s0 has ip address 192.168.0.1/24 enp2s0 is connected to DHCP I am looking to forward port 8080 from any incoming traffic connected to ...
Mike Schmidt's user avatar

1
2 3 4 5
10