[PATCH] ip route metric

Natanael Copa natanael.copa at gmail.com
Tue Oct 7 12:15:22 UTC 2008


On Tue, 2008-10-07 at 10:58 +0200, Bernhard Reutner-Fischer wrote:
> On Tue, Oct 07, 2008 at 10:36:30AM +0200, Natanael Copa wrote:
> >Hi,
> >
> >Attatched patch lets you use the "metric" keyword when adding routes.
> >Useful for udhcp scripts:
> >
> >metric=0
> >for gw in $router; do
> >	ip route add default via $gw dev $interface metric $metric
> >	metric=$(( $metric + 1 ))
> >done
> 
> sounds good, please resend with updated usage.h, too.
> TIA,

This one should do the trick.

I didn't try to fix the app so it actually shows the info. The manpage
and html doc should have the updated usage though.

-nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iproute-metric2.patch
Type: text/x-patch
Size: 1545 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081007/3d995432/attachment-0002.bin 


More information about the busybox mailing list