"change funny net name to eth-like -- linux| grub2 | fedora"

Published: Thu 17 August 2017

In content.

update:

5:03AM - adding note for fedora

ORIGINAL: WRITTEN FOR UBUNTU/LINUX MINT

suppose you encounter funny network interface names, such as:

enp2s0 etc etc

filename: grub2.cfg/grub.cfg

you can change them by adding following

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

Update:

5:03AM - 28th August 2018 -

  • -  all sorts of condemnation = I am less concerned about Ubuntu Linux these days .

fedora's default grub configuration file is in "/etc/default/grub" . It is then used to generate grub configuration.

you should look for above "GRUB_..", never mind whatever is in that line, add "net.ifnames=..." in-front of the line, use \ if you need.

apply the change by running following command:

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

reference: https://fedoraproject.org/wiki/GRUB_2#Setting_default_entry

social