How to change interface wlan0 to wlan5

Hi, i want to know if it is possible to change the interface (from ifconfig -a) to a different name.
for example, wlan0 to wlan5. thanks

wlan0     Link encap:Ethernet  HWaddr EC:41:00:00:00:00
          inet6 addr: fe80::ee41:18ff:fe4f:7fe5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14463 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20835 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1687871 (1.6 MiB)  TX bytes:3545259 (3.3 MiB)

ifconfig wlan0 down  
ip link set wlan0 name wlan5 
ifconfig wlan5 up
2 Likes

option ifname 'wlan5' in /etc/config/wireless.

Though you could also use something more descriptive than wlan5, do keep the name short and all lowercase.

A good application of this is if your WAN connection is a wifi client and you want to run SQM on it.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.