[syslinux] PXE client does not honor "hostname" parameter passed by DHCP server

Erwan Velu erwan at seanodes.com
Wed Mar 26 10:52:50 PDT 2008


a s p a s i a wrote:
> Hello all,
>
> I would like to seek advise on the following;  I have configured linux
> NFSroot images for a bunch of servers and am able to boot and run
> stuff happily;  one nuance that bothers me is that, for instance, my
> Fedora6 (x64) (kernel 2.6.22), (and noticed also in some other distros
> - Fedora8, Ubuntu710), the client boots but DOES NOT seem to pick up
> the hostname I pass it through the DCHP server.
>
> 1.  DHCP host declaration:
>
> host r02s02 {
>   hardware ethernet 00:A0:D1:E3:57:CA;
>   fixed-address 192.168.16.12;
>   filename "pxelinux.0";
>   option host-name "r02s02";
> }
>
> 2.  Client boots but NO hostname!
>
> [root at localhost ~]# uname -a
> Linux localhost.localdomain 2.6.22.custom.14 #1 SMP Thu Feb 28
> 11:35:58 PST 2008 x86_64 x86_64 x86_64 GNU/Linux
> [root at localhost ~]# hostname
> localhost.localdomain
> [root at localhost ~]#
>   
I don't think it's related to pxelinux at all.
When your linux is booting up it start it's network interface and run a 
dhcp client. Depending on the client and its configuration, it will ask 
or not to set its hostname.
I suggest adding a NEEDHOSTNAME = yes in your ifcfg-ethx config file.




More information about the Syslinux mailing list