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.

332 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
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 ...
9
votes
0answers
400 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, ...
4
votes
1answer
2k 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 ...
3
votes
1answer
2k views

Ubuntu 18.04.3: Windows Domain Join Guide

Good day. Over the last few days I have gone through every guide I could find for joining Ubuntu 18.04 to a windows domain. I have what I think is a working guide after much trial and error. Would ...
3
votes
1answer
7k 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....
3
votes
0answers
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....
3
votes
0answers
1k 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 ...
3
votes
2answers
6k 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/...
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 ...
3
votes
1answer
4k 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 ...
3
votes
0answers
1k 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 ...
3
votes
0answers
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: ...
3
votes
0answers
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: ...
3
votes
3answers
6k 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 ...
2
votes
1answer
488 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 ...
2
votes
1answer
2k 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. ...
2
votes
0answers
202 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 ...
2
votes
0answers
201 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 ...
2
votes
1answer
2k 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 ...
2
votes
0answers
369 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 ...
2
votes
1answer
688 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 /...
2
votes
1answer
1k 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 ...
2
votes
0answers
1k 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" ...
2
votes
0answers
1k 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 ...
2
votes
0answers
518 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: ...
2
votes
0answers
2k 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 ...
2
votes
0answers
284 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 ...
2
votes
2answers
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 ...
2
votes
2answers
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 ...
2
votes
1answer
394 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 ...
2
votes
0answers
4k 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 ...
2
votes
0answers
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 ...
2
votes
1answer
3k 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. ...
2
votes
0answers
898 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 ...
2
votes
1answer
1k 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. ...
2
votes
0answers
2k views

Setting up PPPoE wired connection in Ubuntu 18.04.1 Bionic Beaver (Desktop Version)

My ISP provides PPPoE connection with username, password and service name and binds my MAC Address. Since I have connected my router to the WAN, the MAC Address of the router has been bound in their ...
2
votes
0answers
146 views

Print netplan config

Does netplan have any options available for writing how it interprets its config files to stdout, an arbitrary directory, or something similar? The context for my question is that I'm updating a ...
2
votes
1answer
1k views

Netplan & samba-ad-dc

I'm running an active directory on Ubuntu 18.04. I previously had one on 16.04 and it ran fine; I'm just rebuilding it with the new version and streamlining some stuff. Anyway, it works, but not on ...
2
votes
1answer
2k views

Netplan renderers

I'm trying to locate the configuration files netplan creates on the back end (depending on the renderer used). Example: network: version: 2 renderer: **networkd** ethernets: ens160: ...
2
votes
2answers
4k views

netplan bridge: no connection to/from virtual machine

I'd like to setup a brigde on my host (Ubuntu 18.04 server) to get a connection to the internet from/to my virtual machine (also Ubuntu 18.04 server), both with netplan. The host is a dedicated ...
1
vote
1answer
44 views

Can't ping after adding secondary network interface in aws ec2

Ubuntu version 20.04. First we created a 2nd private IP on the only (primary) network interface. Both private IP addresses could be pinged. Now the instance has 2 private IP addresses, 1 public IP ...
1
vote
0answers
28 views

Netplan configuration issues

i have issue configuring netplan on a ubuntu machine i want to use as a router. i previously used a centos docker where the configuration was in /etc/network interfaces. I tried to translate it to ...
1
vote
0answers
46 views

Ubuntu 20.04.2…Bonded NICs as TRUNK interface…assign IP from a specific VLAN to the bonded NICs?

I am attempting to setup BONDED NICs (2x 10G). We have 6 total NICs, 4x 1G and 2x 10G, do not plan to use the 1G connections at this time. Looks like I have the NICs bonded (no errors in networkctl ...
1
vote
0answers
39 views

Questions about ap mode with netplan

I use Ubuntu Server 21.04 and Raspberry Pi CM4. I want to create an ap wifi, so I add the following to /etc/netplan/50-cloud-init.yaml: wifis: wlan0: dhcp4: no addresses: [192.168....
1
vote
2answers
852 views

Cockpit Software Updates - Loading available updates failed - Cannot refresh cache whilst offline

On a Ubuntu Server LTS 20.x, with renderer : networkd, LAN / WAN Connectivity are all properly fucntional. However in Cockpit > Software Updates, it gives the error message: Loading available ...
1
vote
0answers
67 views

netplan.io update left my vps without connection

Doing regular updates on my Ubuntu 20.04 LTS vps, one of them was netplan.io. After that upgraded, the rest of updates failed. This has apparently left my vps without connection. I cannot ping out or ...
1
vote
1answer
35 views

How to selectively alternate between DHCP and Static IP from Network Dialog, Ubuntu 20.04

I desire to be able to connect LapTop EtherNet port to either a DHCP router OR a static IP 3D Printer. I have a EtherNet connected 3D printer, to which I have a CAT5 cable directly connected between ...
1
vote
1answer
147 views

Making Ubuntu 20.04 into a Router: something keeps adding default route for the lan interface

I have read a lot about NetPlan - it sounds awesome compared to the old interfaces file... But everything I've tried generates a default route to the lan interface - (which disables access to the ...
1
vote
1answer
742 views

Invalid YAML: Aliases are not suported

I'm getting this error with network manager 12:1: Invalid YAML: Aliases are not supported This is the YAML file: How can I solve this?
1
vote
0answers
90 views

Netplan static route

I have IP X/31 and gateway Y and would like to add following route to interface eno1: ip route add Y dev eno1 ip route add default via Y How can I do that with netplan?

1
2 3 4 5
7