Skip to content

Set WSL2 subnet #10559

Answered by alimusdu
buaydin asked this question in General
Sep 28, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello @buaydin,

wsl2 version 1.2.5 and later supports the registry entries in the link below. After updating WSL with the command "wsl --update" or "wsl --update --web-download" (you can check the version with the command "wsl --version"), you can apply the solution in the following link: #9580 (reply in thread).

Note: After updating the registry, you can restart Windows for the WSL network adapter to be recreated.
Note2: In some cases, you may encounter an error saying that the network could not be updated when the WSL distribution is starting up. Reapplying the registry entry and restarting Windows will fix the issue.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@szarykott
Comment options

Answer selected by buaydin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants