debian12 under W10 host loses ipv6 connection after some seconds

Discussions about using Linux guests in VirtualBox.
Post Reply
NorbertK
Posts: 1
Joined: 24. Apr 2024, 13:09

debian12 under W10 host loses ipv6 connection after some seconds

Post by NorbertK »

Hello all,
I have the following configuration:

Code: Select all

VirtualBox VM 7.0.14 r161095 win.amd64 (Jan 15 2024 14:59:30) release log
OS Product: Windows 10
OS Release: 10.0.19045
I created a debian12 box and want to use ipv6 .

I use a bridged network and use dhcp for ipv4 and ipv6. I also get a valid ipv6 address.

For some seconds after the start ipv6 runs fine and I can successfully ping -6 google

After a short time (which I am at the moment unable to specify) these ipv6 pings hang.

In my network i have several linux containers under proxmox which use the same dhcp server for ipv6 and these work fine. So I assume that the configuration of the dhcp server in itself is correct.

In my Windows host i can ping -6 as i please and it works.

Any ideas how to investigate further ?

Log is attached

Thanks a lot

Norbert
Attachments
Ansible-2024-04-24-13-18-30.zip
(18.49 KiB) Downloaded 2 times
mmwelt
Posts: 1
Joined: 19. May 2024, 06:20
Primary OS: MS Windows other
VBox Version: OSE other
Guest OSses: Linux, Windows

Re: debian12 under W10 host loses ipv6 connection after some seconds

Post by mmwelt »

It seems VirtualBox has a problem with Linux guests using IPv6 with bridged networking. I don't seem to be able to post a link here, but googling those keywords should help you find a page on github describing the workaround. I've found that workaround mostly works, but isn't always reliable.

The gist of the workaround is to run a cron task every two minutes:

Code: Select all

*/2 * * * *    ip -6 neigh | while read line; do set -- $line; ip neigh del $1 dev $3; done; ping6 -n -c 2 $ipv6_gw &>/dev/null
where $ipv6_gw is the address of the local IPv6 gateway to the Internet. Alternatively, you can use another known IPv6 address, such as 2001:4860:4860::8888 or 2001:4860:4860::8844 (Google's public DNS addresses).
Last edited by mmwelt on 21. May 2024, 01:57, edited 1 time in total.
Post Reply