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.

483 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
660 views

Find out netplan duid before starting the system

is there a way to find out the duid netplan is using to request the dhcp lease before starting the system. Can it be calculated or triggered from outside? Use case: Before netplan, I used the ...
catsem's user avatar
  • 21
2 votes
0 answers
5k views

Netplan - Bridging over a bond on Ubuntu 18.04 KVM host

Sorry in advance for the long post, this has been rattling me days. I've got a server with 4 NIC (eno1, eno2, eno3, eno4). I'm trying to establish the following setup: Host - Ubuntu Server 18.04 ...
cworner1's user avatar
  • 123
2 votes
0 answers
1k views

How do I configure Kickstart network settings with Ubuntu 18.04?

I saw that in Ubuntu Server versions 16.04 and prior, there used to be a way to auto-configure the SystemV networking part of the Ubuntu OS in unattended installs via Kickstart files. However it seems ...
xorLogic's user avatar
  • 121
2 votes
1 answer
7k 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. ...
maniac_on_moon's user avatar
2 votes
0 answers
1k views

Port Forwarding Ubuntu Server 18.04 with netplan and ufw I have a server with 2 network interfaces

I have an Ubuntu server 18.04 with 2 network interfaces. enp1s0 has ip address 192.168.0.1/24 enp2s0 is connected to DHCP I am looking to forward port 8080 from any incoming traffic connected to ...
Mike Schmidt's user avatar
2 votes
0 answers
2k views

Setting up PPPoE wired connection in Ubuntu 18.04.1 Bionic Beaver (Desktop Version)

My ISP provides PPPoE connection with username, password and service name and binds my MAC Address. Since I have connected my router to the WAN, the MAC Address of the router has been bound in their ...
A Raghuram's user avatar
2 votes
0 answers
298 views

Print netplan config

Does netplan have any options available for writing how it interprets its config files to stdout, an arbitrary directory, or something similar? The context for my question is that I'm updating a ...
Matt Rideout's user avatar
2 votes
1 answer
1k views

Netplan & samba-ad-dc

I'm running an active directory on Ubuntu 18.04. I previously had one on 16.04 and it ran fine; I'm just rebuilding it with the new version and streamlining some stuff. Anyway, it works, but not on ...
Chris R.'s user avatar
2 votes
1 answer
5k 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: ...
OneMillionMiles's user avatar
2 votes
2 answers
34k 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 ...
Norman Fricker's user avatar
1 vote
0 answers
86 views

NETPLAN "DESTINATION HOST UNREACHABLE" Ubuntu 20.04.6 desktop

I'm quite new to Ubuntu and I'm trying to configure my netplan file. when I set the configuration in my /etc/netplan/01.-network-manager.yaml there seems to be an issue after i have apply the setting (...
Isaac Oyinsan's user avatar
1 vote
0 answers
100 views

Clients got IP-addresses from DHCP but can't reach Internet

I'm trying to build home router from device with two ethernet ports (enp2s0 and enp3s0) and WiFI (wlo2), based on Ubuntu Server 22. Everything is set, clients can connect via wifi to the router (it's ...
s_spirit's user avatar
1 vote
0 answers
240 views

How to have netplan config applied automatically after startup on Ubuntu 22.04?

I am running Ubuntu 22.04.3 on a dual-boot hp laptop and I have the following configuration file /etc/netplan/10-network-config_home.yaml defined: network: version: 2 renderer: NetworkManager ...
Alex's user avatar
  • 821
1 vote
0 answers
95 views

Any idea how to bring back the network without netplan cmd?

There was a power-outage in our lab during the weekend, and when I was to recover one of the ubuntu server and have it booted, the network was not set automatically. So as of now, Running "...
user3595231's user avatar
1 vote
0 answers
384 views

Netplan Configuration Isssue: Unable to obtain ip address for ethernet configured with dhcp4

Goal: Determine why configuring an interface with only dhcp4 fails. Setup I am working on configuring netplan for a Virtualbox VM. The VM has 1 bridged adapter connected to my machines wlo1 and 2 ...
Chris Howe's user avatar
1 vote
1 answer
1k 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 ...
hamagust's user avatar
  • 197
1 vote
1 answer
443 views

RETRACTED - Netplan does not add the interface to the bridge as defined

Conclusion: I retract this question. Well, the bad news is I started running into (seemingly unrelated) IO errors on my hard drive. After some troubleshooting, the drive seems completely dead; I can't ...
jmbeck's user avatar
  • 71
1 vote
0 answers
153 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]: ...
Josef's user avatar
  • 11
1 vote
1 answer
111 views

add new interface to ubuntu does not work

I want to create a crawler using python which works with multiple ip, so I need a vm with multiple ips. I send requests using python as below: import requests from requests_toolbelt.adapters import ...
hamid's user avatar
  • 111
1 vote
0 answers
452 views

Can I make a tap device persistent using netplan?

I configured a tap device using: sudo ip tuntap add dev tap0 mode tap user $(whoami) How do I make tap0 persistent between boots? Can I use netplan?
Hendré's user avatar
  • 759
1 vote
0 answers
212 views

Should I use bridge or route with netplan?

I have an RTSP camera connected through ethernet to a computer. This computer is set up to allow connections over WiFi. What I want is to be able to reach the camera from a laptop that is connected ...
Dan-Erik Lindberg's user avatar
1 vote
1 answer
336 views

Bash Script to change WLan SSID

I'm new to Linux, and I'm looking for a simple way to update the SSID and associated password on the wlan0 interface at a set time. I need to copy file from a device on Network 'A' to a device on ...
ShaneM2's user avatar
  • 11
1 vote
0 answers
463 views

Troubleshooting netplan routes on server 22.04.2

I’m looking for some guidance on the correct way to set up this network. I have an instance of ubuntu server 22.04.2 running on proxmox. Two interfaces are attached to the VM and vlan tagging is ...
The_Doug's user avatar
1 vote
0 answers
4k views

Ubuntu 22.04 configure local IP via netplan (systemd-networkd)

I have a server installed with Ubuntu 22.04, with two physical network interfaces - eno1 and eno2, and I configure these network interfaces with netplan (which uses systemd-networkd). eno1 is with ...
Utz's user avatar
  • 79
1 vote
0 answers
407 views

Netplan: configuration divided across mutliple config files exhibiting unexplained behaviour

Consider the following two netplan files: /etc/netplan/00-installer-config.yaml /etc/netplan/route-ens192.yaml The first file has most of the config, and the intent of the second file is for ...
fileinsert's user avatar
1 vote
1 answer
2k views

Ubuntu 20.04 - Static and default routes via netplan

I am brand new to Linux. I only started 'playing' yesterday, so please forgive my lack of knowledge. I have built a linux server with 2 network cards. Outside interface (ens192) for all Internet ...
Wannabe_Golfer's user avatar
1 vote
0 answers
506 views

Configure NetPlan with KVM to share host LAN with guest

I'm having a problem with NetPlan, where if I set renderer: networkd, then the guest VM connects to the local network, but the host cannot reach the public internet ping: google.com: Temporary failure ...
Rick Mooney's user avatar
1 vote
1 answer
308 views

Bridge with netplan fails with a slow to come up interface

My home server connects to the internet with enp7s0, and shares internet through 3 devices, enp2s0 (ethernet to switch), enp3s0 (ethernet to router that provides guest network) and wlxe0e1a935d56d (...
Tuna-Fish's user avatar
  • 121
1 vote
0 answers
706 views

Ubuntu 20.04.5 LTS Ethernet IP address disappears after boot

I have installed my ASUS PC with Ubuntu 20.04.5 LTS. After I setup a python environment to run applications. It is plugged into my wifi box that is plugged to the router. I have internet through a ...
Costa rica's user avatar
1 vote
0 answers
219 views

Connect Multiple Interfaces on Raspberry Pi

I use my raspi as a local DNS resolver (Pi-hole). My router has 2 networks "Home" & "Guest". As usual, the guest client can't reach my raspi as it is on the home network so the ...
OrigamiOfficial's user avatar
1 vote
1 answer
651 views

Connecting a ubuntu to the internet via one interface and to an internal network via another

I have a computer running Ubuntu 20.04 LTS with two interfaces. On interface is connected to an router which is connected to the internet and the other interface is connected to an internal gateway ...
Braininfection's user avatar
1 vote
1 answer
5k views

IPv6 network on Ubuntu Server 22.04

Can't seem to get the IPv6 network to work. Unfortunately, I decided to reinstall the system anyway. And IPv6 doesn't work for me either. Given: Dedicated IPv4 like: 45.80.XX.XX/32 and gateway 10.0.0....
Nick's user avatar
  • 11
1 vote
1 answer
2k views

netplan routing in ubuntu 22.04 gone bonkers

Sorry if this superlong, i have a remote PC running ubuntu 22.04 server that has two services on it, ssh and xrdp, i use it to connect to a remote office using checkpoint VPN, anyways, everything ...
arangaran's user avatar
1 vote
0 answers
209 views

Ubuntu 20.04 policy based symmetric routing with multiple interfaces in the same network

I have a pair of AWS VMs running Ubuntu 20.04 and I'm sharing an ENI between them. Each host has an eth0 in 192.168.0.0/24 and the ENI is mounted as eth1 also in 192.168.0.0/24. When I grab the ENI, ...
alan laird's user avatar
1 vote
0 answers
127 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
1 vote
1 answer
2k 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 ...
Knickers Brown's user avatar
1 vote
0 answers
42 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
1 vote
0 answers
139 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
148 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
3k 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
3 answers
14k 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
  • 11
1 vote
0 answers
425 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
1 vote
1 answer
8k 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
1 vote
0 answers
905 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.
Grant Curell's user avatar
1 vote
1 answer
94 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 ...
Claudio Arcia's user avatar
1 vote
1 answer
63 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 ] ...
Gongas's user avatar
  • 11
1 vote
1 answer
601 views

18.04.6 LTS DNS problems after upgrading from 16.04

I've upgraded my headless Ubuntu 16.04 LTS with ESM (Extended Security Maintenance) server to 18.04 LTS. Everything went great except the DNS settings are wrong. "netplan" is completely new ...
Thomas Gabrielsen's user avatar
1 vote
0 answers
1k views

Netplan with Two Gateway Subnets on Same Port

Trying to configure an Ubuntu 18.04 machine with two IP addresses on different subnets on one ethernet port, each with a gateway so port forwarding works from different routers. This was based on the ...
Oscar M's user avatar
  • 11
1 vote
0 answers
2k views

Active-backup bonding in netplan using cellural modem

I try to set up active-backup bonding in netplan with a modem (ppp0) as a backup. Ppp0 interface works correctly on its own and was created using network manager in line with the guide on official ...
Starid's user avatar
  • 11
1 vote
0 answers
250 views

Issues in creating VLAN interface using netplan on ubuntu

I have been trying to create a vlan interface on my ubuntu VM which has one network adapter. I could see that the vlan link has been successfully created, but I don't see any traffic passing through. ...
dnet's user avatar
  • 11

1
2
3 4 5
10