The WSL2 machine isn't showing the complete ifconfig details or network adapter information.
The WSL2 machine isn't showing the complete ifconfig details or network adapter information.
Today I set up Kali Linux on a WSL2 device and it functions properly everywhere except for network connectivity. On a standard Linux system, when I type the ifconfig command in the terminal, it should display IP configuration details. However, on my setup, it doesn’t show any errors except for the Ethernet adapter being marked as disconnected. I need to troubleshoot why my internet isn't working despite everything else running fine.
WSL2 operates as a virtual machine behind Hyper-V, featuring a Hyper-V network adapter attached. It's designed so you shouldn't notice these network adapters in WSL2.
For Windows networking, switch to WSL1. It relies on a translator with constraints rather than a native micro-kernel in Hyper-V, making the network adapter virtual. The issue remains if you use a VPN for work or office environments. On WSL1, you can run the VPN on Windows and your Linux environment will connect normally. With WSL2, you’ll need to handle the VPN through your Linux distro, which may not work without proper support. If the company doesn’t offer Linux-compatible VPNs, using WSL2 becomes problematic.