Hi,
ip-> roting
add check-gateway=ping comment=“Recursive ISP2” disabled=no distance=1
dst-address=0.0.0.0/0 gateway=1.1.1.1 pref-src=“” routing-table=main
scope=30 suppress-hw-offload=no target-scope=11
add comment=ISP1 disabled=no distance=1 dst-address=8.8.8.8/32 gateway=
“ISP1-GW” pref-src=“” routing-table=main scope=10
suppress-hw-offload=no target-scope=10
add check-gateway=ping comment=“Recursive ISP1” disabled=no distance=2
dst-address=0.0.0.0/0 gateway=8.8.8.8 pref-src=“” routing-table=main
scope=30 suppress-hw-offload=no target-scope=11
add disabled=no distance=1 dst-address=1.1.1.1/32 gateway=“ISP2-GW”
pref-src=“” routing-table=main scope=10 suppress-hw-offload=no
target-scope=10
add comment=“ISP1” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
ISP1-GW pref-src=“” routing-table=WAN1 suppress-hw-offload=no
comment:
I have 2 track one using ISP2 as main and ISP1 backup with routing table name “main” same backup but at the same time i need to use ISP1 with name WAN1
that only can use ISP1 .. for certain trafico so the last routing rule is the one and if it goes down that kind of traffic will not work anyway so it does not matter more.
All normal trafic will use ISP2 and if failing jump to ISP1 in min table and work as normal
the specific trafico is defined in routes->rules and each destination IP desired have the perameter “look in table” and interface
What i learned today is that iwith PPPOE interfaces you can define an profile( winbox and PPP), so in my case created an new profile based on the default one and in script section for both up and down execute this script:
/ip firewall connection remove [find where reply-dst-address~“address of VoIP server on the internet”]
Think that is all to it insted of using NETWATCH i included the script in the profile of PPPoE and script instead.
work with netwatch as well as it seems but seems cleaner to use an profile for my ISP that uses PPPoE so i remeber what
it is neede for but only test by disconnecting the cable from my antenna going to the PoE adapter of the Antenna and responds accordingly
What i do not like is that my VoIP calls gets disccoented and after a copule of minutes is up and running and wish to have an uninterrupted switch of
ISP and keep going talking but i am not there yeat. just trying to get all phone online quickly.
I am sure there is many ways to do things and probably better ways too but this is my way of doing it and all suggestions to improvemetns is welcome to me as
well …
.