Skip to content

Instantly share code, notes, and snippets.

@yenleidong
Created November 20, 2014 05:49
Show Gist options
  • Save yenleidong/28007317d370394b9acb to your computer and use it in GitHub Desktop.
Save yenleidong/28007317d370394b9acb to your computer and use it in GitHub Desktop.
ip_route_pcc
/ip route
add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=route-to-isp1 distance=1
add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=route-to-isp1 distance=2
add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=route-to-isp2 distance=1
add check-gateway=ping dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=route-to-isp2 distance=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment