Tested on VyOS 1.4-rolling-202204130521
Commands for Wan Load Balancing:
set interfaces ethernet eth0 address 'dhcp' set interfaces ethernet eth1 address 'dhcp' set interfaces ethernet eth2 address 'dhcp' set interfaces ethernet eth3 address '192.168.250.1/24' set load-balancing wan interface-health eth0 failure-count '5' set load-balancing wan interface-health eth0 nexthop 'dhcp' set load-balancing wan interface-health eth0 success-count '1' set load-balancing wan interface-health eth0 test 10 resp-time '5' set load-balancing wan interface-health eth0 test 10 target '1.1.1.1' set load-balancing wan interface-health eth0 test 10 ttl-limit '1' set load-balancing wan interface-health eth0 test 10 type 'ttl' set load-balancing wan interface-health eth0 test 20 resp-time '5' set load-balancing wan interface-health eth0 test 20 target '1.0.0.1' set load-balancing wan interface-health eth0 test 20 ttl-limit '1' set load-balancing wan interface-health eth0 test 20 type 'ping' set load-balancing wan interface-health eth1 failure-count '5' set load-balancing wan interface-health eth1 nexthop 'dhcp' set load-balancing wan interface-health eth1 success-count '1' set load-balancing wan interface-health eth1 test 10 resp-time '5' set load-balancing wan interface-health eth1 test 10 target '8.8.8.8' set load-balancing wan interface-health eth1 test 10 ttl-limit '1' set load-balancing wan interface-health eth1 test 10 type 'ttl' set load-balancing wan interface-health eth1 test 20 resp-time '5' set load-balancing wan interface-health eth1 test 20 target '8.8.4.4' set load-balancing wan interface-health eth1 test 20 ttl-limit '1' set load-balancing wan interface-health eth1 test 20 type 'ping' set load-balancing wan interface-health eth2 failure-count '5' set load-balancing wan interface-health eth2 nexthop 'dhcp' set load-balancing wan interface-health eth2 success-count '1' set load-balancing wan interface-health eth2 test 10 resp-time '5' set load-balancing wan interface-health eth2 test 10 target '9.9.9.9' set load-balancing wan interface-health eth2 test 10 ttl-limit '1' set load-balancing wan interface-health eth2 test 10 type 'ttl' set load-balancing wan interface-health eth2 test 20 resp-time '5' set load-balancing wan interface-health eth2 test 20 target '149.112.112.112' set load-balancing wan interface-health eth2 test 20 ttl-limit '1' set load-balancing wan interface-health eth2 test 20 type 'ping' set load-balancing wan rule 1000 description 'DEFAULT FAILOVER RULE' set load-balancing wan rule 1000 failover set load-balancing wan rule 1000 inbound-interface 'eth3' set load-balancing wan rule 1000 interface eth0 weight '3' set load-balancing wan rule 1000 interface eth1 weight '2' set load-balancing wan rule 1000 interface eth2 weight '1' set load-balancing wan rule 1000 protocol 'all' set load-balancing wan sticky-connections inbound set protocols static route 1.0.0.1/32 next-hop 172.16.0.1 set protocols static route 1.1.1.1/32 next-hop 172.16.0.1 set protocols static route 8.8.4.4/32 next-hop 192.168.122.1 set protocols static route 8.8.8.8/32 next-hop 192.168.122.1 set protocols static route 9.9.9.9/32 next-hop 172.16.2.1 set protocols static route 149.112.112.112/32 next-hop 172.16.2.1
The result of the command wan-load-balance status:
Chain WANLOADBALANCE_PRE (1 references) pkts bytes target prot opt in out source destination 0 0 ISP_eth0 all -- eth3 * 0.0.0.0/0 0.0.0.0/0 state NEW 0 0 CONNMARK all -- eth3 * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore [edit] vyos@vyos# sudo ip rule show 0: from all lookup local 32763: from all fwmark 0xcb lookup 203 32764: from all fwmark 0xca lookup 202 32765: from all fwmark 0xc9 lookup 201 32766: from all lookup main 32767: from all lookup default [edit]
The result of the command ip route:
vyos@vyos# sudo ip r show default nhid 30 proto static metric 20 nexthop via 172.16.0.1 dev eth0 weight 1 nexthop via 172.16.2.1 dev eth2 weight 1 nexthop via 192.168.122.1 dev eth1 weight 1 1.0.0.1 nhid 35 via 172.16.0.1 dev eth0 proto static metric 20 1.1.1.1 nhid 35 via 172.16.0.1 dev eth0 proto static metric 20 8.8.4.4 nhid 37 via 192.168.122.1 dev eth1 proto static metric 20 8.8.8.8 nhid 37 via 192.168.122.1 dev eth1 proto static metric 20 9.9.9.9 nhid 36 via 172.16.2.1 dev eth2 proto static metric 20 149.112.112.112 nhid 36 via 172.16.2.1 dev eth2 proto static metric 20 172.16.0.0/24 dev eth0 proto kernel scope link src 172.16.0.10 172.16.2.0/24 dev eth2 proto kernel scope link src 172.16.2.10 192.168.122.0/24 dev eth1 proto kernel scope link src 192.168.122.35 192.168.250.0/24 dev eth3 proto kernel scope link src 192.168.250.1 vyos@vyos# sudo ip r show table 201 Error: ipv4: FIB table does not exist. Dump terminated [edit] vyos@vyos# sudo ip r show table 202 Error: ipv4: FIB table does not exist. Dump terminated [edit] vyos@vyos# sudo ip r show table 203 Error: ipv4: FIB table does not exist. Dump terminated [edit] vyos@vyos#
Routing tables 201, 202 and 203 are not created.