Thursday, April 3, 2014

Fedora Linux eth0

Sometimes a change is not as good as a holiday.

I like the ethernet port zero to be named eth0 and not p2p1 or em1 or whatever the blazes the system decided to call it this time, since this stupidity breaks all my scripts.

To get the standard behaviour back on Fedora 22 or later, you now only need to do two things:

Add net.ifnames=0 to GRUB_CMDLINE_LINUX in /etc/default/grub immediately before the last quote.

# grub2-mkconfig -o /boot/grub2/grub.cfg

Rename /etc/sysconfig/network-scripts/ifcfg-whatever to ifcfg-eth0
Change to NAME=eth0 inside file ifcfg-eth0.

Now you can reboot:
# reboot

And check things with ifconfig once the machine is up again.

Alternatively, you can call it quits and install Slackware.

La voila!

No comments:

Post a Comment

On topic comments are welcome. Junk will be deleted.