Continuing the discussion from Dhcp-client ignores default-route-distance:
Aloha,
Im currently on VyOS 1.5.x
And running in the same problem:
rtr01:~$ sh configuration commands | match default-route
set interfaces ethernet eth0 dhcp-options default-route-distance ‘250’
set interfaces ethernet eth0 dhcp-options no-default-route
set interfaces ethernet eth1 dhcp-options default-route-distance ‘50’
set interfaces ethernet eth6 dhcp-options default-route-distance ‘100’
and the result currently:
sh ip route 0.0.0.0/0
Routing entry for 0.0.0.0/0
Known via "static", **distance 100,** metric 0, tag 210, best
Last update 00:04:43 ago
* 100.64.0.1, via eth6, weight 1
When I manually renew the IP-address (and def. route) on eth1
I get the better def. route again:
**renew dhcp interface eth1**
rtr01:~$ sh ip route 0.0.0.0/0
Routing entry for 0.0.0.0/0
Known via "static", **distance 50,** metric 0, tag 210, best
Last update 00:00:02 ago
* 193.93.76.1, via eth1, weight 1
Routing entry for 0.0.0.0/0
Known via "static", **distance 100**, metric 0, tag 210
Last update 00:07:09 ago
100.64.0.1, via eth6, weight 1
For me its unpredictable, when the distance command is considered and when not.
Is it a bug or just a misconfiguration?
I know, that the solution is not ideal,
floating static route
Thanks
Marcel