HomeFreeBSD

arp(8): allow -i with -s

Description

arp(8): allow -i with -s

arp(8) usually disallows adding a static ARP entry for an IP address
which is not configured on a local interface.

Change this to allow such ARP entries to be added if '-i' is provided to
specify the interface the ARP entry relates to.

Due to limitations in the kernel lltable, this still requires that a
host route exists for the target address, but allows static ARP entries
to be configured to proxy ARP for, e.g., local jails which use an IPv4
address with a /32 route.

Reviewed by: imp, zlei
Pull Request: https://github.com/freebsd/freebsd-src/pull/1220

(cherry picked from commit 2356b60be7024b10ddc4361fc22f96205b55fbbb)

Details

Provenance
ivyAuthored on May 5 2024, 6:21 PM
eugen_grosbein.netCommitted on Oct 16 2025, 7:12 AM
Parents
rG3bcb5b7adc77: arp.8: don't document a syntax that doesn't exist
Branches
Unknown
Tags
Unknown