Re: [PATCH 1/2] IPV4: remove addresses and routes when carrier is lost

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Hemminger <shemminger@...>
Cc: David Miller <davem@...>, <netdev@...>
Date: Tuesday, June 3, 2008 - 11:05 am

On Mon, Jun 02, 2008 at 04:52:49PM -0700, Stephen Hemminger wrote:

Does this cover only the local route for the interface, or all routes
assigned staticly to the interface too?

Certianly if I do ifconfig eth3 down, it removes all the routes, but
doing ifconfig eth3 up only adds back the directly connected network
based on the IP and netmask, but my static routes are gone which is a
problem.

I have been considering writing a user space daemon to listen on netlink
for link up/down events to remove routes from the routing table and then
add them back when the link is restored since I couldn't find a good way
to make the kernel remember the static routes when the link was brought
down.

-- 
Len Sorensen
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] IPV4: remove addresses and routes when carri..., Lennart Sorensen, (Tue Jun 3, 11:05 am)
Re: [PATCH 1/2] IPV4: remove addresses and routes when carri..., Stephen Hemminger, (Tue Jun 3, 11:57 am)
Re: [PATCH 1/2] IPV4: remove addresses and routes when carri..., Stephen Hemminger, (Tue Jun 3, 12:31 pm)
Re: [PATCH 1/2] IPV6: remove addresses and routes when carri..., YOSHIFUJI Hideaki / , (Tue Jun 3, 12:17 pm)
Re: [PATCH 1/2] IPV6: remove addresses and routes when carri..., YOSHIFUJI Hideaki / , (Tue Jun 3, 1:28 pm)