Windows Version
Microsoft Windows [Version 10.0.22631.2506]
WSL Version
2.0.7.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04.3 LTS
Other Software
.wslconfig:
[wsl2]
memory=4GB
localhostForwarding=true
#networkingMode=bridged
#vmSwitch=vNAT
#networkingMode=mirrored
guiApplications=true
[experimental]
autoMemoryReclaim=gradual #
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
sparseVhd=true
hostAddressLoopback=true
Repro Steps
- Enter WSL2 and create a network space and veth device with commands below
- Create a pair of veth devices and activate them with commands below
ip link add type veth
ip link set up dev veth0
ip link set veth1 netns ns1
ip a a 192.168.99.1/24 dev veth0
- Enter
ns1 and allocate an IP.
ip netns exec ns1 bash
ip link set up dev veth1
ip a a 192.168.99.2/24 dev veth1
- Ping each other to make sure that netns is working
ping 192.168.99.1 # in ns1
ping 192.168.99.2 # in wsl2 root
PING 192.168.99.2 (192.168.99.2) 56(84) bytes of data.
64 bytes from 192.168.99.2: icmp_seq=1 ttl=64 time=0.034 ms
- Ping either
192.168.99.1 or 192.168.99.2 in Windows cmd.
Windows firewall is disabled.
Expected Behavior
Windows can ping and connect the veth network normally.
Actual Behavior
Windows can't ping or connect the veth network at all.
22:08:29 -1 ❯ ping 192.168.99.1
Pinging 192.168.99.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.99.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
15:28:32 ERROR ❯ ping 192.168.99.2
Pinging 192.168.99.2 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.99.2:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Diagnostic Logs
No response
Windows Version
Microsoft Windows [Version 10.0.22631.2506]
WSL Version
2.0.7.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04.3 LTS
Other Software
.wslconfig:
Repro Steps
ns1and allocate an IP.192.168.99.1or192.168.99.2in Windows cmd.Windows firewall is disabled.
Expected Behavior
Windows can ping and connect the veth network normally.
Actual Behavior
Windows can't ping or connect the veth network at all.
Diagnostic Logs
No response