Subject: Re: rc.d script for adding static ARP entries
To: Brian Ginsbach <ginsbach@netbsd.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-net
Date: 08/24/2005 11:08:29
On Tue, Aug 23, 2005 at 09:51:41PM +0000, Brian Ginsbach wrote:
> On Tue, Aug 23, 2005 at 08:23:49PM +0200, Geert Hendrickx wrote:
> > On Tue, Aug 23, 2005 at 07:08:36PM +0200, Matthias Drochner wrote:
> > > 
> > > geert.hendrickx@ua.ac.be said:
> > > > add static ARP entries, listed in /etc/arp.conf
> > > 
> > > I'd prefer a slightly more expensive solution: Have only the IP addresses
> > > in /etc/arp.conf and look up the IP-ether pairs in /etc/ethers. This
> > > avoids duplication of information, and it would allow to have the
> > > /etc/ethers database distributed network- wide, eg. per LDAP. (security
> > > considerations aside, but there are means to authenticate)
> > > Something like
> > > while read ip; do
> > > 	arp -s $ip `getent ethers $ip`
> > > done
> > > 
> > > Just needs "getent" to handle "ethers".
> > 
> > I concur that this is a good idea.  But I'm not a C coder.  Can anyone hack
> > /etc/ethers support into getent?  And could all this be checked in before
> > 3.0 is released?  
> 
> I've just hacked up ga version of getent with ethers support added.
> I'll see about getting it committed.  I think it should be possible
> to get this in before 3.0 provided I do all the pullup requests...

Could you send me the patches?  Then I can adapt staticarp to this new
getent.  

Thanks, 

GH