Skip to content


RedHat 7 consistent network device naming

two times in a row, a vmware guest was rebooted and its network interface file in /etc/sysconfig/network-scripts got renamed. To resolve this issue permanently:

a. edit /etc/default/grub file locating the line that start with GRUB_CMDLINE_LINUX= and appending to it the following two tokens: net.ifnames=0 biosdevname=0. In my case:

GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=rootvg/lv01 rd.lvm.lv=rootvg/swap rd.lvm.lv=rootvg/lv07 net.ifnames=0 biosdevname=0"

b. rebuild GRUB configuration executing

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

c. renaming the interface file to ifcfg-eth0 (in my case)

d. in the same file, edit the NAME= and the DEVICE= entries to show eth0

Posted in LINUX.

Tagged with , , , , , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

WordPress Anti Spam by WP-SpamShield



Copyright © 2016 - 2017 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.