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
Created attachment 192997 [details, diff] Don't add a metric is doing nexthop routing
Thanks for submitting your patch, assigning to maintainers
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.
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