Questions tagged [netplan]

81 questions
8
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
  • 226
  • 1
  • 2
  • 10
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
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…
3
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
  • 288
  • 4
  • 13
3
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…
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
  • 361
  • 1
  • 6
  • 16
3
votes
1 answer

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
  • 31
  • 2
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
  • 5
  • 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 ---| …
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
  • 171
  • 1
  • 1
  • 4
2
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
  • 221
  • 3
  • 8
2
votes
0 answers

OpenSSH server on Ubuntu Impish fails to start after reboot, only manual restart works

Preface and issue I have an Ubuntu 21.10 (Impish) server, which network is managed by netplan and systemd-networkd. My /etc/netplan/01-netcfg.yaml looks like this: network: version: 2 renderer: networkd ethernets: eth0: addresses: …
burnersk
  • 1,966
  • 4
  • 25
  • 38
2
votes
0 answers

Static IP - Destination Host Unreachable

I'm a newbie to system administration. I've installed remotely a Dell server using iDRAC interface. Server's ip is 200.159.243.146 and everything is fine with it. Using this interface I've installed Ubuntu Server 20.04 without problem. However, from…
1
vote
0 answers

Override default gateway when using netplan DHCP

I would like to use DHCP for IP address assignment but I would also like to override/specify the default gateway. Is this possible in netplan? Something like the following (which doesn't work BTW)... network: version: 2 renderer: networkd …
Mark S
  • 11
  • 2
1
2 3 4 5 6