Skip to content
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

Allow bridged networking for WSL 2 #4472

Closed
cerebrate opened this issue Sep 5, 2019 · 2 comments
Closed

Allow bridged networking for WSL 2 #4472

cerebrate opened this issue Sep 5, 2019 · 2 comments

Comments

@cerebrate
Copy link

  • Your Windows build number: 18970

Please allow the WSL 2 networking infrastructure to be configured for bridged mode, as well as the current NAT system.

Here are my reasons:

  1. Simplicity. In my little home-office network here, I've got VMs, containers, a cluster, and an Azure virtual network; as such, I use bridging a lot, because what there's only one of is me. The flatter the network structure, the less time I have to spend playing network admin.

While the workaround to publish WSL 2-hosted services to the wider network (per #4150) does work for most protocols, it's also more overhead to keep track of, as is managing source/destination IP addresses in configurations with ever-shifting IP ranges (per #4467).

And since I have a /16 to play with, burning another IP address on WSL 2 isn't going to hurt.

  1. IPv6, which at the moment the WSL Hyper-V infrastructure doesn't support, and which I'm using as the primary protocol on my network for everything that supports it. The reason I ask for it by this method and not a request for specific IPv6 support is because bridging also supports whatever other non-IPv4 protocols turn up tomorrow.

  2. Incidentally fixes the other WSL IP address & Subnet is never deterministic (Constantly changing) #4467 problem; I too have had the problem of the WSL interface happening upon a choice of private IP range in use elsewhere on the network.

@therealkenc
Copy link
Collaborator

#4150 is the landing zone.

@colemar
Copy link

colemar commented May 29, 2024

See my equivalent solution
#11632

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants