dhcp doesn't seem to set the hostname on a client

Manuel Kiessling manuel at kiessling.net
Wed Jan 26 09:55:14 CET 2005


Hello,

I have one problem with the FAI clients: They boot perfectly using DHCP 
(with kernel append ip=dhcp), but the hostname is set to the IP.

This is from the clients dmesg:

Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.168.1.62, my address is 192.168.1.250
IP-Config: Complete:
device=eth0, addr=192.168.1.250, mask=255.255.255.0,
gw=192.168.1.100, host=192.168.1.250, domain=cluster.xxxxxxxxxxx, 
nis-domain=(none), bootserver=192.168.1.62, rootserver=192.168.1.62, 
rootpath=/usr/lib/fai/nfsroot,rsize=8192,wsize=8192,acregmin=1800,
acregmax=1800,acdirmin=1800,acdirmax=1800

As you can see, host=192.168.1.250

My dhcpd.conf looks like this:

use-host-decl-names on;
[...]

host demohost {
                hardware ethernet 00:02:23:af:92:f6;
                fixed-address demohost;
               }

(I also tried host-name "demohost"; inside the host definition, with no 
success).

I would expect the client to get the hostname "demohost", but this 
doesn't happen:

192:~# cat /tmp/fai/boot.log
netdevices_all=" eth0 eth1"
netdevices_up=""
netdevices="eth0"
BROADCAST='192.168.1.255'
DOMAIN='cluster.xxxxxxxxxxxxxxxx'
DNSSRVS='192.168.1.62'
DNSSRVS_1='192.168.1.62'
IPADDR='192.168.1.250'
NETWORK='192.168.1.0'
NTPSRVS='192.168.1.62'
NTPSRVS_1='192.168.1.62'
GATEWAYS='192.168.1.100'
GATEWAYS_1='192.168.1.100'
SERVER='192.168.1.62'
NETMASK='255.255.255.0'
TIMESRVS='192.168.1.62'
TIMESRVS_1='192.168.1.62'

FAI Server runs FAI 2.5.4 on Woody, the clients boot with kernel 2.4.29, 
and install a Woody system.

Any hints?

-- 
  Manuel



More information about the linux-fai mailing list