Proxmox IPv6 Routed Networking with OVH

Nov 25, 2019
8
0
6
23
Hallo,

I am currently trying to configure IPv6 on my Proxmox Server hosted at OVH. I already configured IPv4 as routed setup and it is working. However, I am unabe to configure IPv6 for the VMs.


Subnet:
2001:41d0:2:xxxx::/64
Gateway at OVH:
2001:41d0:2:xxff:ff:ff:ff:ff

I replaced parts of the IP-Addresses with "x".


I am trying to configure IPv6 similar to IPv4. Therefore, the VMs are connected to the Interface vmbr0 at the Host. This interfaces (its IP) is then configured as the Gateway on the VMs. Therefore, the setup should work without proxy_ndp but I also tryed it with and was unable to make it working.

Currently, the host is accessible via IPv6. The VM is able to ping ping the interface vmbr0 via IPv6 und vice versa. The VM is inaccessible via IPv6 from the internet, and unable to access the internet via IPv6. The VM cannot access (ping) the Gateway at OVH (2001:41d0:2:xxff:ff:ff:ff:ff).


Host:
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
        address  188.x.x.54
        netmask  255.255.255.0
        gateway  188.x.x.254
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp
auto vmbr0
iface vmbr0 inet static
        address  178.x.x.249
        netmask  255.255.255.248
        bridge-ports none
        bridge-stp off
        bridge-fd 0
iface eno1 inet6 static
        address 2001:41d0:2:xxxx::1
        netmask 128
        post-up /sbin/ip -f inet6 route add 2001:41d0:2:xxFF:FF:FF:FF:FF dev eno1
        post-up /sbin/ip -f inet6 route add default via 2001:41d0:2:xxFF:FF:FF:FF:FF
        pre-down /sbin/ip -f inet6 route del 2001:41d0:2:xxFF:FF:FF:FF:FF dev eno1
        pre-down /sbin/ip -f inet6 route del default via 2001:41d0:2:xxFF:FF:FF:FF:FF
iface vmbr0 inet6 static
        address 2001:41d0:2:9b36::2
        netmask 64
        up ip -6 route add 2001:41d0:2:9b36::/64 dev vmbr0

The Post-up and post-down commands are neccessairy because the gateway is outside of the subnet. This is decribed in the documentation at OVH.
https://docs.ovh.com/gb/en/dedicated/network-ipv6/

Routingtable of the Hosts:
Code:
Destination                    Next Hop                   Flag Met Ref Use If
2001:41d0:2:xxxx::1/128        [::]                       U    256 1     0 eno1
2001:41d0:2:xxxx::/64          [::]                       U    256 1     0 vmbr0
2001:41d0:2:xxxx::/64          [::]                       U    1024 1     0 vmbr0
vss-3-6k.fr.eu/128             [::]                       U    1024 2     1 eno1
vss-3-6k.fr.eu/128             [::]                       U    1024 2     0 vmbr0
fe80::/64                      [::]                       U    256 1     0 eno1
fe80::/64                      [::]                       U    256 1     0 vmbr0
[::]/0                         vss-3-6k.fr.eu             UG   1024 9    92 eno1
[::]/0                         vss-3-6k.fr.eu             UG   1024 9   182 vmbr0
ip6-localhost/128              [::]                       Un   0   9    40 lo
2001:41d0:2:xxxx::/128         [::]                       Un   0   2     0 vmbr0
2001:41d0:2:xxxx::1/128        [::]                       Un   0   7   196 eno1
2001:41d0:2:xxxx::2/128        [::]                       Un   0   7     5 vmbr0
fe80::/128                     [::]                       Un   0   2     0 eno1
fe80::/128                     [::]                       Un   0   2     0 vmbr0
fe80::40e6:56ff:fef9:6879/128  [::]                       Un   0   2     0 vmbr0
fe80::4e72:b9ff:feb0:f75b/128  [::]                       Un   0   3     4 eno1
ip6-mcastprefix/8              [::]                       U    256 3   225 eno1
ip6-mcastprefix/8              [::]                       U    256 9    20 vmbr0
[::]/0                         [::]                       !n   -1  1     1 lo


vss-3-6k.fr.eu is the gateway of OVH:

Code:
nslookup 2001:41d0:2:xxff:ff:ff:ff:ff
Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
f.f.0.0.f.f.0.0.f.f.0.0.f.f.0.0.f.f.x.x.2.0.0.0.0.d.1.4.1.0.0.2.ip6.arpa        name = vss-3-6k.fr.eu.

Host output of sysctl -p:
Code:
net.ipv6.conf.all.forwarding = 1
net.ipv6.conf.default.forwarding = 1


VM:
Code:
allow-hotplug ens18
iface ens18 inet static
        address 178.x.x.251/29
        gateway 178.x.x.249
iface ens18 inet6 static
        address 2001:41d0:2:xxxx::3
        netmask 64
        gateway 2001:41d0:2:xxxx::2

I would really appreciate if anybody can help me solve this!

I already posted the same in german in this Forum, but since I didn't received a response within more than a week I thought it would be okay to post the same in English.
 
Last edited:
Did you solve? Has anyone been able to configure IPv6 in both Host and LXC containers with OVH?

I'm stuck at the same point. Both Host and LXC container can ping each other, the host works, but LXC container can reach out internet.
 
Last edited:
Did you solve? Has anyone been able to configure IPv6 in both Host and LXC containers with OVH?

I'm stuck at the same point. Both Host and LXC container can ping each other, the host works, but LXC container can reach out internet.
I managed to configure ipv4 in my containers, but not ipv6.. ipv6 is not pinging :(
maybe somebody configured it and can explain to us..
 
everyone having same issue but no useful help or guide available. I too able to ping6 from host to vm and vm to host. the host is ablt to ping6 google.com but the VM is not able to connect to internet
 
The network configuration for IPv6 appears to be different for the new OVH Scale servers. Has anyone managed to get IPv6 working with routed configuration on an OVH Scale server?
 

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!