How can we change the Wireless network Adapter Interface Name in Linux

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

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
iwconfig




Now, It's time to change our network interface name in Linux.

By executing iwconfig command in Terminal, We got our network interface name.
And I am going to change my wlo1 to wlan0 
iwconfig 2>&1 | grep -oP "^\w+"
iwconfig 2>&1 | grep -oP "^\w+"



Here wlo1 is the default name (old name) of my network interface and wlan0 is the name which I want to change
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

For Debian based (Ubuntu, Kali, Parrot, PoP!_OS, etc...)
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
iwconfig command to confirm network interface changed or not


Changing network interface by using ifconfig tool

Changing network interface name by ifconfig
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

For Debian based (Ubuntu, Kali, Parrot, PoP!_OS, etc...)
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 
iwconfig in linux for interface wifi

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.