vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi. I'm not sure if people are still using arp(8) a lot, but I've been using this on several boxes for a while (except for the man page changes I just wrote). Juts like mixerctl.conf(5) and wsconsctl.conf(5) and their respective commands if /etc/arp.conf exists, rc will use arp(8) to add entries on system startup. Cheers! Index: rc ================================================== ================= RCS file: /cvs/src/etc/rc,v retrieving revision 1.298 diff -u -r1.298 rc --- rc 2 Feb 2007 14:51:19 -0000 1.298 +++ rc 6 Feb 2007 16:17:02 -0000 @@ -251,6 +251,10 @@ fi . /etc/netstart +if [ -s /etc/arp.conf ]; then + echo 'setting static ARP entries'; arp -Ff /etc/arp.conf >/dev/null 2>&1 +fi + if [ X"${pf}" != X"NO" ]; then if [ -f ${pf_rules} ]; then pfctl -f ${pf_rules} Index: arp.8 ================================================== ================= RCS file: /cvs/src/usr.sbin/arp/arp.8,v retrieving revision 1.17 diff -u -r1.17 arp.8 --- arp.8 26 May 2006 09:00:57 -0000 1.17 +++ arp.8 4 Feb 2007 17:00:38 -0000 @@ -123,6 +123,12 @@ even though the host address is not its own. This behavior has traditionally been called .Em proxy ARP . +.Pp +If the file +.Em /etc/arp.conf +exists, it will be processed by +.Xr rc 8 +as input file on system startup. .It Fl n Show network addresses as numbers (normally .Nm @@ -175,6 +181,7 @@ .Sh SEE ALSO .Xr inet 3 , .Xr arp 4 , +.Xr arp.conf 5 , .Xr ifconfig 8 .Sh HISTORY The --- /dev/null Sun Feb 4 18:09:37 2007 +++ /usr/src/share/man/man5/arp.conf.5 Sun Feb 4 17:51:20 2007 @@ -0,0 +1,46 @@ +.\" $OpenBSD$ +.\" +.\" Copyright (c) 2007 Antoine Jacoutot <ajacoutot@openbsd.org> +.\" +.\" Permission to use, copy, modify, and distribute this software for any +.\" purpose with or without fee is hereby granted, provided that the above +.\" copyright notice and this permission notice appear in all copies. +.\" +.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.\" +.Dd February 04, 2007 +.Dt ARP.CONF 5 +.Os +.Sh NAME +.Nm arp.conf +.Nd static arp entries processed at system startup +.Sh DESCRIPTION +.Nm +contains a list of static +.Xr arp 8 +entries to be set in the ARP tables at system startup by +.Xr rc 8 . +.Pp +As described in +.Xr arp 8 , +entries in this file should be of the form: +.Bd -filled -offset indent +.Ar hostname ether_addr +.Op Cm temp | permanent +.Op Cm pub +.Ed +.Pp +.Sh FILES +.Bl -tag -width /etc/arp.conf -compact +.It Pa /etc/arp.conf +.El +.Ed +.Sh SEE ALSO +.Xr arp 8 , +.Xr rc 8 -- Antoine |