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.
Asked
Active
Viewed 2.0k times
14
-
Remember to fix the offending software. You can't avoid using predictable network device names forever. – Michael Hampton Dec 07 '15 at 13:44
-
5I will certainly try though! ;) – OneOfThePetes Jun 14 '16 at 14:06
-
6And why do they make offending upgrades, forcing a naming cheme, totally different from the one used for many years? I find no reason, except breaking millions of working network setup scripts. – Nuclear Dec 06 '16 at 20:21
-
@Nuclear The same applies to many systemd inventions. – ceving May 20 '19 at 07:33
1 Answers
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.
OneOfThePetes
- 115
- 5
user9517
- 114,104
- 20
- 206
- 289
-
-
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
-
-
2I 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
-
1the 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