[arch-general] Why does network interface sometimes change name?

Troy Engel troyengel+arch at gmail.com
Mon Apr 6 19:49:47 UTC 2015


On Mon, Apr 6, 2015 at 1:01 PM, Rodrigo Rivas
<rodrigorivascosta at gmail.com> wrote:
> On Mon, Apr 6, 2015 at 5:36 PM, Felix E. Klee <felix.klee at inka.de> wrote:
>>
>> I have to change back and forth the interface name in that configuration file.
>
> It is probably caused by those fancy Predictable Network Interface
> Names [1], that in your case become unpredictable.

You can also disable both of them on the kernel commandline, which is
handy when you have thousands of servers and can't afford to deal with
the names changing (think mass automation) if a PCI card is plugged
into slot6 when you thought it was in slot5 or whatnot.

  net.ifnames=0    This will stop systemd ("enp0s25" etc.)
  biosdevname=0  This will stop udev ("em1" etc.)

Add those to your GRUB_CMDLINE_LINUX_DEFAULT (or GRUB_CMDLINE_LINUX)
in /etc/default/grub and rebuild your grub config file
(grub-mkconfig). This is a portable solution that should work on any
distro, not just Arch.

hth,
-te


More information about the arch-general mailing list