LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-18-2008, 02:27 PM   #1
Wraukon
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 1
kickstart - how to set hostname and IP from rarp?


Greetings,

Trying to set up a RHEL4 (and 5) kickstart server. Machines will,
after installation, have a static IP and hostname. How does one
impart the hostname and IP information to the installer without
hardcoding it into the ks.cfg file?

I mean, it hardly makes sense to have a bunch of kickstart files --
even one-line %included ones -- when it should be able to determine
from RARP, right?

[Oh, planning this via PXE boot, by the way...]

--*greywolf;
 
Old 01-18-2008, 05:57 PM   #2
damonhart
LQ Newbie
 
Registered: Nov 2007
Posts: 22

Rep: Reputation: 15
Use DHCP?

If you've already got PXE booting set up and a kickstart install working, it shouldn't take much to centralize the mapping of MAC to name/IP address in a dhcpd.conf file and serve these to target hosts. This is what happens on our network. One caveat, our hosts have "fixed" IP addresses too, but not technically "static" as they're set to use DHCP. They just get the same response each time since their MAC addresses are mapped in the dhcpd.conf to respective names/IPs. If you actually intend to move these machines away from this DHCP server and need them to know their own addresses (i.e. true static IP) this solution doesn't map well to your setup.
 
Old 01-28-2008, 11:51 AM   #3
twk
Member
 
Registered: Feb 2002
Location: Canada
Distribution: Fedora/RHEL
Posts: 152

Rep: Reputation: 31
At the boot prompt you can input network configuration
For example:
Code:
linux ks=http://1.1.1.1/myks.cfg ip=2.2.2.2 netmask=255.255.255.0 gateway=2.2.2.254 dns=2.2.2.3 ksdevice=eth0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hostname in kickstart config ahmedb72 Red Hat 5 01-30-2013 01:32 AM
set the IO address of the serial port of my computer to 0x3e8 during kickstart stage powah Linux - Hardware 0 09-21-2006 05:03 PM
cannot set hostname kpachopoulos Debian 1 02-27-2006 12:13 AM
how to set the hostname? harys Ubuntu 1 02-15-2006 05:35 AM
set hostname allelopath Linux - Software 10 04-30-2003 06:05 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration