Skip to content

Consistent Network Device Naming

Óscar Alfonso Díaz edited this page Dec 24, 2021 · 35 revisions

For some Linux distributions like Ubuntu or Debian since some versions, the default naming for network devices is using the new nomenclature which is causing errors while using airgeddon. This is because a bug in airmon-ng which is already solved in modern versions. But if you are using s.

How to know if I am affected?

If you see your wireless card named as wlx00c0ca9208dc or any similar name, yeah you are affected and probably you'll face some issues using airgeddon while changing mode of your card. It's better to have them using the classic naming style (wlan0, wlan1, etc.).

How to change them to the classic names style?

To do that you must modify grub configuration. You should modify your /etc/default/grub file in order to add this net.ifnames=0 biosdevname=0 to your GRUB_CMDLINE_LINUX line.

I don't have that /etc/default/grub file, now what?

On some Linux, the path could be different like in modern Parrot Linux where you can locate the right file to modify here: /etc/default/grub.d/parrot.cfg.

On other Linux like installed on Raspberries, the file /etc/default/grub is not existing. In this case you can edit the file /boot/cmdline.txt to add there the needed net.ifnames=0 biosdevname=0 options.

Examples

  • GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
  • GRUB_CMDLINE_LINUX="find_preseed=/preseed.cfg auto noprompt priority=critical locale=en_US net.ifnames=0 biosdevname=0".

Just add net.ifnames=0 biosdevname=0 to your existing options keeping what you already have there.

Now just need to apply changes following the last point of this section.

After modification, to apply changes (IT WILL NOT BE EFFECTIVE WITHOUT THIS LAST STEP!!)

After modifying the /etc/default/grub file, execute update-grub and then reboot or directly reboot if you modified /boot/cmdline.txt as explained above (used usually for Raspberries). After that, your wireless interface cards will be named again as always (wlan0, wlan1, etc.) and you'll be able to make them work correctly in airgeddon.

Clone this wiki locally