Binding MAC to IP Statically

Ceri Davies setantae at submonkey.net
Mon Sep 8 05:30:07 PDT 2003


On Mon, Sep 08, 2003 at 12:50:04PM +0500, Timur wrote:

> What I'd like to is to be able to assign unused IP
> addresses to some 'invalid' MAC address, so that my router responds with
> 'host unreachable' to incoming packets destined to these addresses..

Well, do that then.

	# arp -s 192.168.10.127 02:00:00:00:00:01
	# arp -s 192.168.10.128 02:00:00:00:00:01
	[...]
	# ipfw add 1 deny mac 02:00:00:00:00:01 any
	# ipfw add 1 deny mac any 02:00:00:00:00:01

Ceri
-- 
User: DO YOU ACCEPT JESUS CHRIST AS YOUR PERSONAL LORD AND SAVIOR?
Iniaes: Sure, I can accept all forms of payment.
                                           -- www.chatterboxchallenge.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030908/e1abbbd4/attachment.bin


More information about the freebsd-questions mailing list