Re: Why does network interface sometimes change name?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Apr 6, 2015 at 1:01 PM, Rodrigo Rivas
<rodrigorivascosta@xxxxxxxxx> wrote:
> On Mon, Apr 6, 2015 at 5:36 PM, Felix E. Klee <felix.klee@xxxxxxx> 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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux