Skip to contentSkip to conversation

MultiPath Routing

DISCUSSION Christian Schmid 2 participants 5 messages May 5, 2005 – May 6, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello.

Since this seems to be an undocumented feature.... How is this equal-cost multipath supposed to work? I just want to send outgoing traffic over two gateways. I tried this:

ip route replace default scope global nexthop via 192.168.0.1 dev eth1 weight 100 nexthop via 192.168.0.100 dev eth1 weight 100

It it doesnt work. It always uses the last for all download-users (around a few hundreds)

Or is this the wrong way? (2.6.12rc3)

Best regards,
Chris

#1 lore raw
Quoted 8 lines · Christian Schmid

Since this seems to be an undocumented feature.... How is this equal-cost multipath supposed to work? I just want to send outgoing traffic over two gateways. I tried this:

ip route replace default scope global nexthop via 192.168.0.1 dev eth1 weight 100 nexthop via 192.168.0.100 dev eth1 weight 100

It it doesnt work. It always uses the last for all download-users (around a few hundreds)

Did you enable IP_ROUTE_MULTIPATH_CACHED? If so please disable it since it breaks multipath routing for forwarded traffic.

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#2 lore raw
Quoted 2 lines

Did you enable IP_ROUTE_MULTIPATH_CACHED? If so please disable it since it breaks multipath routing for forwarded traffic.

Yes I enabled it. But it shouldnt do anything because its no forwarded traffic here. I just used example-IPs. Or does the bug also break non-forwarded traffic?

#3 lore raw
Quoted 3 lines · Christian Schmid

Yes I enabled it. But it shouldnt do anything because its no forwarded traffic here. I just used example-IPs. Or does the bug also break non-forwarded traffic?

Did you select one of the multipath algorithm options? If you selected them as modules did you load them? If no algorithms are available it will degenerate into deterministic routing.

It will also work properly if you disable IP_ROUTE_MULTIPATH_CACHED completely.

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#4 lore raw

I tried disabling MULTIPATH_CACHED and now it completely works :) Thank you for your help. I thought your hint only is for NATed traffic but it seems its for all traffic.

Quoted 13 lines · Herbert Xu
Quoted 1 line · Christian Schmid

Yes I enabled it. But it shouldnt do anything because its no forwarded traffic here. I just used example-IPs. Or does the bug also break non-forwarded traffic?

Did you select one of the multipath algorithm options? If you selected them as modules did you load them? If no algorithms are available it will degenerate into deterministic routing.

It will also work properly if you disable IP_ROUTE_MULTIPATH_CACHED completely.

Cheers,