Questions tagged [netplan]

For questions specifically about Netplan, the YAML network configuration abstraction created by Canonical. If this question is not about Netplan, try a more general tag like [networking]

Netplan logo

Netplan is a utility that converts abstracts network configurations given in YAML format into an actual Linux network setup.

The YAML document describes network interfaces and how they should be set up, and Netplan uses this document to generate the configuration for the desired renderer, which may be NetworkManager () or systemd-networkd.


External Links

Official website and more information: https://netplan.io/

Source code: https://github.com/CanonicalLtd/netplan

50 questions
7
votes
0 answers

netplan configuration not active -- ubuntu 18.04

trying to set up a fixed IP address on one of two NIC. I try using netplan. Not working at all. Not an expert on this, I am out of my wits and ready to roll back to some other way (networkd). Maybe someone has a useful advice in any direction. Any…
onouv
  • 171
4
votes
1 answer

Lost network connectivity on Hetzner with Netplan bridge

I installed the Ubuntu 18.04 and wanted to have a bridge interface instead of using the main interface directly for KVM virtualization: Here is the Netplan default configuration after installation, which worked well: ---- # This file describes the…
3
votes
2 answers

2 network cards on 1 ubuntu server netplan config

I am trying to get a server running with 2 network cards. One network card will have a dynamic ip(DHCP) and the other will have a static ip 192.168.0.24. I have 2 network cards on this server, 1GB(enp4s0) and 10GB(enp5s0) My current fresh OS…
Justin S
  • 133
3
votes
0 answers

How to bridge a VLAN and a physical interface with netplan?

I have two workstations running Ubuntu 22.04 Server using netplan for network device management. The first workstation has 5 NICs. The only two that I think matter for this are enp0s25 and `ens1. Here is my netplan config from that…
3
votes
1 answer

Error: WARNING: systemd-networkd is not running, output will be incomplete

I am using systemd-networkd to render network interfaces, in the initial network configuration i had a network connection, but as soon as i boot into the bridged network via the netplan config it causes some errors for me. At first, i had the…
3
votes
1 answer

How to configure AP priority in netplan?

I would like to configure more than one AP in netplan, like this: wifis: wlan0: access-points: network1: password: "abc" priority: 0 network2: password: "def" …
tollo
  • 423
2
votes
1 answer

Can I set up a 'software' switch in Ubuntu instead of a bridge with Netplan?

I'm currently building a new version of my DIY router, I run Ubuntu 22.04 LTS with a minimal install, and run firewalld on top of it - and the newer hardware I run has a 'mix' of different port speeds - 10G, 2.5G and gigabit at the very least . I…
Journeyman Geek
  • 133,878
2
votes
1 answer

Multiple Interfaces on same subnet breaks PTP

I have a PC ("main PC") with two interfaces mgbe0 and mgbe1. Both of these interfaces connect to another PCs A and B (mgbe0->"A", mbge1->"B"). Both PCs A and B are on subnet 2: 192.168.2.xxx, and I cannot change this. So to connect to the other PCs,…
2
votes
1 answer

Add a device static route with netplan

I would like to add a static ip route to a device in my netplan configuration. A normal route looks like this: eth0: routes: - to: 10.0.0.0/24 via: 192.168.3.1 But instead of route to a via address, I would like to add…
kcid42
  • 21
2
votes
1 answer

Applying Netplan Access Point settings?

I am upgrading a previous configuration of an AIO server/access point to Ubuntu 20.04. I wrote a Netplan configuration for our interfaces, as follows - network: version: 2 renderer: NetworkManager ethernets: enp1s0: dhcp4: true …
2
votes
0 answers

Bridge config in netplan does not come up at boot

I had an ubuntu 18.04 working and decided to move it to a VM in Proxmmox. Configuration includes a bridge, it was working fine in the previous system but it does not come up at boot in the Proxmox VM. Here is my netplan config: network: …
drg
  • 21
2
votes
1 answer

Ubuntu 18.04 netplan with bridge

I am running Ubuntu 18.04 and my netplan configuration has suddenly stopped working. When I run sudo netplan apply the following messages appear and I lose connection Traceback (most recent call last): File "/usr/sbin/netplan", line 23, in…
emergon
  • 23
1
vote
1 answer

What is the default tunnel 'mode' when creating with `ip`

I'm trying to convert this ip tunnel creation process: sudo ip tuntap add tun0 mode tun sudo ip addr add 192.168.7.2/25 dev tun0 sudo ip link set dev tun0 up sudo ip addr show tun0 to a netplan configuration, but need to specify more parameters in…
tarabyte
  • 2,585
1
vote
2 answers

NetworkManager Automatic Ethernet Connection

I've recently picked up Rocky Linux 9.1 and am trying to get the basic networking to work correctly using netplan and networkmanager. There must be something simple missing here... I have a very simple NetPlan yaml: network: version: 2 …
Joe Bauman
  • 21
  • 1
  • 6
1
vote
1 answer

Configure two NICs with different IPs in Netplan - Ubuntu 22.04

Configure Two NICs for Different Networks on the Same Machine Question How do I correctly configure two NICs on separate networks? The goal is is to have all traffic returned from the interface it was received on. If anyone can provide an example of…
Ax0n
  • 119
1
2 3 4