[SOLVED] Iproute2 behavior

I was trying to run the following in OpenWRT 19.07.1:

ip -6 r r default scope global \ 
nexthop via <gw1> dev <int1> weight 1 \
nexthop via <gw2> dev <int1> weight 2

however it seems to me that OpenWRT's own iproute2 (ip-full 5.0.0-2.1) does not honor the weight selection and defaults to 1:

default metric 1024 
	nexthop via <gw1> dev <int1> weight 1 
	nexthop via <gw2> dev <int1> weight 1 pref medium

whereas running the same line in a debian machine yields the following:

default metric 1024 
	nexthop via <gw1> dev <int1> weight 1 
	nexthop via <gw2> dev <int1> weight 2 pref medium

wonder anyone knows how to get around this?

It seems non-equal weight multipath nexthops for ip6 were only supported since 4.16 .

19.07 uses 4.14 kernel. What's the kernel version of your debian system?

1 Like

Ah it make sense now. Thanks!

Debian is 10.2 so the kernel is 4.19, newer than 19.07

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.