Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've just installed Arch Linux on my old PC, to do the installation I used wifi-menu wlan0, now I've reboot but if I type:

ifconfig wlan0 up

I have as a result:

wlan0: ERROR while getting interface flag: no such device

I read that after the installation Arch changes the name of wlan, how can I find the new name and how could I change it?

share|improve this question
Run iwconfig, it should tell you the names of the detected interfaces. –  vonbrand Mar 11 '13 at 17:04
Wlan most likely was renamed to something else. Read archlinux forums for more details: here or here –  don_crissti Mar 11 '13 at 17:22
Read my answer... –  jasonwryan Mar 11 '13 at 19:41
@Braiam The tags I added were (a) relevant, and (b) exclusively so. What is your justification for removing them? –  jasonwryan Apr 7 '14 at 17:31
@Braiam systemd and udev are how Arch does networking: OP may not be aware of that, but that is the reality. People wanting to understand how this works would benefit from more context, not an arbitrarily limited view imposed by the ignorance of the questioner. –  jasonwryan Apr 7 '14 at 18:27

2 Answers 2

up vote 5 down vote accepted

From systemd v197 predictable network names were introduced.

With systemd 197 we have added native support for a number of different naming policies into systemd/udevd proper and made a scheme similar to biosdevname's (but generally more powerful, and closer to kernel-internal device identification schemes) the default.1

You can use ip link to show all of your devices.

You then have the choice of renaming any or all of those devices or continuing to use the ones that systemd/udev provide.

Should you wish to rename it/them to something that you feel more comfortable with, you can place a udev rule in /etc/udev/rules.d/ called 10-net-naming.rules, for example:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="20:a7:d3:68:50:g8", NAME="ether"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="a8:c7:43:1d:f4:53", NAME="wifi"

would rename wireless and ethernet to, imaginatively, wifi and ether. You then need to update your network manager to use the new names.

There is a very detailed post on the Arch Mailing Lists announcing the change.


share|improve this answer
mailman.archlinux.org/pipermail/arch-dev-public/2013-January/… - Adding to the article you linked. –  cinelli Mar 11 '13 at 23:09
Isn't that the link I included in my final sentence? :) –  jasonwryan Mar 11 '13 at 23:43
You're a tricky man. You little trickster. –  cinelli Mar 11 '13 at 23:56

I don't have a wireless card on my Arch box, but I can do what you require using ip on a spare ethernet device eth1, like this:

# view network devices and addresses
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether __MAC_ADDRESS__ brd __IPv6_BROADCAST__
    inet __IP_ADDRESS__/24 brd __BROADCAST__ scope global eth0
    inet6 __IPv6 ADDRESS__/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether __MAC_ADDRESS__ brd __IPv6_BROADCAST__

$ # must bring down eth1 before renaming it.
$ sudo ip link set dev eth1 down

$ # rename eth1 to ethfoo
$ sudo ip link set dev eth1 name ethfoo

$ # show 'ethfoo' device status
$ ip addr show dev ethfoo
3: ethfoo: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 48:5b:39:5d:89:2c brd ff:ff:ff:ff:ff:ff

$ # bring ethfoo back up
$ sudo ip link set dev ethfoo up

I imagine ip should also work identically with a wireless device, and if not, iw would hopefully provide the same functionality..

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.