-
Notifications
You must be signed in to change notification settings - Fork 822
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
Support for multiple ethernet virtual adaptors in WSL2 #8110
Comments
If you want to manually attach a virtual network interface it is possible with HcsModifyComputeSystem API. |
Thank you for your suggestion. So there are no GUI- or command-line support in windows for doing this? - and I have to implement my own command-line tool. Is this correctly understood? I guess my feature request is then to make an official command-line tool for supporting this. In the meantime I will try to roll my own tool, thanks. |
For future reference. It seems that following C# code can do what I want: |
When I was running this program,it crashed like this. What can I do? |
Check firewall rules Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
Get-NetFirewallHyperVVMSetting -PolicyStore ActiveStore -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' Are you on Windows 11 ? Latest version of WSL ? Did you run WSLAttachSwitch is a new program, not yet mature. If you are a developer, you could download the source code and try to debug it. |
Here a detailed working procedure on how to use WSLAttachSwitch Script : #4799 (comment) Text : #4799 (comment) |
I want to start my Linux distribution with two ethernet adaptors; eth0 and eth1. AFAIK the eth0 device is connected to the vEternet (WSL) virtual adaptor and I managed to create another vEthernet (WSL-TEST) adaptor through "Virtual Switch Manager" in windows:
Ethernet adapter vEthernet (WSL-TEST):
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::2479:f92d:8abf:5e96%38
Autoconfiguration IPv4 Address. . : 169.254.94.150
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
I have restarted my WSL instance, but
lshw
andifconfig
does not show the new virtual adaptor. How do I add my newly created "vEthernet (WSL-TEST)" adaptor ?The text was updated successfully, but these errors were encountered: