OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Static ARP entry when not using DHCP [RESOLVED]
« previous next »
  • Print
Pages: [1]

Author Topic: Static ARP entry when not using DHCP [RESOLVED]  (Read 5151 times)

namezero111111

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 10
    • View Profile
Static ARP entry when not using DHCP [RESOLVED]
« 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!
« Last Edit: April 11, 2018, 12:28:05 pm by namezero111111 »
Logged

Foss

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
Re: Static ARP entry when not using DHCP
« Reply #1 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
Logged

namezero111111

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 10
    • View Profile
Re: Static ARP entry when not using DHCP
« Reply #2 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
Quote
service static_arp restart


This will survive both reboots and link cycles!
Logged

Foss

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
    • View Profile
Re: Static ARP entry when not using DHCP [RESOLVED]
« Reply #3 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Static ARP entry when not using DHCP [RESOLVED]
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2