OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: namezero111111 on February 11, 2018, 05:42:00 PM

Title: Static ARP entry when not using DHCP [RESOLVED]
Post by: namezero111111 on February 11, 2018, 05:42:00 PM
Dear folks,

We would like to add a static ARP entry to OPNsense for multicast.

There is only an option on DHCP, but we don't use DHCP.

Is there a way via the GUI to add a static IP <=> ARP entry that we have missed?

Thanks in advance!
Title: Re: Static ARP entry when not using DHCP
Post by: Foss on April 11, 2018, 12:00:56 PM
 I have the exact same issue. Did you find a solution for this..?

I am currently looking at doing it in the shell with standard freebsd settings
Title: Re: Static ARP entry when not using DHCP
Post by: namezero111111 on April 11, 2018, 12:27:47 PM
Hi foss,

FreeBSD supports the following:
In /etc/rc.conf, add the lines:

Quote
static_arp_pairs="mypair1 secondpair"
static_arp_mypair2="192.168.1.1 01:00:5E:7F:03:93"
static_arp_secondpair="192.168.1.2 11:54:33:A9:BB:7D"

You can add as many pairs here as you like in the same format.

Then, run
Quoteservice static_arp restart


This will survive both reboots and link cycles!
Title: Re: Static ARP entry when not using DHCP [RESOLVED]
Post by: Foss on April 11, 2018, 02:36:25 PM
Thanks that did the job  ;)

Also found this link very helpful - https://unix.stackexchange.com/questions/432146/freebsd-static-arp-entry-when-link-cycles