Do it in hostname.if. You’ll win the race.
> On May 26, 2020, at 2:14 PM, Demi M. Obenour <demioben...@gmail.com> wrote:
>
> On 2020-05-26 09:34, Kanto Andria wrote:
>> Hello,
>> man ndp is probably another solution
>>
>> On Tuesday, May 26, 2020, 9:17:25 a.m. EDT, Tommy Nevtelen
>> <to...@nevtelen.com> wrote:
>>
>>> On 26/05/2020 11.38, Demi M. Obenour wrote:
>>> What is the OpenBSD equivalent to this Linux command?
>>>
>>> ip neighbor add 2001:db8::1 dev xnf0 lladdr fe:ff:ff:ff:ff:ff router nud
>>> permanent
>>>
>>> It doesn’t need to be a single command. If the existing userspace
>>> tooling does not support this, is it possible to do it via the
>>> kernel APIs?
>> man arp
>
> I already tried this, but it does not work if there is already
> an entry. Removing it and re-adding it is racy: a new entry might
> appear before I can override it.
>
> Sincerely,
>
> Demi
>