How to enable old nic names in CentOS 7

kickstart

use pxe call:

DEFAULT co7_64
LABEL co7_64
 KERNEL <path>/vmlinuz
 APPEND initrd=<path>/initrd.img inst.ks=http://<ip>/pxe/sys/<mac>/co7_64.cfg ip=dhcp net.ifnames=0 biosdevname=0

add: net.ifnames=0 biosdevname=0

installed system

  1. Nummerierter Listenpunktchange GRUP_CMDLINE_LINUX in /etc/default/grub and add
    net.ifnames=0 biosdevname=0

    example:

    GRUB_CMDLINE_LINUX=”rd.lvm.lv=rootvg/usrlv rd.lvm.lv=rootvg/swaplv crashkernel=auto vconsole.keymap=us rd.lvm.lv=rootvg/rootlv vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0”
  2. call command
    grub2-mkconfig -o /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-3.10.0-229.1.2.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-229.1.2.el7.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-8e2308bdebd847cfacee7a163fc0d9f7
    Found initrd image: /boot/initramfs-0-rescue-8e2308bdebd847cfacee7a163fc0d9f7.img
    done
  3. do not forget to rename /etc/sysconfig/network-scripts/ifcfg-* scripts


Authors:
  • Jochen Schnuerle