Setting statis IP address from DHCP result
Michael Blandford
mlblandf at sedona.ch.intel.com
Mon Jul 12 18:22:17 UTC 2004
coutch wrote:
>I want to install many systems using the same kickstart file, but they need to
>be setup with static IP addresses.
>
>The install is performed using PXE/DHCP. In production, the systems will
>have statically assigned IP addresses, which will be the same as the one given
>by the DHCP server during installation. Since I want to use a single
>kickstart file, I can't hardcode the IP address ...
>
>I was thinking about having a %pre script that checks the IP address it got from
>the DHCP server, and creates a temporary file like /tmp/network-config.inc , and
>use this to set the parameters for the "network" option of kickstart by doing:
>%include /tmp/network-config.inc
>
>Does anybody have a better suggestion (other than the obvious of running the
>production environment with DHCP, which is not an option) ?
>
>
You can do it in the post as well. You have more tools to work with.
Just create the appropriate /etc/sysconfig/network and
/etc/sysconfig/network-scripts/ifcfg-eth0 files ( or whatever is
appropriate for your machine )
Michael
Disclaimer: The content of this message is my personal opinion only and
although I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak on
behalf of Intel on this matter.
More information about the Kickstart-list
mailing list