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

Stopping openvswitch-switch service breaks netplan

I upgraded my system to Jammy Jellyfish 22.04 last week. Now when I try to systemctl stop openvswitch-switch the command stopes openvswitch (expected). But in doing so it breaks netplan. So with ...
Dave's user avatar
  • 173
2 votes
1 answer
968 views

LXC host losing internet access when bridging lxdbr0 with ens3

My LXC host loses access to the internet when bridging an interface between lxdbr0 and ens3. LXC guests also fail to access WAN when the bridging is effective. My vps hosting provider provides a nic ...
G-knome's user avatar
  • 41
0 votes
2 answers
3k views

After upgrade of ubuntu network interface names changed, why? How to change back?

After an upgrade from 18.04 to 20.04 I found all the network interface names changed. Why? And how can I change them back to their original names without having to edit netplan files to force a name.
Dave's user avatar
  • 173
1 vote
0 answers
106 views

What is the best way to have failover connection for OpenVPN client

I am going to make failover connection for OpenVPN client. What will be the best way to achieve it? I have two ethernet interfaces. I connect eth0 to LAN (with DHCP), and eth1 to GSM router (with ...
hooboe's user avatar
  • 11
0 votes
1 answer
410 views

How can I set up my Ubuntu sever as ipv6 tunnel?

I have an Ubuntu server one bare metal that has both ipv6 and ipv4 dedicated, but my home ISP ONLY PROVIDES ME WITH ipv4, is there any sane way of setting up my dedicated server as an IPV6 tunnel ...
Max's user avatar
  • 362
2 votes
0 answers
44 views

Error on raid 0 when modifying the 00-network-manager-all.yaml file

I was making a change via SSH connection on 00-network-manager-all.yaml file on an Ubuntu Server 18.04 which is hosted on a three disk RAID0. While making the change and executing the command sudo ...
Lucas Del Negro's user avatar
0 votes
1 answer
393 views

Blocking automatic setting of APIPA IP on the network interface

I have a VM (on ESXi) with Jammy installed; The second interface takes Apipa in Ubuntu: # /etc/netplan/00-installer-config.yaml ens192 UP 169.254.158.255/16 metric 2048 I have ...
Moha's user avatar
  • 1
2 votes
1 answer
73 views

ubuntu 20.04 wrong ip in LAN

After updating Ubuntu 20.04 and installing wireguard I'm facing an issue. My machine wasn't reachable via ssh and pings anymore. ping 192.168.178.42 (the LAN ip of the ubuntu machine) outputs: $ ping ...
bj4rne's user avatar
  • 23
1 vote
1 answer
3k views

Netplan config with IPv4 and IPV6

I am trying to update a server with IPv4 and IPv6 addresses to 22.04.1. I was trying to get netplan updated and it wanted routes, but I was having some trouble getting the config correct and lost ...
Thystra's user avatar
  • 83
0 votes
1 answer
422 views

Netplan static address plus dhcp address on same interface with priority to static address

I have a small home server than I occasionally move between networks. I want it to have a static IP for accessing services running on it, but also a DHCP IP so that when I move networks it will always ...
user309043's user avatar
0 votes
1 answer
517 views

How to configure Energy Efficient Ethernet (EEE) permanently off using netplan?

I have a raspberry pi 4, with 22.04 installed. I keep getting drop outs from the network with errors in dmseg like bcmgenet_xmit: tx ring 1 full when queue 2 awake Another post suggested that this ...
ThatDataGuy's user avatar
1 vote
1 answer
439 views

Bridging LAN and wireless using netplan

I want to extend my network trough wifi to ethernet connected device. I have PC with Ubuntu 20.04 connected to PC2. This is my setup: -------- ------ ------ ------ |...
new_linux_explorer's user avatar
1 vote
1 answer
1k views

Best way to have a network bridge with both my LAN and WAN (not AP) interfaces attached?

I have this configuration to put my LAN and WAN (not AP) network interfaces on the same bridge but I'm wondering if there is a better way to do it? Has anyone done this in a better way? Thanks. I've ...
Acceptable Name's user avatar
1 vote
1 answer
2k views

Ubuntu 22.04 force ethernet to 100Mbit/s

Since upgrade from 20.04 to 22.04 my NIC tries to connect with 1Gbit/s, but due to cable issues max 100Mbit/s works stable. How to force NIC to 100Mbit/s permanently the proper way, meaning by not ...
Ulsi's user avatar
  • 13
2 votes
1 answer
403 views

Netplan: unknown key '<<' (YAML anchor and dictionary merge syntax)

I am trying to add multiple static routes with shared via and table using YAML anchor syntax. This is an example custom.yaml file: network: version: 2 renderer: networkd ethernets: enp5s0: ...
iBug's user avatar
  • 1,529
2 votes
1 answer
716 views

Netplan - bridge default spanning tree behavior

I'm not a Linux noob, but this is my first post on Ask Ubuntu. If I am missing any key information, please let me know and I'll update the question. OS: Ubuntu Server 22.04.1 x86_64 Kernel: 5.15.0-48-...
Christopher Brackett's user avatar
0 votes
1 answer
2k views

how to create sub-interface

kernel : ubuntu server LTS 22.04.1 I am trying to create sub-interface via netplan in ubuntu unfortunately this doesn't work can any body help me ? i rather not use vlans but if you can do it with ...
Hoodad Tabibi's user avatar
1 vote
0 answers
38 views

Can only connect to network after changing MAC

I have a machine running Ubuntu Server 22.04, It has been working fine for the past serveral days, however today I noticed it appeared down on my network. I could not SSH to the machine so I accessed ...
hvdm's user avatar
  • 11
2 votes
1 answer
2k views

Upgraded to 22.04.01, DNS didn't work, tried to fix, now Ethernet doesn't work

I recently upgraded from 20.04 to 22.04.01 on both my laptop (uses WiFi) and my desktop (uses Ethernet) via Ubuntu's standard update process (they prompted me to upgrade and I clicked OK). Networking ...
engerks's user avatar
  • 23
0 votes
1 answer
2k views

DNS on Ubuntu 22.04 is failing. (using netplan)

I just install a new Virtual machine using Hyper-V server, and ubuntu-22.04.1-live-server-amd64.iso After install, I notice that DNS is not functional. I have seen multiple question/answers about ...
Luuk's user avatar
  • 151
0 votes
0 answers
15 views

Netplan wifis will not open websights

On Ubuntu 22.04.1 I have set a static ip and successfully connected to a nfs file server. However, I cannot get wifis to work. No errors are reported with sudo netplan apply but on Google Chrome I get ...
Lance's user avatar
  • 1
0 votes
0 answers
285 views

How to set wifi ssid specific static ip address in netplan

I am running ubuntu server in my machine, and using netplan for connecting with wifi. There are two wifis configured in netplan, one as primary, second as backup I have requirement to keep ip address ...
afzalex's user avatar
  • 156
0 votes
1 answer
1k views

How to set wifi for netplan using command line?

I am using netplan to manage my network. Modifying parameters in yaml file is easy and well documented. But how can I modify network parameters from command line? So far, I figured out how to do it ...
BЈовић's user avatar
  • 4,524
0 votes
1 answer
1k views

ifup[260]: Error: ipv4: FIB table does not exist

cat /etc/*release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS" I installed ifupdown and removed netplan.io but the command ...
user3021543's user avatar
1 vote
0 answers
97 views

DNS upstream IP not changing on dnsmasq with Netplan

I am running dnsmasq (Version: 2.80-1.1ubuntu1.5) on Ubuntu-20.04.04, the network interface is being managed by Netplan rendered inuse is networkd. The DNSMasq forwards requests to the upstream ...
raw-bean's user avatar
1 vote
0 answers
889 views

Static IPv6 setup with netplan

After running in to upgrade issues (not able to retrieve https://changelogs.ubuntu.com/meta-release-lts) I found out that my static IPv6 setup caused this issue. However I'm stumped as how to fix it. ...
Remco J.'s user avatar
1 vote
1 answer
15k views

Ubuntu 22.04 - (Finally) moving to netplan, but how?

I just migrated a machine to Ubuntu 22.04. Network config is still via /etc/network/interfaces: # This file describes the network interfaces available on your system # and how to activate them. For ...
ThinkHard's user avatar
  • 303
1 vote
3 answers
6k views

Server 22.04.1 subiquity autoinstall - system-install command fails after changing NIC name using netplan

Issue: I'm trying to use packer to create an Ubuntu Server 22.04 image and I'm running into issues when it comes to renaming the NIC using a valid netplan config and then also installing one package. ...
Tuxington's user avatar
1 vote
0 answers
128 views

Ubuntu 22.04 cannot make conection with wifi or ethernet

Recently I had to add some files as root to the folder /usr/lib/x86_64-linux-gnu/ in order tu run a time tracker app, but when I reboot my computer wi-fi and ethernet conection were dropped, doesn't ...
ARELLANO SANCHEZ ARIADNA's user avatar
1 vote
2 answers
2k views

Ubuntu 22 / Netplan automatically adds default route rule when changing interfaces, preventing internet access on the other interface

I am trying to configure a server with 2 ethernet ports to work on different subnets. I have Port 1, connecting to network 0, which at the moment is also my source of internet access. And then I have ...
miscalaneous's user avatar
1 vote
2 answers
909 views

How do I execute a script upon network connection?

I've spent hours attempting this via the if-up.d method as described in: Question 258580 The script just won't trigger and I realized that this method is outdated because Ubuntu no longer uses etc/...
hoatzin's user avatar
  • 548
3 votes
0 answers
496 views

Ubuntu 22.04 Server losing dns at random

It happens at random, could be a day could be 2 weeks. Boot up the server everything is fine. After a random time I'm unable to resolve any web addresses. Checking the server I get the following. ...
SpaceBallz's user avatar
0 votes
1 answer
330 views

`resolvconf` changing current DNS. Netplan stict using nameserver

I need to have my own DNS server in the corporate. I have the following config set for netplan: network: version: 2 renderer: NetworkManager ethernets: eno1: dhcp4: yes ...
Parsa Noori's user avatar
0 votes
0 answers
165 views

Ubuntu Server 18.04.6: No internet connection

My Ubuntu 18.04.6 server is not connecting to the wider LAN and Internet. It IS connecting to my router (via ethernet cable), which is connected to by many other household devices (wired and wireless) ...
David Smith's user avatar
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 ...
NeXis04's user avatar
0 votes
1 answer
3k views

issues with bonding

I have enabled nic bonding with vlans on my ubuntu 22.04 machine with 2 interfaces. One of the interfaces is connected to Switch 1 and the other one goes to Switch2. Here is what happening, when i ...
xrkr's user avatar
  • 109
2 votes
1 answer
938 views

How to use netplan set cli to add a static route?

I want to add static route in the netplan yaml file by using netplan set cli. However, it only add "to:", but it doesn't add the "via" and "metric", not sure what is ...
Chris Tung's user avatar
-1 votes
1 answer
636 views

Modify netplan configuration without apply until reboot

I need to modify the netplan configuration in .yaml to add some static routes but i dont want to apply (netplan apply) until the next reboot (will be restarted in quite a few days). This is my plan: ...
Saa8's user avatar
  • 1
0 votes
1 answer
404 views

set up 2 networks card with different gateways

I have a VMs Ubuntu server 20.04 with two network cards, I would like to set up a different vlan with different gateway in each one. I made my routing table in the file yaml but when I assign gateway ...
intheshadow's user avatar
0 votes
0 answers
223 views

Ubuntu-server install via chroot netplan wifi network unreachable

I just installed ubuntu 22.04 via chroot and also the ubuntu-server metapackage. I'm trying to connect via wifi only using netplan. I found some info about it but it doesn't work. I always get "...
user2057220's user avatar
0 votes
1 answer
3k views

Temporary failure in (DNS) Name Resolution / 20.04

"Temporary failure in (DNS) Name Resolution" Background: I work in healthcare security with approximately ~125 servers across a dozen clients across the US The appliances are both physical ...
Renevant's user avatar
3 votes
1 answer
7k views

Ubuntu 22.04: Netplan (static ip) - Unable to ping gateway or internet IP's, local network devices ping fine

Situation I have VMWare ESXI running with an Ubuntu Server 22.04 instance. This instance runs PowerDNS for my local network and needs a static IP. My local network uses class A-type IP addresses, in ...
Harold's user avatar
  • 159
0 votes
0 answers
324 views

How to switch between two WiFi adapters in command line?

I managed to get my external wifi adapter (MT7601u) work in my raspberry pi 4 thanks to help from chili555. Now I have two wifi interfaces, wlan0 (raspberry pi's built-in wifi) and wlx8c882b02d94e (...
stormfire's user avatar
1 vote
0 answers
258 views

netplan and new adapter - possible to update / generate .yaml file automatically?

How to automatically generate a netplan .yaml file? Repurposing an old laptop for Ubuntu test server. No Ethernet port. Installed Ubuntu server from thumb drive then searched for *deb packages to make ...
Alan's user avatar
  • 29
0 votes
1 answer
64 views

Automatic Internal Static IP

Can we set up something like Automatic Static IP, instead of DHCP? I don't want to edit netplan every Virtual Machines.. Thank you.
banggoseok's user avatar
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 ...
Günter Kieninger's user avatar
0 votes
0 answers
672 views

Looking for Netplan example for generating OpenVSwitch vxlans

All: Does anyone have a working example of defining an openvswitch vxlan in Netplan? I'm unsure about where to define the ports (under ports? under bridges?) much less how to configure them using the ...
Stephen Nesbitt's user avatar
0 votes
0 answers
123 views

network is down for 5 min and up again for 3 min

I have started to see a very weird behavior on Ubuntu 20.04.4 (5.4.0-121-generic) when the network is going down for 5 minutes and then is up for 3 minutes. The strange thing that when the network is ...
Ms.Simpson's user avatar
1 vote
2 answers
7k views

Ubuntu 22.04 bridging with netplan doesn't work

I hope you can help me. I'm trying to setup a network bridge adapter with Netplan to use it with my KVM guest machine. I followed a couple of tutorial, including the one on Netplan.io and so far none ...
Gautam Dhavamani's user avatar
0 votes
2 answers
1k 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 ...
TheKeeper's user avatar

1 2 3
4
5
20