I really need your help to setup a failover on my routerboard R951Ui 2HnD I have seen some posts on how to do. I tried them but non of them worked I am starting to suspect that failover can’t be done on the routerboard R951Ui 2HnD. Please help.
Failover can be done on every routerboard (having enough interfaces). What is your actual problem exactly?
Hello Jarda
I have tried the following setting as I have found while searching but it doesn’t seem to work, I don’t know what’s wrong
default routes for new outgoing traffic.
/ip route add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 check-gateway=ping
/ip route add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2
++masquerade both WAN connections++
/ip firewall nat add chain=srcnat src-address=192.168.0.0/24 out-interface=WAN-1 action=masquerade
/ip firewall nat add chain=srcnat src-address=192.168.0.0/24 out-interface=WAN-2 action=masquerade
This is not complete fail-over, I mean this setting will only work when for example your power of modem goes off. but when internet gone your modem still pinging. here is my fail-over setup. change as you need it. thanks to unknown user who help me (i forgot his name
)
add dst-address=4.2.2.4 gateway=192.168.20.3 scope=10 comment="Static PING way by ISP1-host1"
add dst-address=4.2.2.5 gateway=192.168.20.3 scope=10 comment="Static PING way by ISP1-host2"
add dst-address=4.2.2.6 gateway=192.168.30.3 scope=10 comment="Static PING way by ISP2-host1"
add dst-address=4.2.2.8 gateway=192.168.30.3 scope=10 comment="Static PING way by ISP2-host2"
add dst-address=10.10.1.1 gateway=4.2.2.4 scope=10 target-scope=10 check-gateway=ping distance=1 comment="Virtual host for ISP1-host1"
add dst-address=10.10.1.1 gateway=4.2.2.5 scope=10 target-scope=10 check-gateway=ping distance=2 comment="Virtual host for ISP1-host2"
add dst-address=10.10.2.2 gateway=4.2.2.6 scope=10 target-scope=10 check-gateway=ping distance=1 comment="Virtual host for ISP2-host1"
add dst-address=10.10.2.2 gateway=4.2.2.8 scope=10 target-scope=10 check-gateway=ping distance=2 comment="Virtual host for ISP2-host2"
add distance=1 gateway=10.10.1.1 comment="Default route to WAN1"
add distance=2 gateway=10.10.2.2 comment="Default route to WAN2"
@hossain2004a that was not what I was looking for but sure that would help. you are right the internet connection could go done but the router will still be able to ping the modem. It could work if I had a Public IP though.
thanx again, I appreciate your help. ![]()