Skip to content

Instantly share code, notes, and snippets.

@PROGrand
Last active March 30, 2023 22:53
Show Gist options
  • Save PROGrand/df41228d21d96073ffa1f516170e2a9d to your computer and use it in GitHub Desktop.
Save PROGrand/df41228d21d96073ffa1f516170e2a9d to your computer and use it in GitHub Desktop.
WSL2 network speed
For those having slow wsl2 network speed on windows11.
https://github.com/microsoft/WSL/issues/4901#issuecomment-1489783550
@PROGrand
Copy link
Author

cmd:

ipconfig.exe /all

admin powershell

Disable-NetAdapterBinding -Name "vEthernet (WSL)" -ComponentID ms_tcpip6 -IncludeHidden # disable ipv6
Disable-NetAdapterLso -Name "vEthernet (WSL)" -IncludeHidden # Seems to disable the large packet. Didn't tested it since mine was already disabled

Get-NetAdapterBinding -IncludeHidden -Name "vEthernet (WSL)" # Check if ipv6 was disabled
Get-NetAdapterAdvancedProperty -IncludeHidden -Name "vEthernet (WSL)" # Check if large packet was disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment