Comments (3)
I'm pretty sure is intentional. I'm pretty sure we haven't documented this, because we don't want people to rely on it. We've had a lot of discussion about this internally. Would you rather have wsl not launch?
from wsl.
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Lxss /t REG_SZ /v NatGatewayIpAddress /d 192.168.235.1 /f reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Lxss /t REG_SZ /v NatNetwork /d 192.168.235.0/20 /f
192.168.235.0/20
is not correct CIDR notation for a subnet. You set the number of mask bits to 20, but then set bits after the prefix to non-zero values.
What you probably meant is 192.168.235.0/24
, which is the subnet containing the IP addresses 192.168.235.0 - 192.168.235.255.
(If you wanted to create a subnet of size /20 that includes 192.168.235.1
, it would be 192.168.224.0/20
, which contains the IP addresses 192.168.224.0 - 192.168.239.255. You can use a calculator like this to check your CIDR notation.)
This might be the reason why WSL failed to create the virtual network.
from wsl.
@ReneZeidler Thank you so much! I can't believe I overlooked such a simple mistake for so long.
This feature works beautifully with WSL 2 in NAT mode (the default) to make sure the subnet being used doesn't conflict with something else in the environments you connect to. On or off VPN (Cisco AnyConnect / Secure Client here) it routes the packets and DNS as you'd expect. Thank you for making this feature available WSL team!
If this stays open, I guess the feature request would be to have it warn if an invalid NAT/gateway combo are configured.
from wsl.
Related Issues (20)
- WSL Distribution Not Installing No Matter How Much I Try HOT 6
- Wsl/ERROR_SERVICE_DOES_NOT_EXIST HOT 8
- Issue using iptables with 6.6.36-lts kernel HOT 12
- WSL2 gets laggy over time - suspend to disk (hibernate) restores normal operation HOT 20
- I can't seem to get 6.6.36.3-lts to boot when building without module support HOT 5
- NVIDIA-SMI couldn't find libnvidia-ml.so library in your system HOT 2
- WSL stopped working - hangs for any distro access HOT 2
- WSL Installation Issue Leading to PC Boot Failure HOT 6
- Can't attach disk HOT 2
- wsl not responding just saying class not registered HOT 5
- Error code: Wsl/0x80080005 - The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again. HOT 8
- WslRegisterDistribution failed with error: 0x80040321 HOT 4
- The installation process for distribution 'Ubuntu' failed with exit code: 1. Error code: Wsl/InstallDistro/WSL_E_INSTALL_PROCESS_FAILED HOT 3
- WSL installation fails with error "0x8007019e" plus "wsl -l -v" gives an error "Wsl/0x80080005" HOT 7
- Mirrored networking mode is not supported, falling back to NAT networking HOT 3
- USBIPD broken by latest WSL pre-release version HOT 2
- Missing WSL Blobs for openSUSE Leap 15.5 HOT 8
- wsl --install not running HOT 5
- network problem mirrored HOT 2
- Error code: Wsl/CallMsi/Install/ERROR_SERVICE_DOES_NOT_EXIST/ I can't install wsl --install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.