From owner-freebsd-questions Thu Aug 6 12:14:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04768 for freebsd-questions-outgoing; Thu, 6 Aug 1998 12:14:27 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cyclops.xtra.co.nz (cyclops.xtra.co.nz [202.27.184.96]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04598 for ; Thu, 6 Aug 1998 12:13:43 -0700 (PDT) (envelope-from junkmale@pop3.xtra.co.nz) Received: from wocker (210-55-210-87.ipnets.xtra.co.nz [210.55.210.87]) by cyclops.xtra.co.nz (8.8.8/8.8.8) with SMTP id HAA07602; Fri, 7 Aug 1998 07:12:45 +1200 (NZST) Message-Id: <199808061912.HAA07602@cyclops.xtra.co.nz> From: "Dan Langille" Organization: DVL Software Limited To: Doug White Date: Fri, 7 Aug 1998 07:12:44 +1200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: DHCP configuration (was "changes to file are lost") Reply-to: junkmale@xtra.co.nz CC: freebsd-questions@FreeBSD.ORG References: <199807312331.LAA26654@cyclops.xtra.co.nz> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.01b) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 6 Aug 98, at 11:50, Doug White wrote: > > On 31 Jul 98, at 13:42, Doug White wrote: > > > > > On Fri, 31 Jul 1998, Dan Langille wrote: > > However, if I add single prepend commands to /etc/dhclient.conf before > > the interface "ep0" command, I do get partial success. Here's what I > > supply and what I get: > > > > prepend domain-name "mydomain.com"; > > prepend domain-name-servers 10.0.0.1; > > > > gives: > > > > search mydomain.commyisp.com > > nameserver 10.0.0.10 > > nameserver 11.22.33.44 # my ISP > > nameserver 11.22.33.45 # my ISP > > > > This is strange. There are references in the man pages that I can > > request that the DHCP server not send me certain information (i.e. the > > search statement), but it is not clear to me how to tell it that. > > > > How do I eliminate the search command, replace it with "domain > > mydomain.com" and not have it suffixed with "myisp.com". > > Maybe prepend is the wrong keyword, or try > > prepend domain-name "mydomain.com " > Note extra space ^ Will try that tonight. cheers. > Hint: dhclient's magic is done via a script, /etc/dhclient-script. If you > don't want both in the search path then use the `supercede' keyword > instead of `prepend'. I've viewed that file but had difficulity understanding it. Tonight.... > > Another issue is that after initiating dhclient edo, I must manullay > > redo my ed1 details via ifconfig ed1 10.0.0.5 255.255.255.0. Is that to > > be expected? > > No. dhclient configures all Ethernet interfaces by default, but you can > specify with interfaces to listen on via the command line, like > > dhclient ep0 > > to specifically listen on ep0. Ummm, but I'm issuing "dhclient ed0". > > > BTW: I notice that if I change the 'interface "epo" {' to be 'interface > > "ed0" {', things still work. It's always been ep0, and worked. I would > > have thought it should have to be ed0 in order to work. > > Perhaps you have both? Not that I know of. To my knowledge, I have only ed1 and ed0, two NE2000 type cards. I check more tonight. thanks. -- Dan Langille DVL Software Limited http://www.dvl-software.com/freebsd : my [mis]adventures To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message