* [LARTC] bug fixed: equal cost multipath shows first hop as dead
@ 2001-12-20 13:58 bert hubert
2001-12-20 14:18 ` Julian Anastasov
0 siblings, 1 reply; 2+ messages in thread
From: bert hubert @ 2001-12-20 13:58 UTC (permalink / raw)
To: lartc
This had been bugging me for a while:
# ip ro add dev eth0 default nexthop via 10.0.0.1 dev eth0 nexthop via
10.0.0.202 dev eth0
# ip ro ls
10.0.0.0/8 dev eth0 proto kernel scope link src 10.0.0.11
default
> nexthop via 10.0.0.1 dev eth0 weight 1 dead
nexthop via 10.0.0.202 dev eth0 weight 1
Some people did not see this bug, other people did. Note how the first
nexthop is 'dead', even though it isn't.
It turns out that this is due to a bug in 'ip' which only occurs with some
versions of gcc, amongst which gcc-2.95.
I posted a detailed bugreport, and our great friend Julian Anastasov replied
within minutes with this patch:
--- iproute2/ip/iproute.c.orig Mon Aug 6 03:31:52 2001
+++ iproute2/ip/iproute.c Thu Dec 20 13:14:06 2001
@@ -620,6 +620,8 @@
}
rtnh->rtnh_len = sizeof(*rtnh);
rtnh->rtnh_ifindex = 0;
+ rtnh->rtnh_flags = 0;
+ rtnh->rtnh_hops = 0;
rta->rta_len += rtnh->rtnh_len;
parse_one_nh(rta, rtnh, &argc, &argv);
rtnh = RTNH_NEXT(rtnh);
And then 'nexthop' works as it should. Note that this does not mean that it
does roundrobin over your nexthops. The routecache prevents this. If anybody
is a 'nexthop' expert, please help me write a section on it.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
http://www.tk the dot in .tk
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
Linux Advanced Routing & Traffic Control: http://ds9a.nl/lartc
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] bug fixed: equal cost multipath shows first hop as dead
2001-12-20 13:58 [LARTC] bug fixed: equal cost multipath shows first hop as dead bert hubert
@ 2001-12-20 14:18 ` Julian Anastasov
0 siblings, 0 replies; 2+ messages in thread
From: Julian Anastasov @ 2001-12-20 14:18 UTC (permalink / raw)
To: lartc
Hello,
On Thu, 20 Dec 2001, bert hubert wrote:
> And then 'nexthop' works as it should. Note that this does not mean that it
> does roundrobin over your nexthops. The routecache prevents this. If anybody
Yes, the route cache keeps the both ends connected through
one path. But this is disturbed from changes in the TOS, related ICMPs
are not aware what is going on, etc. and we end up with a packets from
or related to connection spread on many paths. So, it is a problem to
route all packets from one connection via multipath route. This is why
we sometimes use it only for the first packet. Hm, why the "TOS as routing
key" is not an option?
> Regards,
>
> bert
Regards
--
Julian Anastasov <ja@ssi.bg>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-20 14:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-20 13:58 [LARTC] bug fixed: equal cost multipath shows first hop as dead bert hubert
2001-12-20 14:18 ` Julian Anastasov
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.