Proxmox + Ovh + LXC IPv6 not working

Haru

New Member
Apr 29, 2017
5
0
1
34
Hi all,

First post here, i'm facing odd issues with my servers. I installed proxmox zfs 4.4 template from OVH, download LXC centos7 template for proxmox and create LXCs via GUI. Ipv4 work well on all servers, but i have only one server that have IPv6 work inside LXC. I tried many tutorials from internet ( and this forum ) but still no luck, so please guide me if you have time, thank you very much

HOST: IPv6 Work fine

1. nano /etc/network/interfaces
Code:
# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).


# The loopback network interface

auto lo

iface lo inet loopback


# for Routing

auto vmbr1

iface vmbr1 inet manual

        post-up /etc/pve/kvm-networking.sh

        bridge_ports dummy0

        bridge_stp off

        bridge_fd 0



# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.

auto vmbr0

iface vmbr0 inet static

        address 217.182.193.xxx

        netmask 255.255.255.0

        network 217.182.193.0

        broadcast 217.182.193.255

        gateway 217.182.193.254

        bridge_ports eth0

        bridge_stp off

        bridge_fd 0


iface vmbr0 inet6 static

        address 2001:41d0:0303:1cxx::

        netmask 64

        post-up /sbin/ip -f inet6 route add 2001:41d0:0303:1cff:ff:ff:ff:ff dev vmbr0

        post-up /sbin/ip -f inet6 route add default via 2001:41d0:0303:1cff:ff:ff:ff:ff

        pre-down /sbin/ip -f inet6 route del default via 2001:41d0:0303:1cff:ff:ff:ff:ff

        pre-down /sbin/ip -f inet6 route del 2001:41d0:0303:1cff:ff:ff:ff:ff dev vmbr0
2. Ping Ipv6 of LXC
ping6 2001:41d0:303:1cxx::1

PING 2001:41d0:303:1cxx::1(2001:41d0:303:1cxx::1) 56 data bytes

64 bytes from 2001:41d0:303:1cxx::1: icmp_seq=1 ttl=64 time=0.037 ms

64 bytes from 2001:41d0:303:1cxx::1: icmp_seq=2 ttl=64 time=0.051 ms

64 bytes from 2001:41d0:303:1cxx::1: icmp_seq=3 ttl=64 time=0.027 ms

^C

--- 2001:41d0:303:1c3b::1 ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 1998ms

rtt min/avg/max/mdev = 0.027/0.038/0.051/0.011 ms

3. ping6 -I vmbr0 ff02::2

PING ff02::2(ff02::2) from fe80::a6bf:1ff:fe17:cbb4 vmbr0: 56 data bytes

64 bytes from fe80::2d7:8fff:fea8:f841: icmp_seq=1 ttl=64 time=0.690 ms

64 bytes from fe80::2d7:8fff:fea8:f541: icmp_seq=1 ttl=64 time=1.16 ms (DUP!)

64 bytes from fe80::2d7:8fff:fea8:f841: icmp_seq=2 ttl=64 time=0.711 ms

64 bytes from fe80::2d7:8fff:fea8:f541: icmp_seq=2 ttl=64 time=0.724 ms (DUP!)



LXC: IPv4 Work, IPv6 not
1. Ping gateway work fine:
PING 2001:41d0:303:1cff:ff:ff:ff:ff(2001:41d0:303:1cff:ff:ff:ff:ff) 56 data bytes
64 bytes from 2001:41d0:303:1cff:ff:ff:ff:ff: icmp_seq=1 ttl=64 time=0.728 ms
64 bytes from 2001:41d0:303:1cff:ff:ff:ff:ff: icmp_seq=2 ttl=64 time=0.736 ms
^C
--- 2001:41d0:303:1cff:ff:ff:ff:ff ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.728/0.732/0.736/0.004 ms

2. Ping HOST IPv6 work:
PING 2001:41d0:303:1cxx::(2001:41d0:303:1cxx::) 56 data bytes
64 bytes from 2001:41d0:303:1cxx::: icmp_seq=1 ttl=64 time=0.025 ms
64 bytes from 2001:41d0:303:1cxx::: icmp_seq=2 ttl=64 time=0.042 ms
^C
--- 2001:41d0:303:1c3b:: ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.025/0.033/0.042/0.010 ms

3. Ping Google not work:
PING google.com(par21s11-in-x0e.1e100.net (2a00:1450:4007:80c::200e)) 56 data bytes
^C
--- google.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 29999ms
 
Solved, here is solution:

On HOST, add follow line to the end of /etc/sysctl.conf
Code:
net.ipv6.conf.default.proxy_ndp=1
net.ipv6.conf.all.proxy_ndp=1
net.ipv6.conf.default.forwarding=1
net.ipv6.conf.all.forwarding = 1
 

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!