HOSTNAME = IP with PXE boot?

Jeroen Akershoek jeroena at sara.nl
Thu Oct 14 13:32:46 CEST 2004


On Wed, 13 Oct 2004 18:19:51 +0200 (CEST)
Michael Tautschnig <michael.tautschnig at zt-consulting.com> wrote:

> [...]
> >
> > dhcpd.conf
> > ----------
> > allow booting;
> > allow bootp;
> > authorative;
> >
> > option dhcp-max-message-size 2048;
> > use-host-decl-names on;
> > #always-reply-rfc1048 on;
> > filename "pxelinux.0";
> >
> > option root-path "/raid/fai/nfsroot";
> > option domain-name "sara.nl";
> > option domain-name-servers 145.100.5.30, 145.100.5.47;
> >
> > subnet 145.100.15.128 netmask 255.255.255.192 {
> >  option broadcast-address 145.100.15.191;
> >  option routers 145.100.15.129;
> >  ..
> >  ..
> >  group {
> >    host disp01 {
> >      hardware ethernet 00:0e:0c:63:3e:e3;
> >      fixed-address vctemp;
> Add
> 
> host-name "vctemp";

option host-name "vctemp";

Tried that, didn't work though.

It might have something to do with the way I install the machines too.
I give it a hostname 'disp01', but use the vctemp address for installation.
This is because I install machines on a seperate network and have them renumber
during the installation process (by having hostname.var set the new IP, GATEWAYS, etc)

Again, this method works fine when booting from a boot-CD, but with PXE it doesn't seem
to work. The DHCP server doesn't give out any (parsing) errors or anything when starting,
it only gives out the strange error messages if I do a "255.255.255.255:autoconf". When
I add an IPAPPEND 1 instead, the error message is gone, and according to the logs everything
seems fine. However, the HOSTNAME variable is incorrect. All other variables, such as DOMAIN,
IP, GATEWAYS are set correctly (but not with the new values, since it obviously can't parse
the hostname.var). HOSTNAME is set to the first part of the IP (145 in our case) and the
CLASS list also mentions a "145" class.

Jeroen

-- 
Jeroen Akershoek - "The guy that keeps the servers running"
SARA Computing and Network Services
tel: +31 20 5923000     fax:   +31 20 6683167

There are actually certain circumstances under which this software
doesn't misperform
        -- Jorrit Adriaanse



More information about the linux-fai mailing list