How can we change the Wireless network Adapter Interface Name in Linux?
There are many methods to change the Wireless adapter interface name in Linux. One of the easiest way to change the WiFi adapter interface name is from
- ip link
- ifconfig
Note: To print the Wireless interface name you can execute any of the above commands.
First of all, you have to install the essential program which helps to
perform our task
Note: These tools come with pre-installed in Linux,
By any
chance, if you get the command not found error like the below image then
please install wireless tools in your system.
iwconfig
💻Table of contents
To install wireless tools in your Linux system
-
For Arch based distros (Manjaro, ArcoLinux, EndeavourOS,
Artix, Archlabs, Archman, etc...)
sudo pacman --noconfirm -S iw wireless_tools
-
For Debian based distros (Ubuntu, Kali, Parrot, PoP!_OS, etc...)
sudo apt-get install -y iw wireless-tools
Next, We have to choose the Wireless interface which we want to change. To
view, your system network interface execute iwconfig command in
terminal
iwconfig
Now, It's time to change our network interface name in Linux.
iwconfig 2>&1 | grep -oP "^\w+"
Changing network interface by using ip link tool
Note: Replace wlan0 with your the name which you want to set in your interface
sudo ip link set wlo1 down
sudo ip link set wlo1 name wlan0
sudo ip link set wlan0 up
If your network manager doesn't start automatically then try to restart it manually
sudo systemctl restart NetworkManager
For Arch based (Manjaro, ArcoLinux, EndeavourOS, Artix, Archlabs, Archman, etc...)
sudo systemctl restart NetworkManager.service
We can also confirm whether our network interface name changed or not by executing iwconfig
Changing network interface by using ifconfig tool
sudo ifconfig wlan0 down
sudo ifconfig wlan0 name wireless_lan
sudo ifconfig wireless_lan up
If your network manager doesn't start automatically then try to restart it manually
sudo systemctl restart NetworkManager
For Arch based (Manjaro, ArcoLinux, EndeavourOS, Artix, Archlabs, Archman, etc...)
sudo systemctl restart NetworkManager.service
We can also confirm whether our network interface name changed or not by executing iwconfig
iwconfig