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

Does WSL 2 have 8021q Module? #6698

Closed
Leo1726 opened this issue Mar 19, 2021 · 3 comments
Closed

Does WSL 2 have 8021q Module? #6698

Leo1726 opened this issue Mar 19, 2021 · 3 comments

Comments

@Leo1726
Copy link

Leo1726 commented Mar 19, 2021

Environment

Windows build number: [Microsoft Windows [Version 10.0.19042.867]]
Your Distribution version: [Ubuntu Release:18.04]
Whether the issue is on WSL 2 and/or WSL 1: [Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020]

Steps to reproduce

WSL logs:
image
I want to enable 8021q module which could let me to set the VLAN. But, it seems that there is no 8021q module in the kernel.
How could I enable or add this function/module?

@WSLUser
Copy link

WSLUser commented Mar 22, 2021

In https://github.com/microsoft/WSL2-Linux-Kernel/blob/linux-msft-wsl-5.4.y/Microsoft/config-wsl you have

CONFIG_VLAN_8021Q=y
# CONFIG_VLAN_8021Q_GVRP is not set
# CONFIG_VLAN_8021Q_MVRP is not set

So it's enabled by default. If you need GVRP or MVRP, those will need to be manually enabled with a custom compile of the kernel. Secondly, WSL2 doesn't yet support kernel modules natively. The kernel is monolithic as a result. Lastly, I notice your Linux kernel is out of date. Try updating it.

@therealkenc
Copy link
Collaborator

That repro is missing an add and needs root.

image

Try sudo vconfig add eth0 10 and see if it takes.

@Leo1726
Copy link
Author

Leo1726 commented Mar 23, 2021

Got it!Thanks! @therealkenc

@ghost ghost removed the needs-author-feedback label Mar 23, 2021
@Leo1726 Leo1726 closed this as completed Mar 23, 2021
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

3 participants