FreeBSD makes linux think other subet is in same lan.

Andrey V. Elsukov bu7cher at yandex.ru
Thu May 7 09:06:38 UTC 2015


On 06.05.2015 15:51, Martin Larsson wrote:
> Now, FreeBSD itselt can also ping 10.11.12.0/24 host, but Linux stop
> working.
> windows can ping in both cases though.
> 
> Here is arp -n on linux after the route is added on the freebsd gateway.
> 
> Linux:~ # arp -a
> ? (10.11.12.13) at <incomplete>  on eth0
> ? (192.168.1.125) at b4:52:7e:95:2a:f5 [ether]  on eth0

I think it is because FreeBSD sends ICMP redirects when it finds that
route to the given destination goes back to the receiving interface.

Try to disable ICMP redirects:
# sysctl net.inet.ip.redirect=0

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20150507/67b21d09/attachment.sig>


More information about the freebsd-net mailing list