Date: Sun, 16 Oct 2005 10:16:21 -0500 From: "Thomas S. Crum - AAA Web Solution, Inc." <tscrum@aaawebsolution.com> To: "'Thomas S. Crum - AAA Web Solution, Inc.'" <tscrum@aaawebsolution.com>, <freebsd-isp@freebsd.org> Subject: RE: Loading permanent ARP entries at boot time Message-ID: <001001c5d264$93df3a90$0601a8c0@wolf> In-Reply-To: <000a01c5d253$2bb2bde0$0601a8c0@wolf>
next in thread | previous in thread | raw e-mail | index | archive | help
If I am missing an easier way to do this with rc.conf, etc. please let me know. Otherwise, here is the only way I could come up with adding arp entries on boot. HOW TO ADD STATIC ARP ENTRIES ON BOOT // CREATE THE ARP FILE ee /root/ARP_TABLE.txt // ADD THE ARP ENTRIES (Note you must use ips within your subnet. You may remove perm, if needed) 192.168.1.10 00:04:23:bd:c9:44 perm 192.168.1.11 00:04:23:bd:c9:45 perm // CREATE THE STARTUP SCRIPT ee /usr/local/etc/rc.d/arpstatic.sh // ADD THE FOLLOWING TO STARTUP SCRIPT #!/bin/sh arp -f /root/ARP_TABLE.txt // CHMOD THE NEW STARTUP SCRIPT chmod 555 /usr/local/etc/rc.d/arpstatic.sh // Will now load arp entries on boot -Tom > -----Original Message----- > From: owner-freebsd-isp@freebsd.org > [mailto:owner-freebsd-isp@freebsd.org] On Behalf Of Thomas S. > Crum - AAA Web Solution, Inc. > Sent: Sunday, October 16, 2005 8:12 AM > To: freebsd-isp@freebsd.org > Subject: Loading permanent ARP entries at boot time > > > Hi all, > > I am having a terrible time answering this silly question. > > I am trying to load arp entries from a file at boot time. > > I can add the individual permanent arp entries with: > arp -S hostname ether_addr > > But, when I reboot the system the arp entries are lost. > > I understand that I can load arp entries from a file with: > > arp -f file.txt > > file.txt = hostname ether_addr [temp] [pub] > > But, how can I make arp read this file at boot time? > > Thank you, > > -Tom > > > _______________________________________________ > freebsd-isp@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-isp > To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c5d264$93df3a90$0601a8c0>