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
0 votes
0 answers
48 views

How to effectively to set a global static ipv6 by `addr-gen-mode=eui64`?

I see there are a lot of questions about static ipv6, and privacy (like here, here, here, here and here), and I believe I have tried most of the available solutions (or at least those I was able to ...
1 vote
1 answer
79 views
+50

Netplan does not add the interface to the bridge as defined

I'm using a Ubuntu 22.04.3 (Ubuntu Server) with KVM installed on a mini computer with two physical NICs. I want to take the second physical NIC and apply it to a bridge so the KVM virtual machines can ...
0 votes
2 answers
64 views

"A start job is running for Wait for Network to be configured" during boot on 22.04 desktop

This is 22.04 running on a raspberry pi 4b, desktop, not a server,vm, etc. Just a simple desktop. It has been running for over a year just fine, but after an update about a month ago, now I get the ...
0 votes
1 answer
42 views

Resolv.conf is out of control

I have tried God knows how many ways to resolve this and get it under control, but, it doesnt seem to take. I only want the single nameserver in there as 10.0.0.8. Can someone please help. I have ...
0 votes
0 answers
27 views

Configure .yaml for IP Aliasing

I need some help to configure .yaml file on my ubuntu server 22.04. In particular I need to configure the .yaml for a IP Aliasing cause my server has only 1 NIC but I need 2 subnets. Example: Subnet1:...
4 votes
1 answer
142 views

ifupdown-wait-online.service (even if disabed) / xfce takes 5 mins to load

I'm using Ubuntu 22.04 right now and ifupdown-wait-online.service takes 5 mins to load,as well as xfce. I gave a : # systemd-analyze blame and this is the result ; is exactly like I've thought : ...
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 ...
0 votes
0 answers
20 views

Unable to bind MAC Address with interfaces in ubuntu

I am running Ubuntu 20.04 on an AWS environment. While trying to bind MAC Address to interfaces in netplan YAML file. The changes are not working as expected. I followed the following configuration, ...
0 votes
1 answer
38 views

Something adds routes with metric being consecutive integers starting from 201

My home router is connected to the WLAN with enp2s0 and to the internal LAN with enp3s0 (192.168.10.0/24). After migration from Ubuntu 18.04 to Ubuntu 20.04 (done last week) something keeps adding and ...
0 votes
0 answers
70 views

Ubuntu 22.04 docker failure in name resolution after moving homes

after moving homes i can't connect to the internet (local and outside) my ubuntu server with docker and home assistant installed. I didn't change anything inside the server, just was offline for like ...
0 votes
1 answer
3k views

How to setup static IP with wireless interface and netplan on ubuntu 22.04?

I am trying to setup a static ip for a ubuntu server 22.04 instance on a laptop. I though I am going to do that by modifying netplan configuration. IP of router is 192.168.80.32 netplan config file is ...
1 vote
2 answers
31 views

Netplan apply causes interfaces to go down temporarily

I have an IP on interface ens160 ( 10.209.70.147 ) which is up and responding to traffic. Then I add another interface eth0 in "connected state" from vmware console and add another IP ( 10....
0 votes
1 answer
119 views

How to check netplan version?

I cannot find the way how to check which release of Netplan runs on my Ubuntu 22.04. There is a new release, which I would need, but I'm pretty new to Linux and do not know how to upgrade it. It's not ...
2 votes
1 answer
4k 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: ...
0 votes
1 answer
55 views

Is there a way to add custom config to rendered network config, in netplan

I'd like to use an option in networkd which is not available in Netplan. In good time this can be implemented, probably. Until that time, is there a way to achieve custom network code such that my ...
0 votes
1 answer
10k views

Raspberry Pi static IP & DHCP Server Ubuntu 18.04

I'm trying to configure my Raspberry Pi 4B running Ubuntu 18.04 with a static IP address (to then configure a DHCP server) and use the WiFi for internet traffic (routing any clients connecting to the ...
0 votes
0 answers
26 views

Are netplan configuration evaluated dynamically?

When applying a netplan configuration, is the configuration evaluated dynamically? For example will match keywords generate a static interface at apply time or will it be evaluated continously so that ...
0 votes
0 answers
61 views

Associate Loopback interface with VRF

I have multiple VRFs in netplan and each of them has an associated physical interface. Beside this I need Loopback interfaces with different /32 IP addresses and I would like to bind them to specific ...
0 votes
0 answers
25 views

Netplan 2 Interfaces, same IP Load Balance?

Is there a way to load balance with netplan between 2 interfaces that have the same IPs in my machine? My current configuration is like this: network: version: 2 renderer: networkd ethernets: ...
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. ...
0 votes
1 answer
64 views

How to set Ubuntu 2 interface to LAN and Proxy Internet

I have 2 interface ens3-192.168.100.10 and ens8-10.100.0.10. Both get via dhcp. ens3 is for lan access and ens8 is for proxy to internet and to run apt update. Problem is now I have to 2 default ...
1 vote
0 answers
38 views

Start of Networks brings "Permission denied"

I have made some changes to my kvm server. Some machines were installed and a DNS server was set up. Suddenly during the boot process some messages appear and the network does not start. blkmapd[726]: ...
1 vote
1 answer
6k views

Ubuntu 20.04 KVM, netplan with bonding, vlan and bridges

I am preparing migration of an UBUNTU 16.04.7 server with 5 NIC's to 20.04. My testing server has 4 NIC's: 2 onboard and 2 as Intel Pro NIC. Configured in 00-installer-config.yaml. The first NIC is ...
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 ...
2 votes
2 answers
12k 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 ] ...
1 vote
1 answer
61 views

Proper Netplan configuration for dual nic dhcp/static IP setup

I am having trouble getting a good mental map of how to configure netplan for a common network setup we are seeing. Two network interfaces Network interface A, connected to the internet on 10.0.1.40/...
0 votes
1 answer
60 views

Ubuntu 20.04 with two NIC, but only one works

As the title says, I have a system running Ubuntu 20.04 with two NICs.One NIC (ens9) is connected to the cameras (via a switch) and the other (ens4) is connected to a LiDAR. I am running a DHCP server ...
4 votes
2 answers
1k views

Set up Wi-Fi country/regulatory domain with Netplan-generated wpa_supplicant conf

My current /etc/netplan/wifi.yaml looks like this: network: version: 2 renderer: networkd wifis: wlan0: dhcp4: yes optional: true access-points: "myssid": ...
2 votes
0 answers
108 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 ...
0 votes
1 answer
4k views

Disable dhcp4 on ubuntu 19.10?

I am running ubuntu server 19.10 on a raspberry pi. My pi is connected to a wifi router and to an ethernet switch, with interface names wlan0 and eth0 respectively. I want to create a static ip ...
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....
1 vote
2 answers
156 views

how to wirte a multiline text including space key to "late-commands" section in cloud-init "user-data" file

i am trying to write a user-data file so i could deploy many ubuntu server at the same time. but now i am stuck at the late-commands section. i am trying to add a netplan configuration to 01-network-...
2 votes
2 answers
5k 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 ...
0 votes
0 answers
27 views

How to properly set up a KVM bridge?

I had a big problem, no matter how I set up the bridge for KVM, the network constantly drops until I return everything as it was. I don't know what I'm doing wrong, so I'm turning to you. I tried ...
0 votes
3 answers
8k views

Configure two ethernet interface on Ubuntu

I'm trying to configure two Ethernet connections on the same computer running on Ubuntu but every attempts that I have made doesn't allow me to enable both Ethernet connections at the same time and I ...
1 vote
1 answer
255 views

Ubuntu Server on Pi: Does cloud-init re-run every boot?

I installed the official Ubuntu Server 22.04 image on a Raspberry Pi 4. I also configured my wireless network in the network-config file on the SD card. That file gets transformed by cloud-init into /...
0 votes
0 answers
1k views

static IPs and netplan

I am trying to create static IP addresses in Ubuntu. I have studied posts, etc. and see that this info is /etc/network/interfaces. I noticed that the ethernet name, for instance is not consistent: ...
28 votes
3 answers
57k 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?
0 votes
1 answer
94 views

'A start job is running for wait for network to be configured'. optional:true skips this but breaks some docker containers

I have been running an Ubuntu Server for a while now. Recently, my router stopped "sending internet" to the devices connect via LAN, which includes my Ubuntu Server. The server is running on ...
1 vote
1 answer
2k views

networkd status - wlp1s0: Could not join netdev: Operation not supported

I'm struggling on using the wlan on a server 18.04. this is my 01-netcfg.yaml: network: version: 2 renderer: networkd ethernets: enp2s0: dhcp4: yes optional: true enp3s0: ...
0 votes
1 answer
26 views

Configure Default route metric on multiple network cards

My network setup looks like this: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet ...
0 votes
1 answer
5k views

How to use DHCP on multiple VLANs on a single interface with netplan?

In my current network topology I have multiple VLANs - each of which has it's own routing: VLAN 10: DHCP: 10.0.10.10-10.0.10.255 Subnet: 255.255.255.0 Gateway: 10.0.10.1 VLAN 11 DHCP: ...
1 vote
1 answer
6k views

Ubuntu 20.04 add static route

I have two virtual Servers with ubuntu 20.04, both are working so far. But my problem is, that Server1 can not ping Server2 and vice versa. I get the error 'Destination Host Unreachable'. This is with ...
1 vote
1 answer
4k views

Ubuntu server network auto configuration failed

I am trying to install ubuntu server 18.04 inside proxmox. At the network configuration page, ubuntu complains that autoconfiguration failed and gives me the choice to continue without networking. The ...
0 votes
0 answers
60 views

PBR routing doesn't work on Ubuntu 22.04 Server

I'm attempting to configure my server, but it's proving to be impossible. Thus, you are my last hope! To provide some context, my virtual server (Ubuntu 22.04 server TLS) has 3 network devices ...
0 votes
0 answers
59 views

Netplan support for configuring an interface's VLAN inside bridge

I have a linux bridge set up with some VMs/containers, as well as one or more physical interfaces. The goal is for container interfaces to run on different VLANs, with the uplink connections (managed ...
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/...
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 ...
13 votes
2 answers
52k views

Netplan - gateway has been deprecated

I newly installed Ubuntu 22.04 and configured netplan like this: network: version: 2 ethernets: ens18: addresses: - 10.10.0.101/24 - 2009:470:1099:...
2 votes
2 answers
29k views

Bonding / Ubuntu 20.04

I recently installed Ubuntu 20.04 on a VM with 2 ethernet ports. I'm trying to bond those 2 ethernet ports, but I can't find the right way. For example, someone says without netplan, others with ...

1
2 3 4 5
20