-
Notifications
You must be signed in to change notification settings - Fork 1.2k
WSL2 second network adapter #10971
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
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I did some more research and investigation, but havent found a real proper solution to my issue yet. It is still unknown to me why on once device I have additional ethernet adapters, especially the eth1 adatper that allows me to still be able to connect to services in the www aswell as the ones behind the VPN. I did make some findings on the way though:
Old device: New device (Note: I changed the IP-Range via https://github.com/wikiped/WSL-IpHandler):
I set my distribution version now to WSL1, despite remembering that I got other problems with that in the past. However, due to the fact that WSL1 distries use the same adapters than the host, I dont have any connectivity problems while having the VPN enabled then. Still, if someone has any explenation why the hell it works on my old device and how I got the eth1 adapter: Highly appreciated. |
@Mangosniper: Unfortunately mirrored networking would be your best bet for this scenario (although as you said it's only available on Windows 11). Closing since this issue should be solved by upgrading Windows & enabling Mirrored Networking |
Not everybody CAN upgrade to Windows 11. My computer does not have TPM2.0, so I cannot upgrade. |
Same issue here, we have a bunch of remote systems that need to stay on Windows 10, and we really need to access devices on one network and the internet on another network |
Summary: I have wsl2 running on my current laptop and need to switch devices. Therefore I am trying to setup wsl on the replacement device the same way, however, I seem to have something configured I cant figure out how to configure anymore.
I especially had problems using the wsl2 when also using a VPN that creates a lot of routes in windows. I got it solved similar to what is described at https://gist.github.com/machuu/7663aa653828d81efbc2aaad6e3b1431
However, on my new system I can not reach anything anymore when the VPN is active. E.g. I try to ping 1.1.1.1. -> Timeout. As soon as I disable the VPN it works again.
When looking on my old laptop and doing
ip a
in the wsl I get:When I do this on my new device I get only
The eth1 is missing. Why is that important? If I do
ifconfig eth1 down
on the old laptop, pinging 1.1.1.1 also stops working.My main Problem: I can not remember how I added the eth1 interface to my WSL2. I did a lot of research:
I found https://github.com/dantmnf/WSLAttachSwitch but i am to 99.9% sure I havent used any thirdparty software to configure anything for or in my WSL. Also this tool is for attaching multiple hyper-v switches and I dont have any additional ones.
I also found some discussions where people seem to have multiple ethernet adapter in the WSL2, but never it gets explained how this was achieved:
I would appreciate any help or hints. Below, you can find some more infos about my config (Of the old system, where it is currently working. But I dont see anything that would explain why I have eth0 and eth1 and not only eth0 as in my new system) I am quite frustrated since I KNOW it can work, as I have a working system but I DONT KNOW how I configured it in the first place...
PS C:\Windows\system32> get-vmswitch | select *
DefaultQueueVmmqQueuePairs : 0
DefaultQueueVmmqQueuePairsRequested : 16
Name : Default Switch
Id : c08cb7b8-9b3c-408e-8e30-5e16a3aeb444
Notes :
Extensions : {Microsoft Windows-Filterplattform, Microsoft Azure VFP Switch Extension, Microsoft-NDIS-Aufzeichnung}
BandwidthReservationMode : Absolute
PacketDirectEnabled : False
EmbeddedTeamingEnabled : False
IovEnabled : False
SwitchType : Internal
AllowManagementOS : True
NetAdapterInterfaceDescription :
NetAdapterInterfaceDescriptions :
NetAdapterInterfaceGuid :
IovSupport : False
IovSupportReasons :
AvailableIPSecSA : 0
NumberIPSecSAAllocated : 0
AvailableVMQueues : 0
NumberVmqAllocated : 0
IovQueuePairCount : 0
IovQueuePairsInUse : 0
IovVirtualFunctionCount : 0
IovVirtualFunctionsInUse : 0
PacketDirectInUse : False
DefaultQueueVrssEnabledRequested : True
DefaultQueueVrssEnabled : False
DefaultQueueVmmqEnabledRequested : True
DefaultQueueVmmqEnabled : False
DefaultQueueVrssMaxQueuePairsRequested : 16
DefaultQueueVrssMaxQueuePairs : 0
DefaultQueueVrssMinQueuePairsRequested : 1
DefaultQueueVrssMinQueuePairs : 0
DefaultQueueVrssQueueSchedulingModeRequested : StaticVrss
DefaultQueueVrssQueueSchedulingMode : Dynamic
DefaultQueueVrssExcludePrimaryProcessorRequested : False
DefaultQueueVrssExcludePrimaryProcessor : False
SoftwareRscEnabled : False
BandwidthPercentage : 0
DefaultFlowMinimumBandwidthAbsolute : 0
DefaultFlowMinimumBandwidthWeight : 0
CimSession : CimSession: .
ComputerName : COM100491
IsDeleted : False
DefaultQueueVmmqQueuePairs : 0
DefaultQueueVmmqQueuePairsRequested : 16
Name : WSL
Id : 7b976bed-06b6-4a08-bc35-817deda90c37
Notes :
Extensions : {Microsoft Windows-Filterplattform, Microsoft Azure VFP Switch Extension, Microsoft-NDIS-Aufzeichnung}
BandwidthReservationMode : Absolute
PacketDirectEnabled : False
EmbeddedTeamingEnabled : False
IovEnabled : False
SwitchType : Internal
AllowManagementOS : True
NetAdapterInterfaceDescription :
NetAdapterInterfaceDescriptions :
NetAdapterInterfaceGuid :
IovSupport : False
IovSupportReasons :
AvailableIPSecSA : 0
NumberIPSecSAAllocated : 0
AvailableVMQueues : 0
NumberVmqAllocated : 0
IovQueuePairCount : 0
IovQueuePairsInUse : 0
IovVirtualFunctionCount : 0
IovVirtualFunctionsInUse : 0
PacketDirectInUse : False
DefaultQueueVrssEnabledRequested : True
DefaultQueueVrssEnabled : False
DefaultQueueVmmqEnabledRequested : True
DefaultQueueVmmqEnabled : False
DefaultQueueVrssMaxQueuePairsRequested : 16
DefaultQueueVrssMaxQueuePairs : 0
DefaultQueueVrssMinQueuePairsRequested : 1
DefaultQueueVrssMinQueuePairs : 0
DefaultQueueVrssQueueSchedulingModeRequested : StaticVrss
DefaultQueueVrssQueueSchedulingMode : Dynamic
DefaultQueueVrssExcludePrimaryProcessorRequested : False
DefaultQueueVrssExcludePrimaryProcessor : False
SoftwareRscEnabled : False
BandwidthPercentage : 0
DefaultFlowMinimumBandwidthAbsolute : 0
DefaultFlowMinimumBandwidthWeight : 0
CimSession : CimSession: .
ComputerName : COM100491
IsDeleted : False
PS C:\Windows\system32> hcsdiag list
51E4F2E7-6C85-4F47-A9C2-B8EA261CD24B
VM, Running, 51E4F2E7-6C85-4F47-A9C2-B8EA261CD24B, WSL
PS C:\Windows\system32> wsl --list -v
NAME STATE VERSION
docker-desktop Stopped 2
docker-desktop-data Stopped 2
Ubuntu-22.04 Stopped 2
Content of .wslconfig
[wsl2]
memory=16GB
Content of wsl.conf
[network]
generateResolvConf = false
The text was updated successfully, but these errors were encountered: