Ipv6 route gets invalidated but not renewed

NOTE: This solution works for Hetzner Cloud Instance. This is UNTESTED on dedicated servers.

With the glad help of @tomp we figured out another solution:

  1. Move the eth0 subnet from /64 to /128
asbachb@ubuntu-8gb-nbg1-1:~$ cat /etc/netplan/50-cloud-init.yaml 
# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    version: 2
    ethernets:
        eth0:
            addresses:
            - 2a01:4f8:xxxx:xxxx::1/128 #Previously 2a01:4f8:xxxx:xxxx::1/64
            dhcp4: true
            gateway6: fe80::1
            match:
                macaddress: xx:xx:xx:xx:xx:xx
            set-name: eth0
  1. Assign /64 subnet to lxdbr0
asbachb@ubuntu-8gb-nbg1-1:~$ lxc network show lxdbr0 
config:
  ipv4.address: 10.254.210.1/24
  ipv4.nat: "true"
  ipv6.address: 2a01:4f8:xxxx:xxxx::2/64
description: ""
name: lxdbr0
type: bridge
used_by:
 - none
managed: true
status: Created
locations:
- none
2 Likes