/ip route
# Adding static routes for Google/TW which will be used further below to test both WAN link connectivity
add dst-address=8.8.8.8 gateway=192.168.9.1 scope=10
add dst-address=8.8.4.4 gateway=202.29.216.30 scope=10
## Now we create route for PCC marked packets routing mark:
add distance=1 gateway=8.8.8.8 routing-mark=to_WAN1 check-gateway=ping
add distance=2 gateway=8.8.4.4 routing-mark=to_WAN2 check-gateway=ping
## Create destinations to "virtual" hops to be use in further routes
add dst-address=10.20.30.1 gateway=8.8.8.8 scope=10 target-scope=10 check-gateway=ping
add dst-address=10.20.30.2 gateway=8.8.4.4 scope=10 target-scope=10 check-gateway=ping
## Add default routes for both isp's marked packets by PCC mangle section
add distance=1 gateway=10.20.30.1 routing-mark=to_WAN1
add distance=2 gateway=10.20.30.2 routing-mark=to_WAN2
## Add default routes for no routing marks , For router itself
add distance=1 gateway=10.20.30.1
add distance=2 gateway=10.20.30.2
ไม่มีความคิดเห็น:
แสดงความคิดเห็น