* Boris Sukholitko <[EMAIL PROTECTED]> 2006-11-05 16:00
> We've noticed that when taking network interface down the local route
> for its address is preserved. The following console session
> illustrates it:
>
> # ip addr add 5.5.5.5 dev eth4
> # ip route list table all | grep eth4
> local 5.5.5.5 dev eth4 table 255 vrf 0 proto kernel scope host src
> 5.5.5.5
> # ip link set eth4 down
> local 5.5.5.5 dev eth4 table 255 vrf 0 proto kernel scope host src
> 5.5.5.5
This example is incomplete and misleading. The local route is managed
completely synchroneous with the address itself. See the NETDEV_UP/
NETDEV_DOWN handlers of inetaddr events:
case NETDEV_UP:
fib_add_ifaddr(ifa);
case NETDEV_DOWN:
fib_del_ifaddr(ifa);
The broadcast routes are added/removed when the interface goes up
and down. The fib_addr_ifaddr() in the NETDEV_UP() handler only
exists to add broadcast routes for local address which have been added
while the interface was down.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html