dantmnf / WSLAttachSwitch

Attach the WSL2 virtual machine to a Hyper-V virtual switch.
The Unlicense
107 stars 12 forks source link

Problem pinging 8.8.8.8 on eth1 #6

Open Tiklyt opened 10 months ago

Tiklyt commented 10 months ago

Hi, First thank you for this tool, the problem is, after I attached a virtual switch to WSL2 using your tool and that use dhclient, I'm unable to ping -I eth1 8.8.8.8, do u know why ? have a nice day and thank you :)

rootroot@DESKTOP-RFSCUB2:~$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1488
        inet 172.30.20.144  netmask 255.255.240.0  broadcast 172.30.31.255
        inet6 fe80::215:5dff:fe28:fff7  prefixlen 64  scopeid 0x20<link>
        ether 00:15:5d:28:ff:f7  txqueuelen 1000  (Ethernet)
        RX packets 152  bytes 20157 (20.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 1244 (1.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.22  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a02:a03f:6080:7200:31dc:87e1:476c:bf34  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::215:5dff:fe01:251a  prefixlen 64  scopeid 0x20<link>
        inet6 2a02:a03f:6080:7200:215:5dff:fe01:251a  prefixlen 64  scopeid 0x0<global>
        ether 00:15:5d:01:25:1a  txqueuelen 1000  (Ethernet)
        RX packets 24  bytes 4362 (4.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 16  bytes 2060 (2.0 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0