Router is ignoring dhcp-options no-default-route

Aloha,

Im on version 1.5
I have different uplink provider.
For that I like to use the failover feature, to track a host and switch default route.
https://docs.vyos.io/en/latest/configuration/protocols/failover.html

For 2 uplink provider I have to use DHCP.
Unfortunately vyos is ignoring the "dhcp-options no-default-route
knob

set interfaces bonding bond1 vif 66 address 'dhcp'
set interfaces bonding bond1 vif 66 dhcp-options no-default-route

sh ip route 0.0.0.0/0
Routing entry for 0.0.0.0/0
  Known via "static", ***distance 210***, metric 0, tag 210
  Last update 00:09:15 ago
    100.64.0.1, via bond1.66, weight 1

set protocols failover route 0.0.0.0/0 next-hop 100.64.0.1 check target '9.9.9.9'
set protocols failover route 0.0.0.0/0 next-hop 100.64.0.1 check timeout '5'
set protocols failover route 0.0.0.0/0 next-hop 100.64.0.1 check type 'icmp'
set protocols failover route 0.0.0.0/0 next-hop 100.64.0.1 interface 'bond1.66'
set protocols failover route 0.0.0.0/0 next-hop 100.64.0.1 metric '20'

The failover route should work:

traceroute 9.9.9.9 interface bond1.66 bypass 
traceroute to 9.9.9.9 (9.9.9.9), 30 hops max, 60 byte packets
 1  100.64.0.1 (100.64.0.1)  34.711 ms  39.010 ms  38.990 ms
 2  172.16.252.72 (172.16.252.72)  42.980 ms  42.963 ms  42.949 ms
 3  * * *
 4  undefined.hostname.localhost (206.224.65.182)  42.882 ms undefined.hostname.localhost (206.224.65.178)  42.869 ms undefined.hostname.localhost (206.224.65.180)  42.853 ms
 5  ipv4.de-cix.fra.de.as42.pch.net (80.81.194.42)  42.837 ms  42.822 ms  42.807 ms
 6  dns9.quad9.net (9.9.9.9)  42.819 ms !X  31.410 ms !X  32.394 ms !X

sh version

Version:          VyOS 1.5-rolling-202407280023
Release train:    current
Release flavor:   generic

Built by:         autobuild@vyos.net
Built on:         Sun 28 Jul 2024 02:52 UTC
Build UUID:       7ea3ff52-c494-47e0-bda8-61627c52418f
Build commit ID:  d9b1177b78f474

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  Protectli
Hardware model:   FW6D
Hardware S/N:     Default string
Hardware UUID:    03000200-0400-0500-0006-000700080009

Copyright:        VyOS maintainers and contributors

Any idea?

Thanks
Marcel

I encountered this myself a while ago. Please add any details you can to this ticket. I do find the comment by giuavo interesting, I need to check that.

I am my ISP, so it shouldn’t be too hard to test, I just haven’t got around to testing it.

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