From owner-freebsd-questions Mon Sep 23 1:25:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6A8537B401 for ; Mon, 23 Sep 2002 01:25:09 -0700 (PDT) Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id E2BEA43E3B for ; Mon, 23 Sep 2002 01:25:08 -0700 (PDT) (envelope-from hiddink@bendoo.com) Received: (qmail 99915 invoked from network); 23 Sep 2002 08:25:05 -0000 Received: from node-c-e829.a2000.nl (HELO tulin) (62.194.232.41) by relay1.pair.com with SMTP; 23 Sep 2002 08:25:05 -0000 X-pair-Authenticated: 62.194.232.41 From: "Bert Hiddink [Bendoo]" To: freebsd-questions@freebsd.org Date: Mon, 23 Sep 2002 10:34:13 +0200 MIME-Version: 1.0 Subject: Re: Resolving IP through DHCP on LAN (II) Message-ID: <3D8EEE25.711.41B009@localhost> In-reply-to: <00c901c262b8$4d0939f0$0a00a8c0@groovy3xp> X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Thanks for the replies! However, this is how my dhclient.conf looks like: interface "xl0" { send host-name "delta"; send dhcp-lease-time 600; } but it does not seem to communicate with the dhcp-service from the router as the active DHCP-table still shows the same (see below). Any further ideas? Regards! -brt 23 Sep 2002 at 0:18, dfolkins wrote: >> ----- Original Message ----- >> From: "Bert Hiddink [Bendoo]" >> To: >> Sent: Sunday, September 22, 2002 6:28 AM >> Subject: Resolving IP through DHCP on LAN >> >> >> > Hello, >> > >> > I have a LAN which looks like this: >> > >> > Internet ---> Cablemodem---> Router with DHCP-service ---> 2 Winboxes, 1 >> Freebsd box >> > I have 4.6.2. release installed on the FreeBSD box. >> > >> > The router has an DHCP service and IP's are dynamicly assigned to the 3 >> machines within my LAN. >> > However, when I view the DHCP Active IP Table, I see the following: >> > >> > Gateway IP Address: 192.168.1.1 >> > DHCP Hostname IP Address MAC Address >> > tulin 192.168.1.101 00-80-AD-C9-25-DC >> > alfa 192.168.1.102 00-81-AC-C8-25-DA >> > 192.168.1.104 00-C0-4F-AA-24-0C >> > >> > The machines called "tulin" and "alfa" are the Win98 boxes, the last line >> corresponds to my FreeBSD >> > box. It is called "delta". My question: why does the name of my FreeBSD >> box not show up in the >> > DHCP Active IP Table? >> > >> > If I use its IP address, I can access this box without no problem (FTP, >> Samba, etc.) However, I >> > would like to access it by using its name ("delta"). How to achieve this? >> > >> looks like your dhclient is not configured to send a hostname to the dhcp >> server. >> >> here is a relevant excerpt from "man dhclient.conf": >> >> send { [ option declaration ] [, ... option declaration >> ]} >> >> and here is an excerpt from "man dhcp-options": >> >> option host-name string; >> >> This option specifies the name of the client. The name >> may or may not be qualified with the local domain name >> (it is preferable to use the domain-name option to >> specify the domain name). See RFC 1035 for character >> set restrictions. This option is only honored by >> dhclient-script(8) if the hostname for the client >> machine is not set (i.e., set to the empty string in >> rc.conf(5) ). >> >> so, as you can see, it appears that the hostname for the freebsd machine >> ("delta") is being set only _after_ your box acquires its dhcp lease, and >> thereby does not send the hostname to the dhcp server. if you put the above >> "send" line into your /etc/dhclient.conf file, like this: >> >> send host-name "delta"; >> >> your box will send the hostname to the dhcp server and all should work as >> expected. to be more correct, you may even put in something like this: >> >> interface "if0" { >> send host-name "delta"; >> } >> >> where "if0" is the name of your dhcp-configured ethernet interface (e.g. >> xl0, rl0, etc). >> >> hope this helps, >> -- >> dfolkins >> -- Bert Hiddink, hiddink@bendoo.com Bendoo The Netherlands De Vloglanden 39, 7051 VA Varsseveld To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message