Questions tagged [netplan]

124 questions
14
votes
4 answers

How to add a static secondary IP to a DHCP interface using netplan?

My server has a file /etc/netplan/50-cloud-init.yaml with the following content: # This file is generated from information provided by # the datasource. Changes to it will not persist across an instance. # To disable cloud-init's network…
6
votes
2 answers

Cannot ssh or ping hostname, but dig and nslookup work on Ubuntu 18.04

I updated my kernel this weekend, and now I'm using 5.3.1. christopher@HAL4:~$ uname -r 5.3.1-050301-generic I need to login to servers, but I cannot do so by hostname any longer. For example, I have a server, "web4," and it's local IP is…
6
votes
1 answer

Replace systemd-machine-id-setup with alternative?

We're using a ubuntu-18.04 template on a virtualization environment. Therefore, before creating the template, we always empty the /etc/machine-id file so it's recreated upon the first boot. The problem is that if several ubuntu-18-based VMs are…
nKn
  • 111
5
votes
2 answers

Adding a whole IPv6 /64 block to a server using Netplan

I have read Adding a whole IPv6 /64 block to an network interface on debian We want to make use of the AnyIP feature to add a whole IPv6 /64 subnet block to a web hosting server but using Netplan because we are on Ubuntu 18.04 Side note: a couple of…
5
votes
2 answers

How to get Netplan to set the DNS server in /etc/resolv.conf based on info coming from the DHCP server?

I'm setting up a 4 x RPi Cluster with the following simple network topology: All 4 RPi nodes have the latest Ubuntu Server LTS 20.04 OS. rpi1 is my primary/gateway node. I did the following on rpi1: Assigned a static IP Address on eth0 of 10.0.0.1…
Magnus
  • 205
4
votes
1 answer

Systemd's Networkd: Unable to add ipv6 default route

I am having a hell of a time getting IPv6 address connectivity set up on my new VPS. I thought I knew what I was doing but apparently networkd disagrees, I keep getting issues when trying to add a default route. Here is the networking information…
4
votes
2 answers

What controls the NIC naming convention after fresh Ubuntu 20.04 install?

This is a fresh install Ubuntu server 20.04.04 system. I'm using networkd and netplan to configure networking. I did not do any custom install steps, just loaded the .iso and installed Ubuntu server through the prompts. When these machines were…
Rino Bino
  • 692
  • 13
  • 34
4
votes
1 answer

Apply DNS configuration to all interfaces

On Ubuntu 20.04, how can I configure DNS for all Ethernet interfaces, regardless of how they've been named? I have some machines with eth0 as the primary network interface and others with ens5. I'd like to use the same DNS configuration regardless…
cov
  • 53
4
votes
2 answers

Ubuntu 18.04 policy based routing: netplan does not populate routing table

I have 2 network interfaces - 1 connected to internal network and 1 connected to external network, both interfaces acquire their IP from DHCP. By default traffic goes through internal network and external network should be routed separately through…
rsoome
  • 41
3
votes
0 answers

What is the meaning of using netplan?

I’m running a few Ubuntu servers and recently started upgrading from 16.04 to 18.04. In this context I came in contact with NetworkManager and netplan. After sticking to ifupdown first, I finally decided to migrate to NettworkManager due to a bug in…
Norbert
  • 241
3
votes
1 answer

DHCP conflicts on two Ubuntu 18.04 servers

I have two machines running Ubuntu 18.04 server edition. Networking go through netplan. They get their IPv4 from a DHCP server v6.3 running on Windows Server 2012 R2. For some reason, they don't provide their MAC address but a very long…
m-ric
  • 241
3
votes
1 answer

netplan configuration on Ubuntu 18.04 failing

EDIT: This is precise situation after I took the code to rename the interfaces. This is my netplan configuration file: network: version: 2 renderer: networkd ethernets: eno1: dhcp4: no dhcp6: no addresses:…
Sunny
  • 381
3
votes
3 answers

How does systemd-resolved prioritize DNS servers in Ubuntu?

Environment Ubuntu 22.04 LTS Netplan configuration Configuration Multiple DNS servers configured: network: version: 2 renderer: networkd ethernets: eth0: dhcp4: true nameservers: addresses: [192.168.1.1, 8.8.8.8,…
Ilgar
  • 41
3
votes
1 answer

Regarding netplan settings being reset after reboot on Ubuntu 22.04.5

We have encountered an issue on a system with a fresh installation of Ubuntu 22.04.5 LTS, where editing /etc/netplan/50-cloud-init.yaml and applying the changes with netplan apply does not persist after a reboot. After restarting the system, the…
3
votes
1 answer

Is "netplan apply" required if I reboot after changing /etc/netplan/xxx-config.yaml file

If I change the network device config in /etc/netplan/00-installer-config.yaml and then reboot will it apply the changes, or must I explicitly do "netplan apply"? (Ubuntu 22.04)
guesty
  • 105
  • 2
  • 7
1
2 3
8 9