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
13 views

Error in network definition: expected sequence switchports - What does that mean?

Running Ubuntu 22.04 and QEMU/KVM, I currently experimenting with QEMU/KVM guests OpenWrt and Windows 10, which can see each other over an empty bridge. The Windows 10 guest has three virtual NICs, ...
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 ...
0 votes
2 answers
48 views

Help with netplan and 2 LANs on Server v22.04

I'm running Ubuntu server v22.04 with 2 NICs - one facing the ISP and one facing the local LAN and is intended to be a media server for the local LAN and the interface between the LAN and WAN. The ...
0 votes
0 answers
24 views

Cloned Ubuntu VMs in vSphere get same IP, despite resetting /etc/machine && /var/lib/dbus/machine-id

vSphere 7.0 + Ubuntu 18 / 20 (tried both) I am trying the steps from this blog post: https://blah.cloud/kubernetes/creating-an-ubuntu-18-04-lts-cloud-image-for-cloning-on-vmware/ I also tried this ...
0 votes
0 answers
38 views

Translating RedHat network settings to Netplan (Ubuntu 22.04)

Update: It seems it was an issue with the load balancer settings. It is now working with the configuration I show below. Question: I need to translate these instructions for RedHat into netplan ...
2 votes
1 answer
3k 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. ...
0 votes
1 answer
4k views

Setting up multiple network interfaces with netplan for a LAN and a direct connection

I am new to netplan and advanced linux networking in general so I am hoping someone might be able to help me figure out my problem. I have two machines, an unraid nas and an ubuntu 18.04 server. Each ...
11 votes
5 answers
53k views

DNS issues after upgrading to 20.04

After upgrading to 20.04, both my wired and wireless networking lost access to the internet. I confirmed my drivers were working when I was able to resolve a ping to the Google nameserver 8.8.8.8. Now,...
0 votes
2 answers
405 views

Fail to up interface wlan0 in ubuntu server 22.04 Raspberry Pi

Im having issues after installing ubuntu server 22.04 on raspberry pi 4 The interface wlan0 is down. After following the official tutorial from ubuntu (https://ubuntu.com/tutorials/how-to-install-...
1 vote
1 answer
4k views

Ubuntu 20.04. Two network cards. Netplan. Can't configure in parallel

I have a problem. There is a server. It has two network cards installed. Logically, one network card (enp4s0) for the Internet. Second network card (enp2s5) for network users to access the server (...
0 votes
0 answers
78 views

Ubuntu 22.04 netplan with two interfaces. Public IP not accessible on the second interface

I have two interfaces on an Ubuntu 22.04 server hosted in AWS. Both have public IP addresses, however; only ens5 is responding to incoming traffic. When I run a tcpdump on ens5 I can see my ping ...
5 votes
6 answers
84k 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
2 answers
2k 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:...
3 votes
3 answers
7k 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
1 answer
234 views

DHCP-provided DNS Server with wrong route in Ubuntu Server 22.04

On fresh install of Ubuntu Server 22.04 (ubuntu-22.04-live-server-amd64.iso) on my network, I can not use the DHCP-Provided DNS Servers which are a on a different subnet : routes to that subnet are ...
7 votes
2 answers
38k views

Netplan config not working

I migrated from Ubuntu 16 to 18.04, and now my Internet connectivity is broken. Problem seems to be that 18.04 is using netplan and it wasn't properly configured. The file /etc/network/interfaces ...
0 votes
1 answer
5k 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?
5 votes
2 answers
7k views

How to use netplan to create two separate routing tables?

I have an Ubuntu 18.04 host with two network interfaces on two subnets. I would like to set up symmetric routing so that traffic received from one interface is sent symmetrically out that same ...
0 votes
0 answers
47 views

Ubuntu 20.04.4 LTS:After temporarily losing connection at router my Ubuntu server can no longer connect at all

Last night we had a storm that interrupted internet connectivity temporarily. Since then my Ubuntu server has been unable to connect to the internet at all while all other devices have recovered fine. ...
0 votes
0 answers
25 views

Ubuntu VLAN IP Interfaces Unreachable Remotely

I've configured 5 VLAN interfaces and all appear to work fine. I've only one gateway4 IP configured for one of the VLANs and this is serving as the default gateway. And that works. I'm able to ping ...
0 votes
0 answers
41 views

routing-policy netplan ubuntu 20 loose connection to local devices

Hi I have 6 servers running Ubunto 16.04 and just got a new one with Ubunto 20.04, I have 3 interfaces 1 for internet, 1 for intranet, and the last one for local network only. On the internet ...
4 votes
2 answers
22k views

Netplan throws an error when attempting to load a config file, provides no details about what the error is

Doing a clean install of Ubuntu Server 18.04 on a new machine. Currently attempting to configure my Ethernet network interface to use DHCP using netplan. My config file, dynamic.yaml, reads as ...
0 votes
0 answers
33 views

Network Issues: Ubuntu 20.04 VM on Hyper-V with VPN

I faced the systematic network issues on my Hyper-V Vm with Ubuntu 20.04: I've lost connection when I'd turned on Global Protect VPN on my host machine (Win 10). This is my netplan config: version: ...
1 vote
2 answers
2k views

How can I bring down the interface in the netplan configuration?

I have an Ubuntu server 18.04 and simple netplan configuration (see below): --- network: ethernets: ens1: dhcp4: false addresses: - "192.168.99.1/24" ens2: ...
1 vote
1 answer
4k 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: ...
2 votes
1 answer
439 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": ...
0 votes
1 answer
4k views

Missing /etc/netplan/50-cloud-init.yaml

I want a static IP in 20.04 server. When directed to /etc/netplan/50-cloud-init.yaml, I notice I have no such file. I have /etc/netplan/00-default-nm-renderer.yaml and 00-installer-config.yaml. Why ...
0 votes
0 answers
48 views

netplan config for eap-gtc

I have a number of 20.04 systems that connect to WPA2-Enterprise networks. I use Netplan to connect and typically use eap-peap to for authentication. I just got a request to setup a system at a site ...
0 votes
0 answers
54 views

netplan equivalent of nmtui?

Is there an equivalent of nmtui for netplan? I have Googled around and not found an alternative and am trying to avoid having to look it up every time I set up Ubuntu.
0 votes
1 answer
111 views

How to configure Ubuntu server netplan sriov vlan tagged vf?

How do I configure vlan tags on specific SR-IOV vf interfaces with netplan? I tried the following to prove that vlan tags work on a regular interface: network: ethernets: enp94s0f2: ...
0 votes
1 answer
420 views

Netplan DNS nameserver setting not being applied

I'm renting a VPS from Linode with Ubuntu 20.04 LTS (Focal Fossa) installed on it. But the default DNS server from Linode doesn't resolve a domain name which I really need it to resolve. Therefore, I ...
0 votes
0 answers
62 views

Add a public IP to a Ubuntu server with netplan

I am running a Ubuntu Server 20.04.4 with VMware and I am trying to set up a static IP on it. After installing Ubuntu, the IP received from DHCP is 192.168.1.61: IP received from DHCP: I made the ...
0 votes
1 answer
209 views

Help with adding secondary IPs to Netplan on Ubuntu 20.04 AWS EC2 instance

I have a Ubuntu 20.04 ec2 instance. I need to add three more persistent private IP addresses in addition to the primary. I'm familiar with the old way of doing this, but I have no experience with ...
0 votes
0 answers
144 views

Ubuntu Server 20.04.4 LTS Network slow/not working

My network issues first started when I got a DNS error, so I started trying to change my DNS server to Cloudflare/Google DNS. I started reading how to do this and I found that latest Ubuntu releases ...
0 votes
2 answers
150 views

DNS issue migrating from ifupdown to netplan

I am working through configuring an ubuntu 20.04 server and am attempting to switch over from using ifupdown to using netplan. I am not a network guru by any stretch, but I believe my problem has ...
2 votes
1 answer
4k 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
120 views

bonded nics with netplan on Ubuntu 20.04 does not pass traffic

I've spent all afternoon trying to get some nics bonded on a Ubuntu 20.04 server. The bond seems to come up OK based on ip a and /proc/net/bonding but I can only ping the ip of the bond itself, ...
0 votes
0 answers
17 views

Ubuntu VM host with no access to LAN

I have an issue where the VM host is not able to access the internet after adding a bridge for LXD/LXC containers. The LXC containers are assigned LAN IPs. There seems to be two options to fix the ...
3 votes
2 answers
3k views

Make route command persistent after reboot

Quick question: I want to make this command persistent after reboot: route add -net 10.0.8.0 netmask 255.255.255.0 gw 10.3.121.244 I tried playing with the netplan yaml files with no success, my ...
3 votes
2 answers
2k views

netplan: usage by command line (without manually editing this annoying yaml file)?

It looks like netplan is the future, but compared to this simple command: ifconfig eth0 192.168.1.1 netmask 255.255.255.0 up it's much more work to edit the annoying yaml file (the yaml parser feels ...
1 vote
1 answer
54 views

How to set up 2 ethernet in Kbuntu?

I have a problem setting up my network with ubuntu. In my office we have several pc, and a NAS. Most of the PCs (all windows) connects to internet, and to NAS via 1Gbit ethernet, but mine has a direct ...
1 vote
2 answers
6k 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 ] ...
0 votes
0 answers
73 views

Creating gre tunnel with netplan, no scope link ipv6 address

I have created GRE tunnel using netplan and ipv6 is not working properly (I am trying to run ospf3 over GRE tunnel and it is not working without scope link ipv6 address), it appears to be missing ...
2 votes
2 answers
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 ...
3 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 ...
0 votes
0 answers
52 views

Ionos Dedicated Ubuntu Pleask Server Not Reachable, Dropping Network?

SITUATION: I have four Ionos Dedicated Ubuntu Pleask Servers all setup with 1 week. Ubuntu 20.04.4 LTS / Plesk Obsidian 18.0.41 Two of the servers are reliable. Two of the servers become unreachable ...
1 vote
1 answer
29 views

Configuring Extra Public /24 Subnet with different gateway

I have a server where an internal adapter is configured as followed: network: version: 2 renderer: networkd ethernets: enp3s4f0: dhcp4: no addresses: [ 199.168.96.58/29 ] ...
0 votes
0 answers
57 views

NetPlan configured VLAN in Ubuntu 18.04 cannot ping

I have an Ubuntu 18.04 server in AWS EC2, running Docker. I want to have separate network cards for each Docker container, as the app inside them needs to use the same port (5003). I added some ...
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
95 views

Wrong nameservers show with `systemd-resolve --status`

I have some rogue nameservers that I can't seem to get rid of on my ubuntu 20.04 server. I run 2 pihole instances, which have been configured to work with ipv4 and ipv6 Cloudflare DOH. When running ...

1
2 3 4 5
16