openwrt / odhcpd

This repository is a mirror of https://git.openwrt.org/?p=project/odhcpd.git. Pull requests will be accepted which will be merged in odhcpd.git
GNU General Public License v2.0
162 stars 98 forks source link

can i set WAN route preferences for hosts behind router? #105

Open brianjmurrell opened 6 years ago

brianjmurrell commented 6 years ago

On a host behind my LEDE router which has several IPv6 interfaces I see routes and addresses for each of the WAN routes:

$ ip -6 route ls
2001:123:1a:456::/64 dev pc_bridge proto ra metric 425 pref medium
2001:1234:5678:abcd::/64 dev pc_bridge proto ra metric 425 pref medium
2001:1234:5678:abcd::/56 via fe80::1ad6:ffff:ae9c:c115 dev pc_bridge proto ra metric 425 pref medium
2607:1234:5678:abcd::/64 dev pc_bridge proto ra metric 425 pref medium
2607:1234:5678:abcd::/56 via fe80::1ad6:ffff:ae9c:c115 dev pc_bridge proto ra metric 425 pref medium
...

As you can see, they are all set to pref medium. I'd actually like to change some of those to low or high in hopes of influencing the nodes behind the router in which source addresses it should use, to prefer one IPv6 connection over another. Can that be done with odhcpd in current LEDE 17.01?

brianjmurrell commented 6 years ago

Any possibility on this?

dedeckeh commented 6 years ago

You can't change the preference of individual routes; via the uci parameter ra_preference you can change the preference value to either low/medium/high but this is applicable for all routes

brianjmurrell commented 6 years ago

you can change the preference value to either low/medium/high but this is applicable for all routes

I'm not sure I understand the point of the value or even allowing it to be set then. If all routes always have the same preference, what does it matter which of low/medium/high I set them to?