From owner-freebsd-current Tue Feb 9 11:37:21 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA26495 for freebsd-current-outgoing; Tue, 9 Feb 1999 11:37:21 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles313.castles.com [208.214.167.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26480; Tue, 9 Feb 1999 11:37:17 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id LAA04425; Tue, 9 Feb 1999 11:33:05 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199902091933.LAA04425@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: obrien@FreeBSD.ORG cc: Mike Smith , current@FreeBSD.ORG Subject: Re: adding DHCP client to src/contrib/ In-reply-to: Your message of "Tue, 09 Feb 1999 11:09:35 PST." <19990209110935.A29090@relay.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 09 Feb 1999 11:33:04 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Most basic, you would have ``network_interfaces="lo0 fxp0"'' as usual, > > > but no "ifconfig_fxp0="inet ...." line. > > > > then specify a 'DHCP' token to have all non-listed interfaces do the > > DHCP thing, eg: > > > > network_interfaces="lo0 dhcp" > > Hum... can you give a little more of the approach? I'm probably just not > seeing the clean way of doing this. The ISC dhclient can (IRC) take a list of interfaces not to muck with. Just pass it all the interface names on the list, minus the 'dhcp'. If you find 'dhcp' in $network_interfaces, start dhclient. > I've got a machine on the DHCP required network with two NICs. Currently > I'm only using one of them and thus don't have it listed in > ``network_interfaces''. So it just happily sits there. IMHO we > shouldn't try to dhcp configure it. It will just fill up logs as it > continues to try to get a lease which it can't. In a situation like that, you would just tune the dhcp client not to ask for a lease on that interface. You know you've done something silly; there's a mechanism to stop it breaking things. What more could you ask for? -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message