Problem with ipv6 in kvm

corianito

Active Member
Jul 20, 2019
44
0
26
37
Hello!

I have an IPv6 that assigns me OVH.

I have proxmox installed next to the virtualizor panel, I have created different IPv6 ranges from the ipv6 given to me by the provider.

The problem is as follows: I can't get IPv6 to ping KVM, however, LXC containers work correctly, example:

LXC ping:

Code:
The response for '2001:41d0:303:af8f:0000:0000:1888:2d44' using IPv6 is:
PING 2001:41d0:303:af8f:0000:0000:1888:2d44(2001:41d0:303:af8f::1888:2d44) 56 data bytes
64 bytes from 2001:41d0:303:af8f::1888:2d44: icmp_seq=1 ttl=52 time=141 ms
64 bytes from 2001:41d0:303:af8f::1888:2d44: icmp_seq=2 ttl=52 time=141 ms
64 bytes from 2001:41d0:303:af8f::1888:2d44: icmp_seq=3 ttl=52 time=141 ms
64 bytes from 2001:41d0:303:af8f::1888:2d44: icmp_seq=4 ttl=52 time=141 ms
64 bytes from 2001:41d0:303:af8f::1888:2d44: icmp_seq=5 ttl=52 time=141 ms

--- 2001:41d0:303:af8f:0000:0000:1888:2d44 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 141.423/141.440/141.474/0.476 ms

KVM does not ping:

Code:
The response for '2001:41d0:303:af8f:0000:0000:1d69:54d6' using IPv6 is:
PING 2001:41d0:303:af8f:0000:0000:1d69:54d6(2001:41d0:303:af8f::1d69:54d6) 56 data bytes

--- 2001:41d0:303:af8f:0000:0000:1d69:54d6 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4061ms

Do I have to do any special proxmox configuration to make IPv6 work on KVM servers?

From KVM if I ping to google I get this error:

Code:
[root@cp1nvme ~]# ping6 ipv6.google.com
PING ipv6.google.com(par21s05-in-x0e.1e100.net (2a00:1450:4007:812::200e)) 56 data bytes
From 2001:41d0:303:af8f::1d69:54d6 (2001:41d0:303:af8f::1d69:54d6) icmp_seq=1 Destination unreachable: Address unreachable
From 2001:41d0:303:af8f::1d69:54d6 (2001:41d0:303:af8f::1d69:54d6) icmp_seq=2 Destination unreachable: Address unreachable
^C
--- ipv6.google.com ping statistics ---
3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1999ms

[root@cp1nvme ~]#
 
I've noticed the following.

From inside the KVM server I can correctly ping an ipv6 assigned to the server, but I can't ping the gateway. In case it can help to detect the problem.

Code:
[root@cp1nvme ~]# ping6 2001:41d0:303:af8f:bd8a:4592:ef08:67
PING 2001:41d0:303:af8f:bd8a:4592:ef08:67(2001:41d0:303:af8f:bd8a:4592:ef08:67) 56 data bytes
64 bytes from 2001:41d0:303:af8f:bd8a:4592:ef08:67: icmp_seq=1 ttl=64 time=0.040 ms
64 bytes from 2001:41d0:303:af8f:bd8a:4592:ef08:67: icmp_seq=2 ttl=64 time=0.054 ms
64 bytes from 2001:41d0:303:af8f:bd8a:4592:ef08:67: icmp_seq=3 ttl=64 time=0.054 ms
^C
--- 2001:41d0:303:af8f:bd8a:4592:ef08:67 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.040/0.049/0.054/0.008 ms
[root@cp1nvme ~]# ping6 2001:41d0:303:afFF:FF:FF:FF:FF
PING 2001:41d0:303:afFF:FF:FF:FF:FF(2001:41d0:303:afff:ff:ff:ff:ff) 56 data bytes
From 2001:41d0:303:af8f::1d69:54d6 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:41d0:303:af8f::1d69:54d6 icmp_seq=2 Destination unreachable: Address unreachable
^C
--- 2001:41d0:303:afFF:FF:FF:FF:FF ping statistics ---
5 packets transmitted, 0 received, +2 errors, 100% packet loss, time 4000ms
 

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!