From owner-freebsd-mobile Sat Mar 22 9:22: 8 2003 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61A2337B401 for ; Sat, 22 Mar 2003 09:22:07 -0800 (PST) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8AFE43FA3 for ; Sat, 22 Mar 2003 09:22:06 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id D3C943D29; Sat, 22 Mar 2003 12:22:05 -0500 (EST) From: "Dan Langille" To: Jon Hamilton Date: Sat, 22 Mar 2003 12:22:05 -0500 MIME-Version: 1.0 Subject: Re: static IP via DHCP and multiple NICs Cc: mobile@FreeBSD.ORG Message-ID: <3E7C556D.1700.1464A077@localhost> In-reply-to: <20030322170104.GA80709@woodstock.nethamilton.net> References: <3E7C4E05.32696.1447B082@localhost> X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 22 Mar 2003 at 11:01, Jon Hamilton wrote: > Dan Langille , said on Sat Mar 22, 2003 [11:50:29 AM]: > } When it comes to laptops, my house has two. Between them, they have > } four NICs; two wireless, and two wired. > } > } I know how to configure DHCP so that a given IP address and hostname > } is assigned based upon the mac address. Here's the example: > } > } host joe { > } hardware ethernet 08:00:2b:4c:29:32; > } fixed-address joe.fugue.com; > } } > } > } What I'd like to do is allow the above box to use any of four NICs, > } yet always get the same fixed address. > } > } Perhaps I should just assign one wireless NIC and one wired NIC to > } each box and assume they are always with that box. > > No need; this can be done fairly easily. Configure each of your laptops > to send an identifier in the DHCP request. If you're using dhclient, you > can place in /etc/dhclient.conf: > > send dhcp-client-identifier "laptop1"; > > Then on the DHCP server, you can use a declaration like: > > group { > use-host-decl-names on; > > host laptop1.yourdomain.net { > option dhcp-client-identifier "laptop1"; > option host-name "laptop1"; > fixed-address laptop1.yourdomain.net; > } > } Is there a way to restrict MAC addresses while retaining the above goals? Thank you. -- Dan Langille : http://www.langille.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message