Aloha,
maybe I dont understand the concept or there’s something wrong.
I have one VyOS Router with 3 I-Net Uplinks.
First link has static IP-address and static default-route configured on ETH1
Second and third get IP-address via DHCP with a default route.
I like to set higher default-route-distance for each DHCP learned default-route, but it looks to me, that the setting is ignored.
My config:
ETH1 is my primary Uplink with static IP and static default route
set protocols static route 0.0.0.0/0 next-hop 192.1.1.1
set interfaces ethernet eth1 address ‘192.1.1.0/24’
ETH0 is my 2. backup link with DHCP learned IP-address and default route
it should be used, only after ETH6 is down
set interfaces ethernet eth0 address ‘dhcp’
set interfaces ethernet eth0 description ‘VOLIA’
set interfaces ethernet eth0 dhcp-options default-route-distance ‘200’
ETH6 is my 3. backup link with DHCP learned IP-address and default route
But this should be used, when my primary link is down
set interfaces ethernet eth6 address ‘dhcp’
set interfaces ethernet eth6 description ‘STARLINK’
set interfaces ethernet eth6 dhcp-options default-route-distance ‘150’
Here show command, which shows the default route learned:
uaiev:~$ sh ip route 0.0.0.0/0
Routing entry for 0.0.0.0/0
Known via “static”, distance 1, metric 0, best
Last update 01:47:09 ago
- 192.1.1.1, via eth1, weight 1
Routing entry for 0.0.0.0/0
Known via “static”, distance 210, metric 0, tag 210
Last update 03:12:02 ago
82.144.205.1, via eth0, weight 1
100.64.0.1, via eth6, weight 1
Maybe my understanding of using this default-route-distance is wrong?
Thanks
Marcel