Is it posible to have 2 network isolated distro on WSL2

Viewed 19

I have more WSL2 distributions, on one of them i use Cisco AnyConnect to access VPN network.

As sun as WSL2 is a VM on which run all my distributions, them all have a common network configuration (same ip address). So when i connect to VPN via Cisco AnyConnect, all my distribution are into it, but i will wish to keep original network connection for other distro.

It is possible to have, somehow, 2 network isolated WSL2 distro between each other?

Some details:

  • Cisco AnyConnect Secure Mobility Client (version 4.10.05095)
  • About Windows:
Edition Windows 10 Pro
Version 21H2
Installed on    ‎2/‎22/‎2021
OS build    19044.2006
Experience  Windows Feature Experience Pack 120.2212.4180.0
  • WSL2 distro list:
$ wsl -l -v
  NAME                   STATE           VERSION
* Ubuntu                 Running         2
  Ubuntu-20.04           Stopped         2
  kali-linux             Running         2

If I need to provide more information, please let me know

Thanks in advance!

0 Answers
Related