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 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 - 2018 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.