RE: Loading permanent ARP entries at boot time

From: Thomas S. Crum - AAA Web Solution, Inc. (tscrum_at_aaawebsolution.com)
Date: 10/16/05

  • Next message: Sam Nilsson: "Re: Postfix+Courier. Where/How to setup user filters?"
    To: "'Thomas S. Crum - AAA Web Solution, Inc.'" <tscrum@aaawebsolution.com>, <freebsd-isp@freebsd.org>
    Date: Sun, 16 Oct 2005 10:16:21 -0500
    
    

    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"
    >
    >

    _______________________________________________
    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"


  • Next message: Sam Nilsson: "Re: Postfix+Courier. Where/How to setup user filters?"

    Relevant Pages