[SOLVED] Can't get ipv6 on vm (debian) working

loininger

New Member
Dec 18, 2020
2
0
1
40
Hello,

I'm trying to get a public ipv6 on my debian vm, I am new to proxmox.

I have got a dedicated server from servdiscount, they provide me with a ffff:ffff:ffff:ffff::/64 ipv6 net. I want to use one, or more, ipv6 on my virtual machine.
therefore I followed a tutorial from hetzner, which got my ipv4 working, but not my ipv6 unfortunately.

Here is what I did:

on the proxmox host system I edited the /etc/sysctl.conf:
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

also on the proxmox host system I edited
/etc/network/interfaces:

iface enp1s0f0 inet6 static
address ffff:ffff:ffff:ffff::2
netmask 128
gateway fe80::1


iface vmbr0 inet6 static
address ffff:ffff:ffff:ffff::3
netmask 64
up ip -6 route add ffff:ffff:ffff:ffff::/64 dev vmbr0



on the virtual machine I did:


iface ens18 inet6 static
address ffff:ffff:ffff:ffff::101/64
gateway ffff:ffff:ffff:ffff::3


this is the link to the tutorial: https://community.hetzner.com/tutorials/install-and-configure-proxmox_ve/de (sorry its in german, i followed the chapter "Netzkonfiguration".

interesting:
from my proxmox host, I can ping reach the ::101 ipv6 of my vm debian.
But from my debian vm, I can not ping the ::2 that I assigned to my proxmox host.

also from my proxmox host everything else seems fine (ping google etc), but from my debian vm I can not go outside obviously.

Also from different hosts as in my dialup, I can not reach the debian vm via ipv6, but I can reach the proxmox host.

I figured it must have something to do with the settings on my vm system?

I find it strange that my proxmox can actually reach the ::101ipv6 that I assigned on my debian-vm /etc/network/interfaces ..

Well, I'd be thankful if you would have an idea, or a good tutorial?

I would also already be satisfied to only assign one working ipv6 to my virtual machine, even though the tutorial assigns a whole subnet to it, which is not necessary.

Thank you!
 
Last edited:
Maybe this is helpful to others: I fixed it by changing my default interface that:

my /etc/network/interfaces on my proxmox-host looks like this now:

iface enp1s0f0 inet manual
auto vmbr0
#IP-V4-configuration:
iface vmbr0 inet static
address IP-ADDRESS-OF_HOST/32
gateway GATEWAY-IP
bridge-ports enp1s0f0
bridge-stp off
bridge-fd 0
pointopoint GATEWAY-IP
up ip route add STATIC-IP-FOR-GUEST/32 dev vmbr0
#ipv6 configuration:
iface vmbr0 inet6 static
address ffff:ffff:ffff:ffff::1/64
up ip -6 route add fe80::1 dev vmbr0
up ip -6 route add default via fe80::1 dev vmbr0
down ip -6 route del default via fe80::1 dev vmbr0
down ip -6 route del fe80::1 dev vmbr0



my /etc/network/interfaces on my proxmox guest looks like this for ipv6:
allow-hotplug ens18
iface ens18 inet6 static
address ffff:ffff:ffff:ffff::4
netmask 128
gateway ffff:ffff:ffff:ffff::1

(for ipv4 by the way its like this:)

iface ens18 inet static
address STATIC-PUBLIC-IP-ADDRESS-FOR-GUEST
netmask 255.255.255.255
pointopoint IP-ADDRESS-OF-PROXMOX-HOST
gateway IP-ADDRESS-OF-PROXMOX-HOST



also, additionally, for virtual machines that do not get a static public IP, but a private 192.168... IP,
I add two interfaces (vmbr0 and vmbr1) in the proxmox gui,
then I use vmbr0 for IPV6, and vmbr1 to assign a IPv4 192.168... IP for the private subnet.
 
Last edited:

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!