Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 only works as long as you ping #9354

Closed
1 of 2 tasks
withinboredom opened this issue Dec 17, 2022 · 2 comments
Closed
1 of 2 tasks

IPv6 only works as long as you ping #9354

withinboredom opened this issue Dec 17, 2022 · 2 comments

Comments

@withinboredom
Copy link

Version

Windows version: 10.0.22621.963

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.15.79.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Nov 23 01:01:46 UTC 2022

Distro Version

Ubuntu 22.04

Other Software

ping from iputils 20211215

Repro Steps

  1. Configure WSL in bridge mode
  2. Verify you have a global ipv6 address (ip addr)
  3. Start pinging an ipv6 address (ping ipv6.google.com -i 1 -W 2 -O)
  4. After about 5-10 minutes, packets will start coming in
  5. As long as you're pinging, you'll have full internet access over ipv6
  6. Verify access by curl ipv6.google.com or start firefox in WSL and go to ipv6-test.com

This time can be shortened greatly, by forwarding ping packets to the correct interface: https://github.com/withinboredom/ipv6-wsl

Expected Behavior

IPv6 packets should go to the correct interface by default.

Actual Behavior

IPv6 packets are sent to the wrong interface (often called the "wsl" interface in WireShark) instead of the VM interface. After pinging for a while, Windows learns the correct route and packets work correctly until it "forgets" the route once pinging stops.

Diagnostic Logs

No response

@tusharsnx
Copy link

I dig a little more on the wsl ipv6 issue and to me, it seems like hyper-v virtual switch has a broken ipv6 routing table implementation. Once it forgets the route to wsl if we try to somehow re-build the routing table, ipv6 seems to work again. In my case, I could trigger the 're-build' if I change the wifi since I am bridge-ing the WLAN interface for wsl.

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants