On Windows 10 I have a 20.04 Ubuntu WSL and I want to connect the ethernet connection through a specific ethernet interface. On windows powershell I get this info for that specific device:
Wireless LAN adapter WLAN: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Intel(R) Wi-Fi 6 AX201 160MHz Physical Address. . . . . . . . . : 3C-E9-F7-A7-1C-0F DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes Link-local IPv6 Address . . . . . : fe80::5c2a:e902:799d:9451%10(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.177.238(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : Mittwoch, 21. August 2024 17:10:37 Lease Expires . . . . . . . . . . : Mittwoch, 21. August 2024 18:10:37 Default Gateway . . . . . . . . . : 192.168.177.48 DHCP Server . . . . . . . . . . . : 192.168.177.48 DHCPv6 IAID . . . . . . . . . . . : 104655351 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2B-50-68-10-3C-E9-F7-A7-1C-0F DNS Servers . . . . . . . . . . . : 192.168.177.48 NetBIOS over Tcpip. . . . . . . . : Enabled
and in the WSL I get for ip addr show
the following:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:15:5d:67:b4:8c brd ff:ff:ff:ff:ff:ff inet6 fe80::215:5dff:fe67:b48c/64 scope link valid_lft forever preferred_lft forever
Ok, so for now I cannot ping anything (as I tried to set that myself, but failed). So how to make sure that I can access the interner from WSL through that "WLAN" device on windows? How to set this up?