How to Enable Wi-Fi in Kali Linux: A Complete Guide

Working with wireless networks in Kali Linux is a fundamental skill for information security specialists and penetration testers. Unlike standard user distributions, managing network interfaces here often requires manual intervention or specific settings for proper operation. Wireless adapter (wireless adapter) may not activate automatically due to missing proprietary drivers or a kernel-level lock.

Before starting any manipulations, you need to clearly understand what type of equipment is being used: a built-in laptop module or an external one. USB adapterExternal devices often require the installation of additional firmware packages, which are not included in the base distribution build by default due to licensing restrictions. Wireless network interface must not only be physically connected, but also software-enabled to begin scanning the airwaves.

In this article, we'll cover every step in detail: from diagnosing the device's status to switching the card to monitoring mode. You'll learn how to use both the graphical interface and the interface. NetworkManager, as well as powerful command-line tools for complete control over your network connection. Proper configuration wireless interface — this is the first step to a successful Wi-Fi network security audit.

Diagnostics and verification of physical connection

The first step should always be accurate hardware identification. The operating system may see a USB device as a physical device but lack the appropriate driver, resulting in a missing network interface. To list all connected USB devices and check their Vendor ID and Product ID, use the utility lsusbThis command will output a list in which you need to find the line corresponding to your adapter, for example, Realtek or Atheros.

After the device is physically present, you need to check whether the Linux kernel sees the network interface itself. To do this, use the command ip link or more detailed iwconfigIf the list shows an interface with a name like wlan0 or wlx00c0ca..., which means the driver is loaded and the device is ready to use. If such entries are missing, the problem lies deeper—a missing kernel module.

⚠️ Attention: If you're using a virtual machine (VirtualBox or VMware), make sure the USB adapter is "passthrough" to the guest OS. It won't work if connected to the host machine. In the virtualizer menu, select the device and click "Connect."

It is important to distinguish between the state of the interface: it can be UP (raised) or DOWN (omitted). Even with a driver present, the interface may be in a disabled state by default. Link control commands are used to change this status. Status NO-CARRIER usually means that the interface is up but not connected to an access point, which is the normal state before scanning starts.

Installing and updating wireless network drivers

The most common reason for Wi-Fi not working in Kali Linux is the absence of proprietary firmware. Unlike Windows, where drivers are often bundled with the device, in Linux they must be installed separately through repositories. Packages usually have a prefix firmware- or realtek- in the title. Before installation, you need to update the package lists with the command sudo apt update.

The process of searching for the required driver is based on the device ID obtained earlier through lsusbFor example, for popular chips Realtek RTL8812AU You may need to clone the GitHub repository and compile the module manually, as it may not be available in the official repositories. Compilation is performed using utilities. make And make install, after which a system reboot or reconnection of the kernel module is required.

  • 📦 Official repositories: try installing packages firmware-realtek, firmware-atheros or firmware-misc-nonfree to support a wide range of devices.
  • 🔧 DKMS modules: For adapters that require compilation for a specific kernel, use packages with DKMS support so that the driver is updated automatically when the kernel version changes.
  • 🌐 Git repositories: Many modern adapters require manual installation of drivers from GitHub, for example, the project aircrack-ng/rtl8812au.

After installing the driver files, you need to make sure the module is loaded into the kernel. You can check this with the command lsmod | grep module_nameIf the module is loaded successfully, a new one should appear in the list of network interfaces. wireless deviceIn some cases, you may need to manually add the module name to the file. /etc/modules to autoload at system startup.

📊 What adapter do you use for Kali Linux?
Built into the laptop
TP-Link TL-WN722N (v1)
Adapter with Atheros chip
Other external USB
I don't know the model of my adapter.

Activating the interface via the command line

The classic and most reliable way to manage a network in Kali Linux — using the terminal. This gives you full control over the process and allows you to see all errors in real time. The main tool for managing the link status is the utility ipTo bring up the interface, for example wlan0, the command is used sudo ip link set wlan0 upThe reverse action is performed by replacing up on down.

To control wireless functions such as scanning networks or changing channels, a package is used. iwThis is a modern replacement for the outdated one. iwconfig. By using iw You can check the signal strength, frequency, and supported modes. For example, the command iw dev wlan0 scan initiates a search for available access points, which confirms the adapter's functionality.

sudo ip link set wlan0 up

sudo iw dev wlan0 scan | grep SSID

It is important to note that some older scripts may use the utility. ifconfig. Although it is still available as part of the package net-tools, its use is considered obsolete. The modern de facto standard is the combination ip And iwIf the interface does not come up, check if it is blocked programmatically using the command rfkill listThe blocking is removed by the command sudo rfkill unblock wifi.

☑️ Interface activation checklist

Completed: 0 / 4

Setting up Wi-Fi via the NetworkManager graphical interface

For users who prefer visual control, Kali Linux is used by default NetworkManagerThis is a convenient tool for quickly connecting to known networks without entering commands. The network icon is usually located in the upper-right corner of the desktop (in XFCE or GNOME environments). Clicking it opens a list of available networks, where you can select the desired one and enter the password.

However, for security auditing purposes, NetworkManager's default mode may be insufficient. It automatically manages the driver and can prevent other programs from putting the card into monitoring mode. To gain full access, it is often necessary to temporarily disable management of a specific device through NetworkManager or completely stop the service with the command sudo systemctl stop NetworkManager.

In the connection settings, you can set a static IP address, DNS servers, and proxy settings. This is sufficient for basic surfing or system updates. However, if your goal is packet sniffing or intrusion, it's best to use the graphical interface only for the initial internet connection to install tools, and then move on to specialized utilities.

Parameter Command / Action Description
Interface status ip link show Shows UP/DOWN status
RF blocking rfkill list Checking software blockages
Scanning iwlist scan Detailed network search (deprecated)
Opening hours iw dev wlan0 set type Changing the interface type (monitor/managed)

Putting the adapter into monitoring mode

Monitoring mode (monitor mode) is the key state of the wireless adapter for a pen tester. Unlike the standard mode managedIn monitoring mode, the card captures all packets in the air, regardless of whether they are addressed to it or not. This is necessary for traffic analysis, password cracking, and network security assessment. A utility is used for translation. airmon-ng from the package aircrack-ng.

Before starting monitoring mode, it is critical to kill processes that may conflict with the adapter. Services such as NetworkManager or wpa_supplicant will try to control the map, which will lead to errors. Utility airmon-ng check kill will automatically find and terminate such processes. After that, you can run monitoring with the command sudo airmon-ng start wlan0.

⚠️ Attention: After enabling monitoring mode, the interface name will change. Typically, a suffix is ​​added to the original name. mon (For example, wlan0mon). All subsequent commands must be performed specifically for the new name.

There is also a method of translation through iw, which is considered cleaner and does not create a virtual interface, but changes the type of an existing one. The command sudo ip link set wlan0 down lowers the interface, sudo iw dev wlan0 set type monitor changes the type, and sudo ip link set wlan0 up lifts it back up. This method is preferred by experienced users as it provides more control.

What should I do if the monitoring mode does not turn on?

If the airmon-ng command returns an error, try disabling the adapter completely (ifconfig wlan0 down), then changing the type using iw, and only then enabling it. Also, check whether your driver supports this mode on the aircrack-ng compatibility website.

Solving common connection problems

Even with the correct settings, errors can still occur. One of the most common issues is "Device or resource busy." This means another process is already using the adapter. In this case, restarting the network service or a full system reboot can help. It's also worth checking if power saving mode is enabled, which can disable the adapter to conserve power. You can disable it in the configuration files. NetworkManager or through iwconfig.

Driver issues Realtek are often resolved by updating the kernel or, conversely, rolling back to a more stable version. Some new adapters are simply not supported by older Linux kernels. In such cases the only solution It may be worth buying an adapter with a chip Atheros AR9271, which has native support in the kernel and does not require any hassle during installation.

  • 🚫 The interface does not appear: check dmesg | tail immediately after connecting USB to see kernel errors.
  • 📉 Low speed or breaks: Try changing the USB port to USB 2.0 or using an extender, as USB 3.0 can interfere with the 2.4 GHz band.
  • 🔒 Unable to connect to WPA3: Make sure your tool and driver support the new encryption standard, older adapters may not see it.

If all else fails, it's worth checking the integrity of the operating system itself. Corrupted packets can interfere with network operation. The command sudo apt install --reinstall kali-linux-wireless can restore necessary metadata and configuration files. As a last resort, using a Live USB image can help determine whether the problem lies with the hardware or the settings of the installed system.

Why can't my Wi-Fi adapter see 5 GHz networks?

This could be due to two reasons: either the adapter physically only supports the 2.4 GHz band (802.11n/b/g standard), or the wrong region (country code) is selected for your country. Check for 5 GHz support using the iw list command. If it does, set the region using the sudo iw reg set US command (or your country code) to unblock the channels.

How do I return the adapter to normal mode after testing?

To exit monitoring mode and return to standard management mode, use the command sudo airmon-ng stop wlan0mon (or the name of your interface). This will stop the virtual interface and restore the original wlan0. You may also need to restart the NetworkManager service: sudo systemctl start NetworkManager.

Can I use my laptop's built-in Wi-Fi for pentesting?

Technically, it's possible if the chip supports monitoring and injection modes. However, integrated cards often have weak antennas and may interfere with the Bluetooth module. Furthermore, driver failures can crash the system, requiring a reboot. For professional use, an external adapter is recommended.