From owner-freebsd-mobile Sat Mar 22 10:10:30 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 6F97B37B401 for ; Sat, 22 Mar 2003 10:10:29 -0800 (PST) Received: from moek.pir.net (moek.pir.net [130.64.1.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6BE743F75 for ; Sat, 22 Mar 2003 10:10:28 -0800 (PST) (envelope-from pir@pir.net) Received: from pir by moek.pir.net with local (Exim) id 18wnRs-0007DC-00 for mobile@FreeBSD.ORG; Sat, 22 Mar 2003 13:10:28 -0500 Date: Sat, 22 Mar 2003 13:10:27 -0500 From: Peter Radcliffe To: mobile@FreeBSD.ORG Subject: Re: static IP via DHCP and multiple NICs Message-ID: <20030322181027.GA27232@pir.net> Reply-To: mobile@freebsd.org Mail-Followup-To: mobile@FreeBSD.ORG References: <3E7C4E05.32696.1447B082@localhost> <3E7C556D.1700.1464A077@localhost> <20030322175717.GA59999@woodstock.nethamilton.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030322175717.GA59999@woodstock.nethamilton.net> User-Agent: Mutt/1.4.1i X-fish: < X-Copy-On-Listmail: Please do NOT Cc: me on list mail. 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 Jon Hamilton probably said: > } > group { > } > use-host-decl-names on; > } > > } > host laptop1.yourdomain.net { > } > option dhcp-client-identifier "laptop1"; > } > option host-name "laptop1"; > } > fixed-address laptop1.yourdomain.net; > } > } > } > } You can just use; host laptop1.yourdomain.net { option dhcp-client-identifier "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. One would think incorrectly. The two terms are not anded together, (either will work) so you will get that IP if you match the MAC or you match the dhcp-client-identifier. DHCP isn't a security method, if you want filter MACs then do it elsewhere. If you want to get into really hairy configurations, look at classing but I wouldn't recommend it. This isn't a FreeBSD specific question, nor a -mobile specific question, anyway. If you want isc-dhcpd configuration help, they run an dhcp-users list. P. -- pir pir-sig@pir.net pir-sig@net.tufts.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message