Page 1 of 1

[SOLVED] Kickstart network configuration on CentOS 6

Posted: 2011/07/19 10:41:30
by dj_judas21
I've been using PXE boot and kickstart to build CentOS 5 servers for some time. At my organisation, servers have to be assigned static IP addresses manually, so in my kickstart file I had a line like this:

[code]network --bootproto=query[/code]

This caused it to PXE boot from DHCP with a temporary IP, and then immediately ask me to define a static IP. It then uses the properly defined static IP throughout the installation, and then retains it when it reboots and becomes a real server.

On CentOS 6, the "query" parameter superficially appears to work, and I get asked to set the static IP. Installation goes fine, but when the system reboots for production, it forgets the static IP I set, and picks up one of the DHCP PXE IPs.

I read [url=]here[/url] that the "query" parameter is deprecated in CentOS 6, and simply omitting the "network" command will cause the installer to prompt. I tried this, but instead it automatically uses DHCP for everything.

Am I doing something wrong, and is there a way of getting the installer to ask me for a static IP to use for evermore?


Re: Kickstart network configuration on CentOS 6

Posted: 2011/07/19 12:18:20
by dj_judas21
Answered my own question. It seems that

network --bootproto=query
is no longer the best way to do this. Instead, I added "asknetwork" to the PXE boot line, like this:

APPEND ks= \
initrd=images/centos/6.0/x86_64/initrd.img ramdisk_size=100000 \
asknetwork url --url=
This has the desired effect of asking me to set a static IP, and it keeps it throughout installation, and the finished system retains it too.

[SOLVED] Kickstart network configuration on CentOS 6

Posted: 2011/07/19 21:36:54
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

Thanks for reporting back with your own solution. Marking this thread [SOLVED] for posterity.