All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: RFC: ethernet links should remember routes the same as addresses
@ 2001-11-29 23:04 Julian Anastasov
  0 siblings, 0 replies; 8+ messages in thread
From: Julian Anastasov @ 2001-11-29 23:04 UTC (permalink / raw)
  To: Christopher Friesen; +Cc: Rajasekhar Inguva, linux-kernel


	Hello,

Christopher Friesen wrote:

> the addresses are still visible associated with the link.  Then I run "ip link
> set dev ethX up".  The route in the main routing table comes back, but none of
> the other routes do.  Somehow, all of those additional routes must be re-added.

	One solution is already implemented: static routes

http://www.linuxvirtualserver.org/~julian/
Static, Alternative Routes, Dead Gateway Detection, NAT

Read about the motivation here:
http://www.linuxvirtualserver.org/~julian/dgd-usage.txt

More specific pathes:
00_static_routes-2.2.19-4.diff
00_static_routes-2.4.12-5.diff

Regards

--
Julian Anastasov <ja@ssi.bg>


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RFC: ethernet links should remember routes the same as addresses
@ 2001-11-29 19:38 Christopher Friesen
       [not found] ` <9u64q7$46m$1@phoenix.clouddancer.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Christopher Friesen @ 2001-11-29 19:38 UTC (permalink / raw)
  To: linux-kernel


I just wanted to get some opinions on this for possible inclusion in 2.5.  
Alexey, if you have any comments...

The scenario is as follows:

Suppose I have a fancy routing setup, dynamically configured by different
binaries, scripts, etc, complete with multiple addresses per link, additional
routing rules and tables specified using iproute2, etc.

An ethernet driver hangs.  Could be a software bug, an intermittent hardware
issue, whatever.  It can be fixed up by setting the link down and up.

Currently, if I run "ip link set dev ethX down", all routes associated with that
IP address in the additional routing tables are lost.  This is somewhat
understandable, as the addresses are not actually available anymore.  However,
the addresses are still visible associated with the link.  Then I run "ip link
set dev ethX up".  The route in the main routing table comes back, but none of
the other routes do.  Somehow, all of those additional routes must be re-added.

Wouldn't it be nice if we could keep track of these additional routes?  Then you
could simply 'down' and 'up' the link and everything would be back the way it
was before.

Does this sound like a good idea?  How hard would this be to implement (not
knowing what the current code looks like, I don't know how this would be done)?

Chris Friesen


-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-11-29 21:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3C068ED1.D5E2F536@nortelnetworks.com.suse.lists.linux.kernel>
2001-11-29 19:55 ` RFC: ethernet links should remember routes the same as addresses Andi Kleen
2001-11-29 20:59   ` Christopher Friesen
2001-11-29 21:03     ` Ben Greear
2001-11-29 21:18       ` Christopher Friesen
2001-11-29 21:18     ` Andi Kleen
2001-11-29 23:04 Julian Anastasov
  -- strict thread matches above, loose matches on Subject: below --
2001-11-29 19:38 Christopher Friesen
     [not found] ` <9u64q7$46m$1@phoenix.clouddancer.com>
2001-11-29 20:58   ` Colonel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.