Hi,
I’ve been trying to setup Wan Failover feature on VyOs version 1.0.4, but everytime I try to set it up it does not workd as spected, this is my configuration:
for Gateways I have:
route 0.0.0.0/0 {
next-hop x.x.x.206 {
}
next-hop x.x.x.57 {
}
}
route 8.8.8.8/32 {
next-hop x.x.x.57 {
}
}
route 208.67.222.222/32 {
next-hop x.x.x.206 {
}
}
For Wan Load Balancing:
wan {
flush-connections
interface-health eth2 {
failure-count 3
nexthop x.x.x.57
success-count 1
test 1 {
resp-time 2
target 8.8.8.8
ttl-limit 1
type ping
}
}
interface-health eth3 {
failure-count 3
nexthop x.x.x.206
success-count 1
test 1 {
resp-time 2
target 208.67.222.222
ttl-limit 1
type ping
}
}
rule 100 {
destination {
address 172.16.0.0/12
}
exclude
inbound-interface eth0
}
rule 101 {
destination {
address 172.16.0.0/12
}
exclude
inbound-interface eth1
}
rule 1000 {
destination {
address 0.0.0.0/0
}
failover
inbound-interface eth0
interface eth2 {
weight 10
}
interface eth3 {
weight 1
}
protocol all
}
For Routing this is what it gets whe issuing command sh ip route:
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - ISIS, B - BGP, > - selected route, * - FIB route
S>* 0.0.0.0/0 [1/0] via x.x.x.206
via x.x.x.57, eth2
S>* 8.8.8.8/32 [1/0] via x.x.x.57, eth2
S>* 208.67.222.222/32 [1/0] via x.x.x.206, eth3
Now when I type the command sh wan-load-balance:
Interface: eth2
Status: active
Last Status Change: Wed Feb 18 13:19:44 2015
+Test: ping Target: 8.8.8.8
Last Interface Success: 0s
Last Interface Failure: 22m6s
# Interface Failure(s): 0
Interface: eth3
Status: active
Last Status Change: Wed Feb 18 13:19:44 2015
+Test: ping Target: 208.67.222.222
Last Interface Success: 0s
Last Interface Failure: 2m37s
# Interface Failure(s): 0
When trying to failover by soft-disabling eth2 (link is up) interface the routing table is not updated, It shows eth2 interface as active and no traffic is sent thru interface eth3, but if eth2 interface is down the traffic goes to interface eth3. The VyOs is installed on a virtual machine.
Also when I issue command sh wan-load-balance connection it shows nothing:
conntrack v1.2.1 (conntrack-tools): 221 flow entries have been shown.
Type State Src Dst Packets Bytes
With command sh wan-load-balance status it shows:
Chain WANLOADBALANCE_PRE (1 references)
pkts bytes target prot opt in out source destination
436 1057K ACCEPT all – eth0 * 0.0.0.0/0 172.16.0.0/12
162 17244 ACCEPT all – eth1 * 0.0.0.0/0 172.16.0.0/12
172 46182 ISP_eth2 all – eth0 * 0.0.0.0/0 0.0.0.0/0 state NEW
0 0 CONNMARK all – eth0 * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore
What could be happening that the Wan Failover feature is not working properly?