diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-13 15:40:11 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-12-14 18:19:22 +0000 |
commit | 932af7f098808009f626c788deb9e1d1c8bf3426 (patch) | |
tree | 3845e39f7ac9c92c4ad5011524aab1e17b063468 /src/validators/mac-address | |
parent | 256ad3fc329a846f1a2b7378bbeb8777357b433a (diff) | |
download | vyos-1x-932af7f098808009f626c788deb9e1d1c8bf3426.tar.gz vyos-1x-932af7f098808009f626c788deb9e1d1c8bf3426.zip |
routing: T1237: Add new feature failover route
Failover route allows to install static routes to the kernel routing
table only if required target or gateway is alive
When target or gateway doesn't respond for ICMP/ARP checks this route
deleted from the routing table
Routes are marked as protocol 'failover' (rt_protos)
cat /etc/iproute2/rt_protos.d/failover.conf
111 failover
ip route add 203.0.113.1 metric 2 via 192.0.2.1 dev eth0 proto failover
$ sudo ip route show proto failover
203.0.113.1 via 192.0.2.1 dev eth0 metric 1
So we can safely flush such routes
Diffstat (limited to 'src/validators/mac-address')
0 files changed, 0 insertions, 0 deletions