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

Issues with Netplan - Static IP

With the release of Ubuntu Server 20.04 I've had some weird issues concerning Netplan. I'm a student so I use Ubuntu Server as a virtual machine and I have to move a lot (which means, changing IPs all ...
user avatar
0 votes
2 answers
5k views

Error in network definition at netcfg.yaml file: unknown key tunnels

I'm using Ubuntu 18.04 bionic. when I try to configure GRE Tunnel in the netcfg.yaml file I encounter an error: Error in network definition //etc/netplan/01-netcfg.yaml line x column x: unknown key ...
user avatar
0 votes
0 answers
72 views

Installed 18.04 Server and netplan was NOT installed

Installed 18.04 on an older Dell server. Netplan was not installed nor was the /etc/netplan directory created. I attempted to update the /etc/network/interfaces file with the DNS nameservers (I used ...
user avatar
  • 111
0 votes
1 answer
461 views

Network Problem on 20.04.2 - Ethernets Off, Netplan Config Ignored, Segfault in Log

We have a small NAS server running Ubuntu 20.04.2 on hardware (i.e. not a VM), and the network suddenly died in a strange way yesterday morning. I've been trying to fix it myself for over a day now, ...
user avatar
  • 3
0 votes
1 answer
60 views

Can netplan bring down the routing for an interface entirely if another interface has a priority route-metric?

I figured certain quirks with networking in several libraries that I do not want to deal with fixing individually are gone if the interface that is not the priority route-metric is taken out of the ...
user avatar
  • 101
0 votes
2 answers
1k views

Network Configuration Gone - Unable to Reset or Apply Netplan

I'm not sure what's going on or what happened. I run an Ubuntu 20.04.2 LTS machine headless. It performed an update sometime overnight and when I logged in, it prompted me that it needed a reboot. So ...
user avatar
0 votes
1 answer
170 views

netplan conflicts when changing AP when rederer: NetworkManager

I'm having some problems setting up the "access-points": in netplan , when the renderer: NetworkManager . My yaml is cat /etc/netplan/00-installer-config.yaml network: version: 2 ...
user avatar
1 vote
0 answers
117 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 ...
user avatar
  • 11
0 votes
2 answers
293 views

WiFi AP's have no internet connectivity after seting up IPTABLES

I have set up an Ubuntu 20.04 SERVER to act as a Gateway/Router. Now that the gateway is functioning, I now no longer have WiFi access via several AP's in my house. I am able to connect to the AP's, I ...
user avatar
1 vote
1 answer
899 views

Remove Secondary DHCP IP Address

My system: Ubuntu 18.04 netplan 1.10.1-5build1 My /etc/netplan/50-cloud-init.yaml... network: version: 2 ethernets: eth0: dhcp4: false addresses: [192.168.1.8/...
user avatar
1 vote
1 answer
676 views

Is Netplan capable of setting link negotiation settings?

I set a static IP with Netplan on my desktop, but the link negotiation keeps resetting to "Ignore" every reboot on my Plasma desktop. How can I make it permanent?
user avatar
0 votes
1 answer
235 views

why is ubuntu assigning ip 127.0.0.1

I cannot figure out why ubuntu 18.04 is assigning a ip address of 127.0.0.1 I set my netplan network: version: 2 renderer: networkd ethernets: enp3s0: dhcp4: true any ...
user avatar
  • 31
0 votes
0 answers
79 views

Netplan/ubuntu explained

I am still learning. My intent with the following netplan/ubuntu setup was to change my ip address to my ubuntu VM server (ubuntu 18.04) so I cut and pasted the following: network: version: 2 ...
user avatar
  • 31
0 votes
1 answer
2k views

netplan - match physical ifs only

I'm using netplan on 20.04 (Focal) and would like to match only physical ifs in one of the stanzas. if I use: ethernets: dmz0: match: macaddress: b8:a3:86:70:cc:e6 name: dmz*|en* ...
user avatar
1 vote
1 answer
76 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 ...
user avatar
  • 161
1 vote
1 answer
107 views

Why is nic renaming every reboot? - Ubuntu 20.04 LTS

It was enp4s0, now it's enp10s0, and what was enp9s0 is now enp5s0. I'm getting scared to reboot as that might kill networking until I KVM to it. Running Ubuntu 20.04 LTS. Since I have my 10G nic ...
user avatar
1 vote
1 answer
532 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 ...
user avatar
  • 131
0 votes
1 answer
68 views

netplan - conditional loading of config

I have a yaml for my ethernet connect and a yaml with various access points defined for my wifi. I want to load the wifi yaml only if the ethernet connection is not available.
user avatar
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?
user avatar
0 votes
1 answer
1k views

Ubuntu 20.04 network interfaces

Is there any way to change configuration of IP address like in old distribution like 17.10 and 11.04. For example I've changed Ip address in /etc/network/interfaces but in 20.04 it's impossible to do ...
user avatar
0 votes
1 answer
674 views

Netplan default route metric 0 is a big problem

Hi I have set up a simple router using Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-42-generic x86_64). It is a virtual machine. The objective is that all traffic arriving on the first network card(eth0) is ...
user avatar
  • 3
0 votes
2 answers
440 views

netplan using wrong backends

Background I have a netplan .yaml configuration file in /etc/netplan/. The first few lines are as follows: network: version: 2 renderer: networkd ethernets: # ...and so it continues... When I ...
user avatar
  • 101
0 votes
0 answers
56 views

No IP after link outage

I have a 20.04 LTS server with two static addresses set. The system applies the correct static IP addresses on boot up but if the physical link goes down/up for any reason (switch reboot for example) ...
user avatar
0 votes
1 answer
1k views

Changing WiFi MAC address on Raspberry Pi 4 Model B with Ubuntu 20.04.2 LTS

I am not confident to report a bug but at least some confusing/unexpected results. Googling the first 20-30 results on the topic "ubuntu change mac" and "ubuntu change mac netplant"...
user avatar
  • 1
1 vote
0 answers
57 views

Use external files in NETPLAN

Is it possible to load an external file in one of NETPLAN's yaml configurations files? Similar to "source" in interfaces? My situation: I have an application that controls the network ...
user avatar
0 votes
1 answer
72 views

Source of IP address

Probably a noob question, but I need some help in trying to determine where an IP address originates from. So I have a Raspberry 4 with Ubuntu 20.10 installed. I've initially configured a static IP ...
user avatar
0 votes
1 answer
592 views

NetworkManager can't update settings if Netplan config exists

I am using 18.04.4. I configure an interface using netplan (/etc/netplan/enp0s3.yaml), set a static IP, and set the renderer as NetworkManager. My file looks like: network: version: 2 renderer:...
user avatar
  • 1
0 votes
1 answer
956 views

Why does Ubuntu for Raspberry Pi fail to connect to Wi-Fi on first boot?

The bottom of the network setup page of the "How to install Ubuntu Server on your Raspberry Pi" tutorial says, Note: During the first boot, your Raspberry Pi will try to connect to this ...
user avatar
  • 262
0 votes
2 answers
689 views

Trying to configure a wifi bssid on netplan (need some examplesthat works)

I'm trying to force a wifi connection thru a specific 5GHz network using the bssid on netplan configuration but it always report an error when I ran netplan apply command. Here is my current ...
user avatar
0 votes
0 answers
69 views

Ubuntu 20.04 no network connectivity

The computer is Kubuntu 20.04. I can't connect to internal network, over WiFi or cable. It gets dhcp address and fw shows activity, but ping doesn't work. I've tried to erase all wifi connections and ...
user avatar
  • 121
0 votes
0 answers
930 views

How to configure IPIP tunnel via Netplan, including routes

I am trying to set up a IPIP tunnel in Ubuntu 18.04 LTS via Netplan config. I managed to set up the tunnel with routes from server A to server B with those ip commands: 85.ll.ll.ll is server A 85.rr....
user avatar
  • 1
1 vote
0 answers
116 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?
user avatar
0 votes
1 answer
337 views

Ubuntu Server Wifi without netplan

Ok, I am trying to setup Ubuntu Server on wifi as the place to keep it corded is not convenient. Is it possible to use network manager instead of setting up a netplan? I do not want to mess with a ...
user avatar
1 vote
1 answer
1k views

Routing IP addresses in Ubuntu 20.04

I have several servers on a private network, each with a private IP address assigned and a public IP assigned. I want the servers to only communicate with each other using their private IP addresses. ...
user avatar
  • 113
0 votes
2 answers
944 views

Package 'netplan' has no installation candidate

I'm having issues with installing netplan in Ubuntu Server. I keep getting the error message "Package 'netplan' has no installation candidate. How would I resolve this issue?
user avatar
0 votes
1 answer
2k views

Install netplan on Ubuntu 18.04 with no internet

I somehow seem to have damaged an installation on my Ubuntu box so that I have no internet access. I currently don’t see any Ethernet details if I run ifconfig plus it seems that netplan Is no longer ...
user avatar
  • 103
1 vote
0 answers
277 views

Netplan try / apply breaks after apt update

Ubuntu 20.04 Server I've got a strange issue that I only get on a vm and not on any baremetal installs. After doing a clean install and configuring the network, netplan works as expected. However ...
user avatar
0 votes
0 answers
265 views

Configure route metric of tunnel using Netplan

Under Ubuntu 20.04 LTS focal I previously configured a net64 tunnel to use the HE-IPv6 service. Below is my config: . ├── 50-cloud-init.yaml └── 51-he-ipv6.yaml # 50-cloud-init.yaml network: ...
user avatar
  • 101
0 votes
0 answers
36 views

Stop network bridging

I am looking for a way to stop user bridging networks, or just only have one active adapter at a time. In otherwise i don’t want the wifi enabled whilst Ethernet is active and the same reversed. This ...
user avatar
1 vote
0 answers
381 views

Netplan bridge master getting a static IP address instead of the bridge

I am trying to configure a bridge for KVM guests and host connectivity. The bridge is never configured right, the physical NIC always ends up getting the static IP address and the bridge is assigned a ...
user avatar
  • 11
0 votes
0 answers
47 views

USB dev board changes MAC address on every reboot

beginner here, I have a small embedded linux system attached to a linux mini-pc via a USB cable. The embedded board uses 192.168.2.2 as a static IP. My laptop is on the LAN, the linux mini-PC is on ...
user avatar
0 votes
1 answer
422 views

Netplan configuration problems in Ubuntu 20.04?

I would like to know how could I change interface names in Ubuntu 20.04. I have configured the /etc/netplan/01-network-manager-all.yaml file as follow: # Let NetworkManager manage all devices on this ...
user avatar
  • 35
1 vote
1 answer
178 views

How many virtual adapters can be configured with netplan on Ubuntu 20.04?

I have an ethernet interface on my Ubuntu 20 server machine called enp65s0f1. I want to create a number of virtual interfaces each with their own mac address and ip address that piggy back on this ...
user avatar
0 votes
1 answer
369 views

Netplan, cloud-init and Ubuntu Mate

I'm a novice with Ubuntu, and especially Ubuntu Mate that I have installed and have been using for a month now on a Raspberry PI 4 8GB. My issue is using static IP address configurations. Everything ...
user avatar
1 vote
1 answer
625 views

How to route all traffic to a dynamically configured default gateway?

Some context: I'm trying to create a virtual private network on my laptop using VirtualBox. I want the virtual machines to be inside a private network, so a virtual machine can only be reached by ...
user avatar
  • 113
1 vote
1 answer
1k views

netplan is attempting to restart NetworkManager when renderer is networkd

I'm familiar with the old-style interfaces config, but not netplan. This is ubuntu server 20.04 LTS on a raspberry pi 4. I'm trying to configure a static IP address, so I'm following along with ...
user avatar
  • 111
0 votes
1 answer
1k views

Only lo interface in /etc/netplan Ubuntu 20.04

I build a PC with a Gigabyte GA-MA790XT-UD4P motherboard. And i installed Ubuntu 20.04 as OS. But i realized i was not connected to the internet. Until suddenly i saw that my Ubuntu machine only has ...
user avatar
0 votes
1 answer
181 views

how to make my /etc/network/interface config work for netplan

I have the following config from 18.04 that im bringing to 20.04: auto lo iface lo inet loopback auto enp0s31f6 enp0s31f6:1 iface enp0s31f6 inet static address 10.42.2.2 netmask 255.255.255.0 iface ...
user avatar
  • 165
0 votes
1 answer
558 views

Ubuntu Server 20.04 LTS not reachable

my Ubuntu 20.04 LTS server looses its inbound LAN connection after some days of operation. The outbound connection works: I receive status e-Mails from that host. Bridged containers work as they ...
user avatar
  • 1
0 votes
1 answer
4k views

Ubuntu 20.04 static route on netplan without gateway address

I am routing virtual machine's IP through the host (I have my reasons). ip a a 172.16.0.50/32 dev ens3 (VM's main IP) I add routes for routing packets to the host's main IP (which acts as a router): ...
user avatar

1 2 3
4
5
16