kern/71474: route lookup does not skip interfaces marked down

Thomas Quinot thomas at FreeBSD.ORG
Wed Sep 8 05:26:31 PDT 2004


* Ruslan Ermilov, 2004-09-08 :

>  But your test case only applies to P2P interfaces, when both ends
>  of two P2P interfaces share the same IP address.

No, this is not the case. Only the remote ends of the two interfaces
share the same IP address. I described that test case because using gif
interfaces makes it easier to reproduce, but I initially observed this
symptom with one bge and one Intel wireless (ndis) interface.

>  I do not see how this could apply to broadcast interfaces.

As follows. Consider a machine with two Ethernet interfaces I1 and I2.

ifconfig I1 192.168.0.1 netmask 255.255.255.0
ifconfig I1 down
ifconfig I2 192.168.0.2 netmask 255.255.255.0
route add default 192.168.0.254

The default route will be set to 192.168.0.254 on I1, not on I2 as
expected.

Thomas.

-- 
    Thomas.Quinot at Cuivre.FR.EU.ORG


More information about the freebsd-bugs mailing list