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

Persistently configuring 10Mbps ethernet interface

In order for my cell modem gateway to run in low power mode its ethernet interface must be configured to 10Mbps full duplex (not auto, even if the connected device is 10Mbps). On my SBC running Ubuntu ...
davegravy's user avatar
  • 101
0 votes
1 answer
126 views

Invalid YAML: inconsistent indentation: addresses: [192.168.1.120/24]

In my host Ubuntu 22.04 Desktop, I'm creating 2 bridges for eth0-br0 and eth1-br1. br1 needs LAN access from the host machine 192.168.1.120/24 to the guest machine 192.168.1.1/24. I haven't been able ...
user1416486's user avatar
0 votes
1 answer
159 views

Netplan bridge multiple networks, Ubuntu 20.04 server

I have a robot with an onboard computer, that communicates via Ethernet to the base station (by way of radio, but the interface on the robot's computer is Ethernet). The Robot has a particular sensor ...
Ben Bird's user avatar
  • 121
0 votes
1 answer
56 views

Ubuntu server 20.04 with netplan and two 1G ports that are on the same subnet

I am getting collocation service for my hardware that has 4x1G ports on the same network card. Two of the ports are plugged and they correspond to eno5 and eno6 interfaces on my operating system which ...
PouJa's user avatar
  • 71
0 votes
0 answers
579 views

Undoing netplan configuration in Ubuntu 22.04.2 LTS

I've followed the highest voted answer by heynnema on this Linux Ubuntu Server 20.04 LTS: 'Network Unreachable' question on netplan: Changed /etc/netplan/'01-network-manager-all.yml content ...
user_90809's user avatar
0 votes
0 answers
74 views

Not getting the interface updated on Ubuntu 18.04

Could someone help me to identify what I might be doing wrong? When I'm using the code to generate a ethernet ens38, it is not going through. It doesn't really give me any error when I save the ...
Sketch's user avatar
  • 1
0 votes
1 answer
1k views

Why am I getting error: `found a tab character that violate indentation` in my Netplan YAML file?

I am getting the following error when trying to do sudo netplan apply: Invalid YAML at //etc/netplan/lan-segment.yaml line 11 column 0: found a tab character that violate indentation This happened ...
Sketch's user avatar
  • 1
0 votes
0 answers
30 views

network interfaces not recognized

I installed Ubuntu 20.04 from DVD to an HP computer. I configured a .yaml file in /etc/netplan to assign static addresses to the two interfaces. On one interface, the green light is on, and the peer ...
William Atwood's user avatar
0 votes
0 answers
127 views

Why does my network stop working when adding a second IP to a second NIC in netplan and starting a docker container exposed on that nic's IP?

"Stop working" might be an overstatement, but parts of it do, and I don't know enough about what's happening to phrase it shorter for a title. Basically, I have A machine with 2 nic ...
Aephir's user avatar
  • 19
0 votes
1 answer
276 views

Why can't I access internet via vlan in private network?

As the title suggests, I'm having issues setting up the networking so that a server can access the internet. Bear with me while I lay out the infrastructure. All 3 servers are hosted by Hetzner. The ...
stewie's user avatar
  • 101
0 votes
0 answers
68 views

Assigning IP addresses to eth0

I'm totally new to both linux and pentesting. I'm following the HTB academy, but I'm stuck on assigning IP addresses to eth0 (enp1s0 on my machine). I started with sudo ifconfig enp1s0 up, then assign ...
Loz426's user avatar
  • 1
0 votes
1 answer
260 views

Same IP but for two different interfaces netplan

I have an ubuntu server 22.04 installation on a laptop with two interfaces wlp3s0 (wireless) and enp3s0 (ethernet). Wireless connection is used at home, ethernet connection is used at the office. The ...
llesh's user avatar
  • 119
0 votes
1 answer
3k views

How to setup static IP with wireless interface and netplan on ubuntu 22.04?

I am trying to setup a static ip for a ubuntu server 22.04 instance on a laptop. I though I am going to do that by modifying netplan configuration. IP of router is 192.168.80.32 netplan config file is ...
llesh's user avatar
  • 119
0 votes
1 answer
219 views

Ubuntu VLAN configuration problems

I've an Ubuntu box that is directly connecting to a port of firewall appliance running OPNSense. This port is running a DHCP on VLAN (say 10) and I need to configure the Ubuntu box to connect to it. I ...
Pankaj's user avatar
  • 169
-2 votes
1 answer
607 views

What does "routes" mean? [Netplan, YAML file]

Here's an example I've taken from somewhere: routes: - to: default via: 10.225.192.1 I've seen that this syntax has replaced the "gateway4", however, I've searched for infomation ...
Camy07's user avatar
  • 1
1 vote
2 answers
947 views

Temporary failure in name resolution Ubuntu 22.04 -> 22.10

I recently upgraded from 22.04 to 22.10. Now I get a 'Temporary failure in name resolution' when I try to ping a domain name a $sudo resolvectl status shows this for eth0: Link 3 (eth0) Current Scopes:...
William J. Starck's user avatar
0 votes
1 answer
34 views

What directory does netplan write networkd config to?

Where does netplan output its configuration to? /etc/systemd/network is empty, even though netplan uses networkd.
Merlijn Sebrechts's user avatar
2 votes
1 answer
97 views

My Ubuntu client says that the wired connection is unmanaged

This is what is showing when I look at the wired management. I don't know what I did that it's showing all of these and I can no longer access the internet.
Smokechief's user avatar
0 votes
0 answers
106 views

Trouble configuring Netplan w/ multiple VLANS and Bridges on Single NIC for KVM/QEMU

The simplicity of Netplan has me stumped again. Attempting to configure a single NIC with multiple subnets to be used with kvm/qemu VM hosting. OS: Ubuntu 22.04.1 LTS Switch: TP-Link TL-SG108E I ...
I Own I Owe Oh My's user avatar
0 votes
0 answers
189 views

Recover DHCP lease if it has been lost

So my system lost it's DHCPv4 lease. Since this is the WAN uplink, the system then became unreachable. I can't see any trace that it has tried to recovery from this. Apr 3 00:31:47 mistik systemd-...
Konstigt's user avatar
  • 370
1 vote
1 answer
145 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
0 votes
0 answers
66 views

No internet access on Ubuntu server when connected to Trunk port

I have ubuntu server configured as a virtual router for routing traffic from the isolated VLANs 10.2.0.0/16 (VLAN 201), 10.4.0.0/16 (VLAN 401) and 10.6.0.0/16 (VLAN 601) to the external network 10.1.1....
user12140050's user avatar
0 votes
1 answer
496 views

Duplicate DNS entries after updating to 22.04

My server has two network interfaces configured with DHCP and after updating from Ubuntu 20.04 5.4.0-144-generic to 22.04 5.15.0-67-generic, this results in /var/run/systemd/resolve/resolv.conf ...
DrLime2k10's user avatar
1 vote
1 answer
401 views

Load Netplan yaml file from other directory apart from "/etc/netplan" in Ubuntu 22.04 LTS Desktop

System - Ubuntu 22.04 LTS Desktop Netplan renderer - NetworkManager Usecase - By default, there is a netplan yaml 01-network-manager-all.yaml file in /etc/netplan. On boot the netplan is applied. ...
shaggy's user avatar
  • 35
0 votes
0 answers
50 views

netplan network accessibility check

Is there any way to check connectivity in netplan to check real connection state (is Internet connection alive or not)? As an example, I have a connection through LAN router (default gateway) and ...
QuAzI's user avatar
  • 1
1 vote
0 answers
247 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
0 votes
0 answers
521 views

22.04: How to add persistent routes in netplan

What is the best way to add the following rules to netplan? 1 ip rule add from 172.16.9.132 table 128 2 ip route add table 128 default via 172.16.9.1 3 ip route add table 128 to 172.16.9.0/24 dev eth0 ...
Maxii's user avatar
  • 101
0 votes
1 answer
177 views

netplan wifi with multiple AP

I have two AP and want to connect one of them and use the second as a fallback. But currently, netplan connects to one of them and if it switched off, only manual switch wpa_cli -i wlp2s0 ...
QuAzI's user avatar
  • 1
0 votes
0 answers
108 views

KVM netplan bridge is not loaded after reboot, but works manually loaded

I have a KVM host running on private network with subnet mask 192.168.62.* The server has 4 ethernet interfaces, 2 of them are connected to the same switch. I have tried to create a netplan yaml file, ...
Myk's user avatar
  • 1
0 votes
1 answer
15 views

Wrong ARP entry on Lab setup with 2x10G connected through a switch

I have two boxes connected through a 10G switch: 1 "sender" box with 1x port static address 10.0.1.1 1 "receiver" box with 2x ports static addresses 10.0.1.2 and 10.0.1.3 My goal ...
Something Something's user avatar
0 votes
1 answer
165 views

Restore netplan

I have removed netplan from Ubuntu 22.04 and now the network is not working, I cannot install the netplan again as internet is not working. How can I restore the network?
Vikram's user avatar
  • 131
1 vote
2 answers
336 views

How to get Ubuntu 22 LXC containers on the same host to be able to resolve each other’s names?

Environment Host is Ubuntu 22.04.2 LTS I have 2 sets of containers Ubuntu 16.04.7 LTS containers which work fine Ubuntu 22.04.2 LTS which I’m testing currently as I want to upgrade all containers ...
Sam's user avatar
  • 11
0 votes
1 answer
1k views

ubuntu 22.04 routing using netplan

Hi I have a new ubuntu server with 2 interfaces and i wrote a netpaln config for it like this: network: version: 2 renderer: networkd ethernets: ens160: dhcp4: no addresses: - ...
pumper's user avatar
  • 3
1 vote
0 answers
2k 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
1 answer
287 views

Set OVS interface MAC via netplan

I have set up an ovs bridge in order to take advantage of libvirt's virtual network with vlan support. As recommended, the host network interface is configured on an ovs port, rather than directly on ...
darcey's user avatar
  • 13
0 votes
0 answers
143 views

Edit host machine's network from inside Docker container

I'm trying to run an application that can change the network configuration settings. Such as changing the ip of the device etc. Normally, in Ubuntu, netplan is a program that can achieve this. But I ...
ybalcanci's user avatar
0 votes
0 answers
22 views

Inconsistent Identation in file yaml

I am using Ubuntu as Server for odoo with Virtualbox, and i have 2 networks card one is bridge adapter adn the other one is internal net When I try to edit file 00-installer-config.yaml like this I ...
Tuan Do's user avatar
0 votes
0 answers
192 views

Ubuntu Server 22.04.2 - Changed IP, but DNS Server still pointing to old IP

I have a Ubuntu 22.04.2 server that I setup with a static IP and joined to a Windows Domain. The IP was configured on /etc/netplan/00-installer-config.yaml and /etc/netplan/01-netcfg.yaml. From other ...
Carsten's user avatar
  • 101
0 votes
0 answers
163 views

netplan bridge ethernet and wifi so that device on wifi can be accessed though ethernet interface

I'm trying to bridge the ethernet and wifi interfaces of a raspberry pi 4 running ubuntu 20, and using netplan. The idea is to be able to access a device that has a wifi hotspot, through the ethernet ...
Ben Bird's user avatar
  • 121
0 votes
2 answers
360 views

Netplan with static IP keeps disconnecting

I have multiple Ubuntu servers in the same network with two network interfaces. One for public Internet access (80.90.100.40/29), one for internal network communication (192.168.1.35/28). All of the ...
erdimeola's user avatar
  • 101
0 votes
0 answers
516 views

Ubuntu 20.04 netplan static default route lost after reboot

this is a new Ubuntu 20.04 install and I have ip and static route configured in netplan like below: $cat /etc/netplan/lan.yaml network: renderer: networkd ethernets: lan: dhcp4: false ...
monkincloud's user avatar
0 votes
1 answer
80 views

Routing not working the same on two internal NIC

on mu Ubuntu 22.04 server I have two internal NIC and one external connected to the Internet. I have defined the interfaces with Netplan as follows : network: ethernets: eno1: dhcp4: true ...
JanP's user avatar
  • 21
1 vote
0 answers
227 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
2 votes
0 answers
72 views

netplan is not concatenating addresses on separate YAML files

I am trying to set up an additional address in an ethernet interface using netplan. The man page for netplan-generate mentions that the sequences for the same key configuration should be concatenated ,...
PySerial Killer's user avatar
0 votes
1 answer
755 views

Ubuntu Server 22.04 has two IP addresses

My Ubuntu Server has over LAN (eth0) two IPv4 addresses from one day to another. Maybe this happened with an update. I use it as a web server for WordPress and local DNS with Pi-Hole. All services are ...
Alex's user avatar
  • 3
0 votes
1 answer
90 views

Unmanaged vlan bridges

I am trying to add a few unmanaged bridges to LXD. I have 2 NIC's on the server, one is the main Lan for the server and it's own services and the other is meant to be used by LXD exclusively. I want ...
Denny's user avatar
  • 1
0 votes
0 answers
95 views

How do I force eth0 as default?

So I have a headless Raspberry Pi 4B running Ubuntu 22.04.2 LTS, configured with static IPs in /etc/netplan/50-cloud-init.yaml... eth0:192.168.1.230 and wlan0:192.168.1.231. Generally I tend to watch ...
Charlie DinAlt's user avatar
0 votes
0 answers
77 views

Netplan wasn't applied

I edited netplan yaml file in the /etc/netplan directory to set static ip on ens1f0 interface. network: ethernets: eno1: addresses: - 163.239.14.35/24 gateway4: 163.239.14.1 ...
JungHwanPark's user avatar
0 votes
1 answer
202 views

Netplan: Two primary IPs on a VLAN subinterface

The following Netplan config results in only one of those IPs becoming primary (the other one becomes secondary): vlans: vlan10: addresses: - 1.1.1.1/24 - 1.1.1.2/24 ...
dandreye's user avatar
0 votes
0 answers
106 views

Adjusting settings from Ubuntu 14.04 to 22.10

Recently, Ubuntu Server 14.04 in my company got broken. We used that server as default gateway, users have access to file server (Windows 2012), internet and VPN. I made connection with file server ...
Bokica's user avatar
  • 1

1
2
3 4 5
20