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
1 answer
562 views

Trouble adding IPv6 static route in netplan

I'm having trouble getting netplan to accept this IPv6 static route: sudo ip -6 route add fec0:abcd:250:1::6/64 via fe80::8ad9:8f00:93d6:4960 dev ens1f1 In my yaml file I've tried: ens1f1: ...
user avatar
1 vote
1 answer
762 views

How to set IPV4 address disabled in Ubuntu 20.04 using netplan?

I am trying to set IPV4 address as disabled. but it is setting a link-local address. Here is my config.yaml. If i apply netplan apply, link-local ipv4 address is set for the connection with ipv4 ...
user avatar
0 votes
0 answers
137 views

VLANS on Netplan break ping/ssh

Took me a while to figure out correct format for Netplan to work properly with vlans. Anyway, this applies properly but breaks ping and ssh on both vlans. I would also rather only have the ip ...
user avatar
  • 1
0 votes
1 answer
228 views

Ubuntu focal 2 networks , two default gateways ==> no connectivity

I am using Ubuntu Focal 20 uname -a Linux domaintf 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux with 2 netowrk interfaces 1: lo: <LOOPBACK,UP,...
user avatar
0 votes
1 answer
415 views

USB Wifi Dongle changes MAC Address on every boot - How to prevent this?

Ubuntu 20.04.1 LTS runs on an Odroid C4 development board. WiFi works fine with an USB dongle with RTL8811AU chip, but the MAC address is different after each boot. How can I ensure that the MAC ...
user avatar
  • 113
0 votes
1 answer
4k views

How do I configure a vlan-linked bridge in netplan to serve a VM?

My problem is basically that, when trying to use a bridge on a vlan interface, I don't have network to my VM, and I'm not sure what I'm missing. I have tried the setup detailed in the examples. As ...
user avatar
  • 17
0 votes
1 answer
423 views

Unable to disable link-local auto configuration in Ubuntu 20.0.4.1 with netplan

After half a day of googling, searching, reading, adding/removing packages (mostly avahi things), trying/playing with netplan on this Ubuntu 20.04.1 test machine, I am unable to disable link-local ...
user avatar
  • 1
1 vote
0 answers
5k views

Adding a domain suffix to the DNS search in Ubuntu 20.04

I have a laptop running 20.04, and wish to be able to address hosts on my network by just their hostname, instead of having to specify the full fqdn every time. The following is my current /etc/...
user avatar
1 vote
1 answer
1k views

hostapd vs netplan: wlan0 not added to bridge at boot

Like many people, I'm using a Raspberry Pi 4B running Ubuntu 20.10 arm64 as a LAN/wifi bridge, using hostapd and netplan. Everything works fine except that the bridge is not configured correctly when ...
user avatar
1 vote
0 answers
659 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: ...
user avatar
  • 11
0 votes
0 answers
213 views

Using Netplan to setup a static IP for a cluster of devices connected via ethernet

I'm coming from NetworkManager world, so bear with me. I can do this on Ubuntu if I change Netplan's rendered to NetworkManger, but I'm hoping to learning the more native approach. I have four devices ...
user avatar
0 votes
1 answer
1k views

How do I set up bridges and vlans with netplan

I'm trying to ready my network for running some VMs. As far as I could read, the way to go is to create a bunch of bridges from my physical ethernet interface (perhaps even bond the two I have?), and ...
user avatar
  • 17
1 vote
1 answer
1k views

Netplan is not working after upgrade to 20.04

I upgraded my server from Ubuntu 18.04 to 20.04. After the update I don't have any internet connection to the server anymore. Probably something went wrong, but still after searching the whole day, I ...
user avatar
2 votes
1 answer
441 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": ...
user avatar
  • 657
0 votes
1 answer
170 views

Ubuntu servers timing out after changing netplan

My goal is simply to set a static IP using Netplan on Ubuntu server 20.04. My configuration leads to problems, possibly with name servers. Since I am working on a bare metal machine, I am configuring /...
user avatar
  • 1
0 votes
1 answer
93 views

New install of ubuntu server, and networking is not working correctly with Intel 82579LM

So I have a Dell Optiplex 790 with a Intel Corporation 82579LM Gigabit NIC. So first problem I encountered is during installer, it said autoconfiguration failed, so I installed without networking. ...
user avatar
0 votes
1 answer
795 views

SRIOV support in netplan

I am using netplan nowadays and so far very happy with it but now i have question related SRIOV support. To create SRIOV VF i am using this command at startup in /etc/rc.local # echo '7' > /sys/...
user avatar
  • 111
0 votes
1 answer
138 views

Unable to reach internal network. What am i doing wrong here?

network: ethernets: ens160: addresses: [172.16.1.181/24] dhcp4: no gateway4: 172.16.1.254 nameservers: addresses: [172.16.1.241] ens192: addresses: [192....
user avatar
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 ...
user avatar
  • 1
5 votes
4 answers
5k views

Ubuntu Server 20.10 - virtual interfaces in netplan

I am trying to add a virtual interface to a bare metal Ubuntu Server 20.10 installation. I've read that in pre version 20 this wasn't possible in netplan, and that people were reverting to ifup/ifdown....
user avatar
0 votes
1 answer
3k views

Ubuntu Desktop 20.04 - Netplan - Can't ping gateway, but DNS resolves

I'm new to Linux but a veteran with Windows, to start i'm working with Ubuntu-Desktop 20.04LTS - new install. When connected to the network via DHCP everything just works, however I need to set a ...
user avatar
2 votes
2 answers
967 views

Recommended way to deploy ppp/pppoe in Ubuntu 20.04 server ? netplan ? ifupdown?

What's the recommended way to deploy PPP/PPPoE in 20.04 ? Netplan doesn't seem to support that; Is ifupdown still the way forward even though it's going away ? Cheers,
user avatar
  • 23
0 votes
1 answer
1k views

Bond fails to acquire DHCP lease on Ubuntu Server 20.04

I recently installed Ubuntu Server 20.04 to replace an ESXi server. During the installation, I configured a bonded interface for two ethernet interfaces. I configured the bond on my ZyXel GS1900-8 as ...
user avatar
0 votes
1 answer
2k views

Access point with hostapd on ubuntu 20.04 server won't let clients connect

I've got an ubuntu gateway server with 2 network cards, on for the internet and one for the lan. I've just set up the wireless access point on the wireless device using hostapd but the clients fail to ...
user avatar
  • 1,015
0 votes
1 answer
524 views

Ubuntu 20.04 Internet Gateway not working after upgrade from 18.04

I've recently upgraded from 18.04 to 20.04 (on a server, no GUI), and since then the server is not able to connect to the internet, pinging the router and other devices in the lan still works.After ...
user avatar
0 votes
1 answer
693 views

Default gateway route being automatically added to main table

I have 2 network interfaces connected to my machine. (Fwiw it's an aws instance with the primary (default) ENI and an additional, secondary ENI attached, each with a public and private IP address ...
user avatar
  • 235
0 votes
2 answers
1k views

Netplan dhcp not working. 2 minute startup delay Ubuntu 18.04+

I've seen a lot of this question, with no clear and ideal answer, so I am asking it myself. Ever since Ubuntu 18.04.3 (I think it was .3 that started it) through at least 20.04.1, I've been seeing a 2-...
user avatar
0 votes
1 answer
487 views

Settings in netplan are not applied

Need some advice. I have two network interfaces, I configure separate IP and routes for each. network: ethernets: enp4s0: dhcp4: no dhcp6: no addresses: - 192.168.0.222/...
user avatar
  • 11
0 votes
1 answer
67 views

How to temporarily stop and start Networking by using Netplan?

I am using VM console to test services on Ubuntu 20.04. Sometimes I need to stop all networking temporarily but I can't find any cmd to stop netplan like nmcli networking off or systemctl stop ...
user avatar
  • 3
0 votes
0 answers
392 views

How to set up an internal-only domain on Ubuntu 18.04

I am trying to set up a domain in my LAN, so that all my devices, which are attached to it, can access anything *.base.home (e.g. gitlab.base.home, nexus.base.home, che-che.base.home) and get ...
user avatar
  • 203
0 votes
1 answer
186 views

Having two interfaces and configured through netplan, VM not connecting to internet

My yaml file looks like this network: renderer: networkd ethernets: eth0: dhcp4: yes addresses: [192.168.1.209/24] gateway4: 192.168.1.1 nameservers: addresses: [1.1....
user avatar
1 vote
2 answers
1k views

How to specify a port number for DNS servers with netplan

Ubuntu 20.04 with netplan throws malformed address error when cloudflare dns over tls (1.1.1.1:853) is used. Netplan only excepts 1.1.1.1. Is there a way to configure DoT or DoH with netplan?
user avatar
0 votes
0 answers
141 views

Network Oddities since upgrading from 18.04 -> 20.04 (Persistent DHCP)

Apologies if this has been beaten to death. I've done about 6 hours of searching and testing myself and pulling my hair out. After a backup, I reluctantly agreed to upgrade from 18.04 to 20.04. Aside ...
user avatar
0 votes
1 answer
84 views

a user installed network manager, and it messed up netplan

So a user install network manger with "sudo snap install networkmanager" this killed the netplan config, so he used the console to remove networkmanager again. With sudo snap remove ...
user avatar
  • 1
0 votes
0 answers
264 views

How to add multiple dynamic ip v4/v6 using netplan for both wired and wireless network?

Primarily, I need to add multiple IP addresses(v6-only) to both wired and wireless interfaces. I don't have static IP addresses and only acquiring my IPv6 address through Flet's IPv6 service, I guess ...
user avatar
  • 141
0 votes
2 answers
141 views

nameserver change breaks server

I am using Ubuntu 20.04.1 LTS. I have very limited knowledge on how to set the network configuration after the installation of the server. I run a small subnet with one static IP server on it next to ...
user avatar
0 votes
2 answers
102 views

Is it possible to set static IP on only for specific network, but use DHCP everywhere else?

I'm asking in cases for laptops when I want to connect to the internet using wired setup. Would it be possible to apply my Netplan settings at one network only (i.e. my home), and have the default ...
user avatar
0 votes
1 answer
547 views

netplan switch connection on renderer networkd

I have installed on rpi4 8Gb an ubuntu 20.04 server image for rpi4 64Bit then I have installed ubuntu-desktop I have problem on wifi and setup this bug I have disable NetworkManager thinking the ...
user avatar
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 (...
user avatar
  • 11
0 votes
1 answer
464 views

Netplan, VLANs, and Nameservers (Where does all the info come from?)

I have netplan setup for one physical interface which in turn has a single vlan subinterface. Both the untagged interface and the vlan interface are statically addressed and have appropriate ...
user avatar
1 vote
0 answers
277 views

How to add default vlan (1) to an existing interface?

In sort of a unique position here...maybe. I know how to add vlans to existing netplan configs when the default is say, 192.168.1.1 (untagged)...but what about the reverse? My netplan config: ...
user avatar
  • 111
3 votes
1 answer
668 views

Can't disable local addresses on network interfaces

My server: ASRock B450M/ac (RealTek 8111/8168/8411) Ryzen 5 3400G 64GB System Memory Rosewill RC-411v3 (RealTek 8111/8168/8411) My Computer: Ryzen 7 2700X 32GB System Memory MSI X470 Gaming Pro ...
user avatar
0 votes
0 answers
311 views

Change static ip address in netplan problem

I use ubuntu server 20.04. First i set static ip address in /etc/netplan/00-installer-config.yaml for the enp2s0 interface. Apply the changes good and i use the server for a cuple of weeks. The ip ...
user avatar
0 votes
2 answers
2k views

How can I set a static ip on a fresh installation of ubuntu 20.04 on my raspberry pi?

I have just installed Ubuntu 20.04 64-bit server on raspberry pi. I want to provide a static ip to it. I'm thinking of adding a configuration file under /etc/netplan/ (following these examples), but ...
user avatar
0 votes
1 answer
683 views

How do I configure the plan yaml file to send the hostname to the dhcp server?

I'm moving from raspian to ubuntu. On raspian, the dhcpcd.conf file could contain the line: hostname "foobar" which would send "foobar" to the dhcp server as the hostname. Very ...
user avatar
  • 1
0 votes
1 answer
275 views

VLAN / Netplan / Ubuntu / configuration for static IPs creates additional dynamic IPs

I setup a ubuntu 20.04 as a server of IOT, multimedia, ... My Network is separated in different VLANS to control where the IOT devices are allowed to talk with. The Network itself is managed with ...
user avatar
3 votes
2 answers
9k views

Failed to start netplan-wpa-wlan0.sevice: Unit netplan-wpa-wlan0.service not found

Setting up my rasbperry pi to work as my personal production testing machine. I've installed ubuntu server 20.04.1 LTS (RPI 3/4) 64bit and desperately trying to setup a wireless connection on it. ...
user avatar
0 votes
1 answer
877 views

Can't figure out DNS configuration for Static IP on Groovy

I just set up Groovy server on a Pi4 and the configuration seems to be completely different than what I'm used to ... ex: resolv.conf is no longer involved in DNS config. I followed instructions that ...
user avatar
  • 338
1 vote
1 answer
4k 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 ...
user avatar
1 vote
0 answers
132 views

Neptlan secondary IP addresse Ubuntu 20.04

I have to give my computer two IP addresses one to connect to the internet and one to reach other systems with pre-configuration IP addresses which i can‘t reach with my first IP address (different ...
user avatar

1
3 4
5
6 7
16