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

Netplan not bringing up interface

Having issues with a fresh install of Ubuntu 22.10 to manage wired network. During install it would detect 4 ports, and I configured one with DHCP and disabled all others. It's a very simple ...
0 votes
2 answers
23 views

IPv6 source address selection with addrlabel and netplan

I have configured my Ubuntu 22.04 via netplan like this: network: version: 2 renderer: networkd ethernets: enp3s0: addresses: - 192.168.10.10/24 - 2001:db8:6789::10/64 ...
  • 136
0 votes
0 answers
23 views

How to set up internet connecitivty on a daisy chain network with one NAT interface on Virtual Box?

I am creating a daisy chain network, and I have three Ubuntu virtual machines on Virtual Box: one gateway, one router (through which all network traffic passes), and an end-node. Each VM has two ...
0 votes
0 answers
26 views

VM Guest OS (homeassistant) on VLAN aware bridge does not fetch ip from dchp

I've setup VLAN aware bridges on the Host OS (Ubuntu Server 20.04 with KVM and using Netplan) and my guest OS (homeassistant OS) is not fetching the ip address from a dhcp server (external, not on ...
1 vote
2 answers
34 views

How to configure netplan so enp9s0 goes to internet and enp5s0 goes to lan?

I must build a replacement server using Ubuntu 20.04.5 LTS, and I'm trying to migrate from NetworkManager to netplan. My new server can connect to the internet, but complains that it has no route to ...
  • 129
1 vote
3 answers
62 views

How to correct bad auto netplan configuration of wpa_supplicant Ubuntu 20:04

I use Ubuntu 20.04 desktop on a Raspberry Pi 4 and I am trying to configure netplan. I have seen How to configure wpa_supplicant in Ubuntu server 20.04. I configured netplan to connect to wlan0 and it ...
0 votes
1 answer
66 views

Use netplan to setup two tagged Vlans

For my network I have setup two VLans (VLan Ids: 1 and 2) on the switch. My ubuntu core 22.04.1 machine is connected to the switch through one tagged port that allows for VLan 1 and VLan 2 traffic. ...
  • 1
0 votes
0 answers
37 views

Bridge and Wireguard network config

I have Intel NUC with WireGuard client. It works fine. I want to connect another machine via NUC by Ethernet and WireGuard. (Router) <----> NUC (Ubuntu + VPN client) <----> Another Linux ...
  • 101
1 vote
1 answer
52 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 ...
0 votes
0 answers
39 views

Setting up secondary interface with netplan using DHCP - both interfaces in same subnet

I am trying to configure two Network interfaces on an EC2 instance using Netplan. These interfaces have the same subnet. When the cloud-init configures it, the netplan configuration looks as follows: ...
0 votes
0 answers
21 views

Netplan not being applied at startup

I have an old PC which I wanted to make into a linux server. I downloaded Linux Server 20.04 LTS onto my USB and installed it normally without any issues. Then, when trying to connect to the internet ...
  • 1
-1 votes
0 answers
40 views

Netplan malformed address + deprecated gateway4 error

I am getting the following error when trying to run "netplan apply" (all commands are as root user) ** (generate:2099): WARNING **: 15:14:28.784: `gateway4` has been deprecated, use default ...
0 votes
0 answers
63 views

Netplan, networkd, resolvconf conflicts: Can't change DNS servers

I'm running Ubuntu 22.04.1 on a headless server and trying to change the DNS that the server uses. I set up the netplan .yaml file like this to use Cloudflare's servers: network: version: 2 ...
0 votes
0 answers
28 views

Trying to use a tunnel from HE but some IPv6 connectivity is broken

I have a server from Kimsufi (OVH Eco branch) but unfortunatelly they only provide a /128 IPv6 block. So, I decided to use a Hurricane Electric (HE) tunnel to have a /64 IPv6 block. I've followed HE ...
1 vote
0 answers
46 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 ...
0 votes
0 answers
52 views

Fixed ip in WiFi adapter via netplan

I want to establish a fixed ip to my WiFi adapter in Ubuntu 20.04 from netplan but I always get an error "No access points defined" when I run "netplan try". Is it possible to do ...
  • 1
0 votes
1 answer
44 views

Bind/route subnet to specific interface

I have a server with 2 network interfaces, ens160 routed (gateway assigned) for management and ens192 non-routed (no gateway) for iSCSi. How can I either bind iSCSI to only use the ens192 interface or ...
1 vote
1 answer
50 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 (...
  • 121
0 votes
0 answers
42 views

Ubuntu 20.04 netplan second interface to access a host directly

i've an ubuntu 20.04 server with netplan (netplan.io/focal-updates,now 0.104-0ubuntu2~20.04.2 amd64). There are two network interfaces ens18 and ens19. ens18 is the main interface, all traffic should ...
  • 1
0 votes
1 answer
36 views

Setup DSL connection via netplan?

I haven't seen any options to setup up DSL connection in /etc/netplan? I know it's possible via pppoeconf, but I'm not sure how to modify the dsl-provider file/name (I need to setup for 2 different ...
  • 53
0 votes
2 answers
99 views

Netplan file order

I need help understanding the order in which the netplan config files are applied and, if possible, how to set a fallback config. Scenario: Let's say I have two config files, A and B. Config files A ...
0 votes
0 answers
29 views

2 Interfaces with different metric, and1 single default gateway - loosing connection

I have a weird issue. I have two interfaces: One is my WiFi, The other is as 4G USB I am trying to setup the default GW through the 4G USB (which is NATed by the 4G provider, hence, I can't SSH ...
  • 1
0 votes
1 answer
56 views

Translating ip route add into netplan

Would you please help me with one simple question. I would like to have persistent route in my network settings. How can I reproduce this command in netplan (Ubuntu 22.10): sudo ip route add 10.0.10....
  • 191
0 votes
1 answer
52 views

Migrate from ifupdown to netplan

I try to migrate from ifupdown to netplan, but the result is always not same. What is the correct netplan configuration for networking configuration like this: auto lo iface lo inet loopback auto ...
0 votes
1 answer
27 views

MTU specified in netplan is not applied at boot

My netplan file looks like so: network: version: 2 renderer: networkd ethernets: eth0: addresses: - 169.254.1.1/24 mtu: 9000 After boot the eth0 interface takes the ...
  • 291
1 vote
0 answers
95 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 ...
0 votes
1 answer
84 views

issue sshd_config / systemctl restart

one of my workstation (previously it was a 22.04.1 server edition but according to NUC compatibility list last BIOS and dbx EUFI Database uggrade force me to downgrade to workstation as Server edition ...
  • 19
0 votes
0 answers
118 views

Can't ping local IPv6 on Ubuntu 22.04.1 LTS with Netplan

I have truly bizarre issue. I setup my network on VPS, according to guide, with Netplan. Everything works fine for internet connection, but I can't seems to be able to ping local IPv6, IPv4 works as ...
1 vote
2 answers
394 views

Failed to Add Public IP to KVM Virtual Machine on Ubuntu 22.04.1 Server Host or Problem on Networking

Background Problems I have a Dedicated Server (Ubuntu 22.04.1 LTS) with five Public IPs as below: xxx.xxx.51.20 (Main Ip) xxx.xxx.198.104 xxx.xxx.198.105 xxx.xxx.198.106 xxx.xxx.198.107 I want to ...
0 votes
2 answers
222 views

Temporarily add multiple ip addresses to interface in 22.04

I need to temporarily, dynamically add and remove ip addresses from the netplan.conf (/etc/netplan/myNetplanConfig.conf). In earlier versions the ip command could be used to temporarily add ip ...
  • 103
1 vote
0 answers
68 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 ...
0 votes
0 answers
46 views

Ubuntu as router with netplan & dnsmasq - can't reach websites

I have setup Ubuntu 22.04 LTS as a router for the following scenario: Client (192.168.222.100) <--> Switch <--> Ubuntu Router eth0 (192.168.222.1) <--> Ubuntu Router enx2887ba778049 (...
0 votes
1 answer
174 views

Wlan0 will not connect to WiFi?

I'm trying to run a USB Wi-Fi dongle off Ubuntu Server. I edited /etc/netplan/*.yaml and I'm running multiple network interfaces, which all work as intended. See the lines below for the Wi-Fi setting. ...
1 vote
1 answer
93 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 ...
0 votes
1 answer
265 views

Migrate Ubuntu server from NetPlan to NetworkManager without disconnection (possibly over SSH)

I see that Ubuntu server after the installation comes as default with NetPlan with a DHCP configuration (at least in Ubuntu 22.04 focal fossa). Some users don't want NetPlan and just want ...
0 votes
1 answer
151 views

How to define multiple interfaces which are in the same subnet

In my setup I have a Zabbix Server on a Hyper-V Ubuntu Server 22.04 LTS VM which is running on Server A. The Ubuntu Server has two virtual interfaces of which each is associated to one physical ...
  • 103
0 votes
0 answers
29 views

Netplan nameservers settings not used without resolv.conf entry

I read here that you're usually not supposed to edit resolv.conf, since it is managed by other services. The server is running Ubuntu 22.04.1 LTS. However, the DNS on my server is not working unless I ...
0 votes
0 answers
67 views

Unable to make any changes to NetPlan without dropping connection

This recently just started happening. I run a hosting company, and adding /32s to our interface is something common so users can have dedicated IPs for their game servers. We've always done this with ...
0 votes
1 answer
349 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....
  • 1
0 votes
1 answer
226 views

Netplan: Access Point setup with WPA2 authentication

I can successfully set up a Raspberry Pi running Ubuntu 22.04 Server to act as an access point with netplan. It's set up as per the details in https://netplan.io/reference#properties-for-device-type-...
  • 1
1 vote
1 answer
573 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 ...
0 votes
0 answers
34 views

ssh: netplan configuration file in not in the directory and i can't create one

root@id-486188:/etc/netplan# ls root@id-486188:/etc/netplan# i have no configuration file in netplan directory. and when i want to create one, i see this error: sudo: unable to resolve host id-486188: ...
  • 1
1 vote
0 answers
51 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, ...
0 votes
1 answer
42 views

Netplan route code to support secondary network

Clean install of 22.04 server with all available updates applied. Network: Router (10.1.1.254)-->Server (10.1.1.1)-->second NIC(192.168.49.1)--> Desktop (Windows 10). Windows 11 Desktop on 10....
  • 1
0 votes
0 answers
384 views

Netplan configuration problems in Ubuntu Server 22.10

I have problems with netplan in Ubuntu Server 22.10. IPv4 network not working (after reboot). Here is my netplan config: network: ethernets: ens3: dhcp4: false dhcp6: false ...
  • 1
0 votes
0 answers
73 views

Netplan wpa_supplicant logging

Before switching to netplan i could configure wpa_supplicant to start with "-f /path/to/.log -d" in pre-up. Is it possible to still set these settings so i can have clear and separated logs ...
  • 1
0 votes
0 answers
305 views

Ubuntu 22.10 server amd64: Network can not reach local addresses but CAN ping internet after boot. I have to run netplan apply to establish comm

Ok... this is baffling to me. I just performed a fresh install of ubuntu 22.10 server on a dell poweredge T430. After first boot, and subsequent reboots, the server is unable to contact devices on ...
0 votes
1 answer
41 views

How to get DHCP from both interfaces in bonding active-backup mode?

I have two interfaces connected to two different routers - with different gateway and subnets. How to get IP addresses on bond interface from both enp1s0 and enp2s0 (in bonding active-backup mode)? ...
  • 11
0 votes
0 answers
62 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 ...
  • 175
1 vote
1 answer
267 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 ...
  • 11

1
2 3 4 5
18