Questions tagged [netplan]
106 questions
12
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…

Torsten Bronger
- 276
- 1
- 2
- 12
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
- 7
4
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…

DevOpsSauce
- 348
- 1
- 5
- 22
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…

Foxie The Yiffer
- 41
- 2
4
votes
1 answer
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…

Jeroen Vermeulen - MageHost
- 654
- 6
- 15
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
- 1
- 2
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
- 9
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
- 1
- 6
- 16
2
votes
0 answers
Configure netplan to use a different interface for bridge
I'm setting up a virtual machine host on Ubuntu 18.04.3. I installed KVM and have succesfully set up a qemu vm which connects through a bridged network. It shows up as a regular machine in my network.
vm host: 192.168.178.14
vm guest:…

Forkbeard
- 121
- 4
2
votes
0 answers
Netplan doesn't configure VLAN on hotplug of underlying link
We have the following netplan configuration:
network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: yes
ens9: {}
vlans:
ens9.4000:
id: 4000
link: ens9
addresses: [ "a.a.a.a/29",…

blafasel
- 488
- 4
- 10
2
votes
1 answer
Netplan: Route multiple parallel internet connections with port forwarding to a single server with 1 network port
Here's my network diagram:
56.56.56.56 192.168.0.1/24
MAC:AA:BB:CC:DD:EE:01
___________
---| Modem 1 |-------
| ___________ | ___________
Internet ---| …

tudor -Reinstate Monica-
- 1,805
- 18
- 36
2
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
- 191
- 1
- 1
- 4
2
votes
1 answer
Converting Ubuntu 18.04 from interfaces to netplan for network configuration
An old employee at my place of work set up a Ubuntu 18.04 server instance to use the /etc/network/interfaces file for network configuration. This has been causing some issues and I would like to revert back to using the /etc/netplan/*.yaml file…

MotoDave452
- 277
- 7
- 16
2
votes
0 answers
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, but the value gets always overriden.
base yaml…

PySerial Killer
- 121
- 3
2
votes
2 answers
netplan does not implement the route to gateway, in Ubuntu 22.04
sorry if this is trivial ... but I do not seem to be able to get netplan to set the proper route to the default gateway. I have to manually set it using 'sudo route add default gw [...]' to enable the server to reach the internet.
This is my current…

CvM_curious
- 21
- 1
- 2