Cenario:
Ether1 – link principal
Ether2 – link secundario
Criar as rotas default:
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=1 comment=principal
add dst-address=0.0.0.0/0 gateway=192.168.2.1 distance=2 comment=secundario
add dst-address 208.67.222.222 gateway 192.168.1.1 scope=10 comment=Monitor Link Principal check-gateway=ping
add dst-address 1.1.1.1 gateway 192.168.2.1 scope=10 comment=Monitor Link Secundario check-gateway=ping
Colocar no Netwatch:
IP a ser monitorado link principal: 208.67.222.222
UP:
/ip route enable [find comment=”principal”]
/log error “O link principal caiu”
Down:
/ip route disable [find comment=”principal”]
/log error “O link principal caiu”
IP a ser monitorado link secundario: 1.1.1.1
UP:
/ip route enable [find comment=”secundario”]
/log error “O link secundario normalizou”
Down:
/ip route disable [find comment=”secundario”]
/log error “O link secundario caiu”