[OVH] Split /64 into /112 for LXC containers

FlorinMarian

Well-Known Member
Nov 13, 2017
88
4
48
28
Hello!
I try to split /64 subnet IPv6 from OVH into /112 subnets for my LXC containers.

My server has 2001:41d0:700:4354::/64 and I've set up this configuration:

Code:
    iface vmbr0 inet6 static

        #address 2001:41d0:700:4354::1

        address 2001:41d0:700:4354:ffff:ffff:ffff:ffff

        netmask 64

        post-up /sbin/ip -f inet6 route add 2001:41d0:700:43ff:ff:ff:ff:ff dev vmbr0

        post-up /sbin/ip -f inet6 route add default via 2001:41d0:700:43ff:ff:ff:ff:ff

        pre-down /sbin/ip -f inet6 route del default via 2001:41d0:700:43ff:ff:ff:ff:ff

        pre-down /sbin/ip -f inet6 route del 2001:41d0:700:43ff:ff:ff:ff:ff dev vmbr0

I successfully access internet via IPv6 on host node but on VM I've tried to use 2001:41d0:700:4354::2/112 with gateway 2001:41d0:700:4354:ffff:ffff:ffff:ffff but I can't reach internet.

I've also applied echo 1 > /proc/sys/net/ipv6/conf/all/forwarding but still it gets timeout after few seconds.

Thank you!
 
If that is the public IP of your server then the OVH router will try to reach the destination within that /64 directly.

When looking at a tcpdump you will see that the response packets will not reach their target.

You cannot just subnet if the prefix is not routed by you.
 

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!