Why does static network configuration in kickstart not applied after installation in Red Hat Enterprise Linux 7?

Solution Verified - Updated -

Issue

  • The kickstart file includes %pre section to generate /tmp/buildnet with the static network configuration.
  • The kickstart file is in HTTP server.
  • After installation, the static network configuration is not reflected. It's using dhcp with BOOTPROTO=dhcp in ifcfg-* configuration file.
  • Also the files /etc/sysconfig/network-scripts/ifcfg-eth0 contains entries with 0 appended as follows which makes network down as well.
    IPADDR0=192.168.0.1
    PREFIX0=24
    GATEWAY0=192.168.0.254

Environment

  • Red Hat Enterprise Linux 7
  • NetworkManager

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content