Add IPv6 subnet for use with VMs

robetus

Well-Known Member
Jul 8, 2017
54
1
48
Las Vegas, NV
I'm trying to add an IPv6 subnet to my proxmox host for use on my VMs. I have the following:

interfaces file:
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback

iface enp7s0f0 inet manual
iface enp7s0f0 inet6 manual

auto vmbr0
iface vmbr0 inet static
    address 22.144.64.130
    netmask 255.255.255.192
    gateway 22.144.64.129
    bridge_ports enp7s0f0
    bridge_stp off
    bridge_fd 0

iface vmbr0 inet6 static
    address 2601:bed2:2::2
    netmask 48
    gateway 2601:bed2:2::1

iface enp7s0f1 inet manual

The main IP 2601:bed2:2::2 pings just fine before and after a reboot, but the strange part is that when I reboot the proxmox host the IPv6 addresses on the KVM and LXC containers start working but then die after maybe 30 minutes. I'm using /64s for the VMs taken from the /48 such as 2601:bed2:2:b756:7:2a48:671:4dfa/64 and 2601:bed2:2:b749:369:65b6:87b7:7a0a/64.

Any ideas on what could be happening? The /48 is statically routed to the proxmox host from a vlan.
 
I solved this on an LXC container at least by creating /etc/sysctl.d/ipv6.conf and adding to it:

Code:
net.ipv6.conf.eth0.accept_ra=0

I then noticed that network interface file ifcfg-eth0 did not have an IPv6 gateway in it so I added it. IPv6 is now working.

I'm using PVE 5.1.
 
I solved this on an LXC container at least by creating /etc/sysctl.d/ipv6.conf and adding to it:

Code:
net.ipv6.conf.eth0.accept_ra=0

I then noticed that network interface file ifcfg-eth0 did not have an IPv6 gateway in it so I added it. IPv6 is now working.

I'm using PVE 5.1.

So what about KVM?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!