odhcpd icon indicating copy to clipboard operation
odhcpd copied to clipboard

can i set WAN route preferences for hosts behind router?

Open brianjmurrell opened this issue 7 years ago • 3 comments

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 avatar Nov 25 '17 18:11 brianjmurrell

Any possibility on this?

brianjmurrell avatar Dec 07 '17 15:12 brianjmurrell

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

dedeckeh avatar Dec 07 '17 22:12 dedeckeh

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?

brianjmurrell avatar Dec 08 '17 02:12 brianjmurrell