Loading permanent ARP entries at boot time

Thomas S. Crum - AAA Web Solution, Inc. tscrum at aaawebsolution.com
Sun Oct 16 08:18:07 PDT 2005


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 at freebsd.org 
> [mailto:owner-freebsd-isp at freebsd.org] On Behalf Of Thomas S. 
> Crum - AAA Web Solution, Inc.
> Sent: Sunday, October 16, 2005 8:12 AM
> To: freebsd-isp at 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 at freebsd.org mailing list 
> http://lists.freebsd.org/mailman/listinfo/freebsd-isp
> To unsubscribe, send any mail to "freebsd-isp-unsubscribe at freebsd.org"
> 
> 




More information about the freebsd-isp mailing list