From owner-freebsd-mobile Sat Mar 22 9:57:21 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 968B337B401 for ; Sat, 22 Mar 2003 09:57:19 -0800 (PST) Received: from mail4.wi.rr.com (fe4.rdc-kc.rr.com [24.94.163.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF30943FAF for ; Sat, 22 Mar 2003 09:57:18 -0800 (PST) (envelope-from hamilton@pobox.com) Received: from woodstock.nethamilton.net ([65.25.186.233]) by mail4.wi.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Sat, 22 Mar 2003 11:56:57 -0600 Received: by woodstock.nethamilton.net (Postfix, from userid 500) id CDA4444D6; Sat, 22 Mar 2003 11:57:17 -0600 (CST) Date: Sat, 22 Mar 2003 11:57:17 -0600 From: Jon Hamilton To: Dan Langille Cc: mobile@FreeBSD.ORG Subject: Re: static IP via DHCP and multiple NICs Message-ID: <20030322175717.GA59999@woodstock.nethamilton.net> References: <3E7C4E05.32696.1447B082@localhost> <3E7C556D.1700.1464A077@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E7C556D.1700.1464A077@localhost> 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 Dan Langille , said on Sat Mar 22, 2003 [12:22:05 PM]: } On 22 Mar 2003 at 11:01, Jon Hamilton wrote: } } > Dan Langille , said on Sat Mar 22, 2003 [11:50:29 AM]: } > } 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? One would think adding a: hardware ethernet ; line in the host stanza on the server would suffice. Whether you can use multiple such lines (4 in your case) in a single entry, or whether you'd need to create 4 host entries with different hardware lines isn't clear to me from reading the man page. Something to play with, anyway. -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message