dhcphostname=myhost

Questions related to network booting via PXE
reiffert
Posts: 2
Joined: 21 Sep 2010, 11:51

dhcphostname=myhost

Postby reiffert » 21 Sep 2010, 11:58

Quoting http://www.sysresccd.org/Sysresccd-manu ... ot_options:

dhcphostname=myhost: Sets the hostname that the DHCP client will send to the DHCP server. This may be required if the default hostname cannot be used with your DHCP configuration. This option has been introduced in SystemRescueCd-1.3.5.


I understand the above line as follows:
- I add this parameter to my pxelinux.cfg/default file
- The client will boot and set the $HOST variable to whatever the dhcp-server
tells the client, e.g.

Code: Select all

# From the dhcpd.conf file:
    host laptop9 {
        hardware ethernet  00:90:f5:9b:0b:50;
        option host-name = "laptop9";
        fixed-address 192.168.220.19;
        filename = "pxelinux.0";
    }


echo $HOST will show: laptop9


But instead the hostname is: sysresccd.

What to do here?

Using Version 1.6.0, booting via pxe, tftp (kernel+initrd), tftp ( / )

Kind regards
Thomas

reiffert
Posts: 2
Joined: 21 Sep 2010, 11:51

Re: dhcphostname=myhost

Postby reiffert » 21 Sep 2010, 12:56

sysresccd does not honour the dhcp hostname that get's transferred from the
dhcp server to the dhcp client.

Feature request: honour the hostname provided by the dhcp server and
fix documentation on "dhcpoption=myhost" which is the opposite.

davemc
Posts: 5
Joined: 20 Aug 2009, 09:00

Re: dhcphostname=myhost

Postby davemc » 07 Nov 2010, 09:24

I'd second that.

Make sysresccd (optionally) honour the host-name supplied by the dhcp server instead of sysresccd.

Related to this, dhclient doesn't create /var/lib/dhcp3/dhclient.leases as specified in the dhclient man page, currently making it even harder to find out the host-name.

When booting several or many sysrescue cd's or pxe client children thereof, and ssh among them, it can quickly get confusing when they all call themselves sysresccd.

It would also be useful in scripting. Client23 has completed task etc.


Return to “Network Boot via PXE”

Who is online

Users browsing this forum: No registered users and 3 guests