Skip site navigation (1)Skip section navigation (2)
Date:      07 Sep 2003 18:24:52 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        Colin Watson <sb.mailinglist@lambdabroadband.com>, freebsd-questions@freebsd.org
Subject:   Re: Binding MAC to IP Statically
Message-ID:  <447k4kgrt7.fsf@be-well.ilk.org>
In-Reply-To: <3F5B9086.9020404@mac.com>
References:  <00aa01c3757a$bf2b9430$0b4e1151@blackbox> <3F5B9086.9020404@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger <cswiger@mac.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?447k4kgrt7.fsf>