Mailinglist Archive: opensuse (4348 mails)

< Previous Next >
Re: [SLE] DHCP host name?
  • From: andersn@xxxxxxxxxx
  • Date: Tue, 1 Oct 2002 11:28:22 +0200
  • Message-id: <20021001112822.5fe542da.andersn@xxxxxxxxxx>

Hmm.. I suppose you mean the "use-host-decl-names on;" statement on the server side? What does that do?

Actually I'm pretty sure the server side works because many other PC's get their host names successfully (BSD and XP clients that is).

However, I just discovered that there is an executable, /sbin/dhclient, which in turn calls the script /sbin/dhclient-script, which looks for the file /etc/sysconfig/dhclient. BUT, I have no such file. So I made a soft link from /etc/sysconfig/dhclient to /etc/sysconfig/network/dhcp wich seems to be the file containing all the useful dhcp settings.

And now it works, host name is setup accordingly at startup. However I would not think this is the right way to do it, right?

Any thoughts upon this?

/Anders


On Mon, 30 Sep 2002 22:34:10 -0400
Claude Thibeault <claude.thibeault@xxxxxxxxxxxx> wrote:

> Hi
>
> In your file /etc/dhcpd.conf did you set the following?
>
> group {
> use-host-decl-names on;
>
> host little-blaine {
> hardware ethernet 00:04:5A:63:0A:EB;
> fixed-address 192.168.1.101;
> }
> }
>
> good luck
>
> Claude
>
> andersn@xxxxxxxxxx wrote:
>
> >Hi.
> >
> >I want my linux clients to setup their host names from a dhcp server. The IP-numbers works fine but the host name is always set to "linux".
> >
> >Using Yast2 I have in the "Host name and DNS" module checked the "Change host name via DHCP". This I believe sets the variable DHCLIENT_SET_HOSTNAME=yes in the file /etc/sysconfig/network/dhcp. But nothing seemingly takes notice of that since host name still is "linux".
> >
> >The script /etc/init.d/boot.localnet sets host name to whatever is found in the file /etc/HOSTNAME, which currently is "linux.local". However I expected the DHCP setup to override this.
> >
> >What am I missing here?
> >
> >The clients are running SuSE 8.0.
> >
> > /Anders
> >
> >
> >
> >
>
>

< Previous Next >
Follow Ups
References