Re: Setting statis IP address from DHCP result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux