Now that Ubuntu has completed the switch to systemd in 15.04, I want to get rid of /etc/udev/rules.d/70-persistent-net.rules and switch to predictable network interface names (a.k.a. biosdevnames). How could I do this?

share|improve this question
    
solsTiCe answer is wrong. I tested it just now and it's not working. You don't get predictable network name. You still get eth0, eth1 etc that get reset on each boot even if you set GRUB_CMDLINE_LINUX_DEFAULT="quiet splash net.ifnames=1" and prevent from being generated (sudo ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules) – Anthony Hunt Jul 5 '15 at 16:41

In Ubuntu 15.04'ssystemd, predictable interface names is opt-in by default instead of opt-out. So you have to specify on the kernel command line net.ifnames=1

For example, in grub configuration file, /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash net.ifnames=1"

You wil also have to remove /etc/udev/rules.d/70-persistent-net.rules and to avoid it being regenerated at each boot you need to run

sudo ln -s /dev/null /etc/udev/rules.d/75-persistent-net-generator.rules
share|improve this answer

Using the new names in /etc/network/interfaces seems to be the answer according to this forum post and this documentation bug #1312785

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.