Subject: Re: dhcpd(8) _cannot_ be completely disabled on an interface
To: None <tech-net@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-net
Date: 01/09/2002 22:43:01
> i can't add a mapping for an ip address that's not on my local
> network using arp(8).
> this# arp -s 1.2.3.4 00:50:04:68:c6:11
> cannot intuit interface index and type for 1.2.3.4
> perhaps one can do such a thing using a "raw" routing socket, but i
> wouldn't expect it.
I expect you can. I know you can use a routing socket to add an arp
entry for an address that is on a subnet you do have an interface on,
but pointing to some other interface, to one for which it's off-subnet.
(I know this 'cause I've done it.)
I'll try to rip out bits of that program and build something a bit like
arp(8) but for which you specify everything manually, including the
interface. I'll see what it does for stuff like your example.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B