From owner-freebsd-questions@FreeBSD.ORG Sun Sep 7 15:24:59 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0904C16A4BF for ; Sun, 7 Sep 2003 15:24:59 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 135EB43FB1 for ; Sun, 7 Sep 2003 15:24:56 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[66.30.200.37]) by comcast.net (sccrmhc13) with ESMTP id <2003090722245301600g3ss0e>; Sun, 7 Sep 2003 22:24:53 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h87MOqto012455; Sun, 7 Sep 2003 18:24:52 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h87MOqN2012452; Sun, 7 Sep 2003 18:24:52 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: Colin Watson , freebsd-questions@freebsd.org References: <00aa01c3757a$bf2b9430$0b4e1151@blackbox> <3F5B9086.9020404@mac.com> From: Lowell Gilbert Date: 07 Sep 2003 18:24:52 -0400 In-Reply-To: <3F5B9086.9020404@mac.com> Message-ID: <447k4kgrt7.fsf@be-well.ilk.org> Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Binding MAC to IP Statically X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 22:24:59 -0000 Chuck Swiger writes: > Colin Watson wrote: > [ ...rewrapped to 80-columns... ] > > Any way to bind a MAC address statically to an IP?. I wish to do this to > > prevent a user from changing his IP address on the subnet, so if he does he > > can't pass traffic. I have experimented with ipfw, but I can't quite see how > > I could accomplish the binding of a IP statically to a nic's MAC. Any ideas > > be appericated. > > IPFW2 lets you perform firewall actions on a MAC address, rather than an IP. > > You can configure a DHCP server to staticly allocate an IP address to > that machine via something like this in {/usr/local}/etc/dhcpd.conf: > > host pi.codefab.com { > hardware ethernet 00:00:00:00:00:00; > fixed-address 66.234.138.67; > } To be complete: The arp(8) command does literally what was asked for.