14

How do we disable predictable network interface names in xubuntu 15.10 ? I want my old interfaces naming like eth0 ... ethx, some of my software assumes eth0 interface to be present and is hard coded all over the place.

Ravikumar Tulugu
  • 243
  • 1
  • 2
  • 6

1 Answers1

21

As root, in the file /etc/default/grub

Add net.ifnames=0 biosdevname=0 to the kernel command line in your grub config.

To do so, change the following line

GRUB_CMDLINE_LINUX=""

to

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

then save the file, run update-grub and then reboot.

user9517
  • 114,104
  • 20
  • 206
  • 289
  • is that it ? no need to modify dev-rules and other stuff ? – Ravikumar Tulugu Dec 07 '15 at 07:31
  • In Ubuntu 14.04 (mini.iso image) I do that but I only get the splash saying "Waiting for network configuration..." and network interfaces do not appear :( – aloplop85 Jul 18 '16 at 18:30
  • 1
    This should be default for desktop systems – jsaddwater Aug 29 '18 at 08:34
  • Thanks, Iain! A nice concise answer. – Eric M Jun 09 '19 at 17:14
  • 2
    I consider those unpredictable "predictable device" names harmful. Future versions of Linux should turn those down and return to net.ifnames=0 as the default. – pefu Apr 29 '20 at 10:27
  • 1
    the fact they chose "predictable" instead of "deterministic" underlies why they should not have made this change. It was predictable before, it would be "eth something". Now it's predictable in that it will be "e something{1,3} something{1,4} (something{1,2} something{1,2})?" – kfsone Nov 30 '20 at 18:40