How to eliminate ifcfg-Auto_Ethernet at boot
I had read somewhere that with RHEL 7.0 there's a kernel boot parameter net.ifparms=0 that will suppress the generation of the ifcfg-Auto_Ethernet entries for the NICs installed in a machine., and essentially "force" the system to use the older eth0, eth1 definitions. I tried by updating the /etc/default/grub e.g.
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.lvm.lv=FW_L7/root vconsole.font=latarcyrheb-sun16 rd.lvm.lv=FW_L7/swap crashkernel=auto vconsole.keymap=us rhgb quiet biosdevname=0 net.ifnames=0"
GRUB_DISABLE_RECOVERY="true"
Then I rebooted the system, (restart) however it apparently did not work.
Any other ideas on how to eliminate the generation of ifcfg-Auto_Ethernet entries at boot ?
Thanks
Guy Rich
Responses
Hi Guy,
The kernel command line parameter is net.ifnames=0 (i.e. not ifparms). See the Disabling Consistent Network Device Naming chapter of the RHEL7 Networking Guide for more detailed info. You can also refer to the following discussion: Disable consistent network device naming in RHEL7.
On second reading, I see that you actually used the correct parameter in the GRUB config file (I was confused by what you wrote in the first sentence of your question).
So, did you run grub2-mkconfig after editing the /etc/default/grub file for the changes to take effect? Specifically:
grub2-mkconfig -o /boot/grub2/grub.cfg
(See Configuring the GRUB 2 Boot Loader in the System Administrator's Guide.)
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
