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

wsl2 network didn't work if host ethernet working with vlan #6001

Closed
comicfans opened this issue Sep 29, 2020 · 5 comments
Closed

wsl2 network didn't work if host ethernet working with vlan #6001

comicfans opened this issue Sep 29, 2020 · 5 comments
Labels

Comments

@comicfans
Copy link

Environment

Windows build number: Microsoft Windows [版本 10.0.19041.508]
Your Distribution version: Release:        20.04
Whether the issue is on WSL 2 and/or WSL 1: Linux version 4.19.104-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Feb 19 06:37:35 UTC 2020

Steps to reproduce

WSL logs:

Expected behavior

if host network works, wsl2 network should work out of box

Actual behavior

if my host network working at vlan mode (host ethernet has vlan id configured), host network everything works(no matter ping/tcp/udp), but wsl2 can not reach any network except host peer (host <-> wsl2 can communicate with each other, but wsl2 can not reach upstream router, or anyother node out of host),

then I reconfigure my host network to non-vlan mode (host ethernet has no vlan id), host network everything works, and wsl2 network also worked.

@acid2000
Copy link

acid2000 commented Jan 6, 2021

Yes this! This has taken three hours of my life!

I’m assuming what is happening here is that WSL2 network adapter is being bonded to my untagged interface which has no gateway meaning my packets go nowhere.

Is this fixable by setting a vlan ID in the guest OS?

@ReyB59
Copy link

ReyB59 commented Mar 24, 2021

Hello, any update ?

@therealkenc
Copy link
Collaborator

Please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking software that has been installed on Windows if applicable.

@ianepreston
Copy link

I've got the same issue. One additional bit of context I can add is that I can connect just fine from Docker containers running in docker desktop. Those should be backed by WSL2 so I'm really confused about what could be different between that and my WSL Ubuntu. Here's the output of network.bat I'm not sure how to include wsl.etl since it appears to be a binary file.

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
Projects
None yet
Development

No branches or pull requests

5 participants