Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271893 - sys-apps/baselayout support for nexthop routing
Summary: sys-apps/baselayout support for nexthop routing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-30 18:00 UTC by Mike Williams
Modified: 2009-10-11 09:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Don't add a metric is doing nexthop routing (nexthop-routing.diff,450 bytes, patch)
2009-05-30 18:01 UTC, Mike Williams
Details | Diff
OpenRC patch to avoid metric for nexthop (nexthop.diff,398 bytes, patch)
2009-06-01 19:12 UTC, Roy Marples
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Williams 2009-05-30 18:00:03 UTC
Hey

I have 2 upstream gateways and need to balance traffic over them both equally.
This is easy to do manually (with CONFIG_IP_ROUTE_MULTIPATH enabled):

ip route add default nexthop via 192.168.22.1 nexthop via 192.168.22.2 dev eth0

However, try to set that in routes_eth0 and you get told:

Error: "nexthop" or end of line is expected instead of "metric"

nexthop routing optionally takes weight arguments, not metric. iproute2.sh forces a metric if non is found.
The following patch modifies iproute2.sh to check for nexthop arguments and add a metric only if none are found.

Mike
Comment 1 Mike Williams 2009-05-30 18:01:13 UTC
Created attachment 192997 [details, diff]
Don't add a metric is doing nexthop routing
Comment 2 Wormo (RETIRED) gentoo-dev 2009-06-01 05:29:12 UTC
Thanks for submitting your patch, assigning to maintainers
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-06-01 18:21:01 UTC
1. Baselayout1 is only getting fixes at this point, so I'd be up to vapier to decide if he wants to include this.
2. Can you please provide a version of the patch for openrc? (I recommend against the upstream git tree). I've CC'd Roy here so that he'll see your openrc version of the patch.
Comment 4 Roy Marples 2009-06-01 19:12:38 UTC
Created attachment 193173 [details, diff]
OpenRC patch to avoid metric for nexthop

This patch should fix things

Committed here - http://roy.marples.name/projects/openrc/changeset/efec0b5012efd7af5a882348c62e28f3e62c58fc