i have 3 wan conections and i want to assign just one of them as default gateway of a single PC in my LAN
how can i make the route in my mikrotik..
wan 1 200.x.x.x
wan 2 150.x.x.x
wan 3 120.x.x.x
Mikrotik 192.168.2.55
PC 192.168.2.211
default gateway 192.168.2.55
thanks jose
I did this using winbox.
Go to IP → Route → Add.
Dst. Address: 0.0.0.0/0 (This means the default route)
Gateway: 200.x.x.x (The IP of the ISP you want to use as the default route)
Leave everything else as-is and click ok.
but this sentence is for the complete LAn i needd the same but just for 1 ip
i have the 3 wan with load balance
i don’'t know how to identificate the connection with a specific source IP address inside the LAN
You can use the mangle feature to add a routing mark traffic from that specific IP. You then add the necessary routes to the routing table for the specified routing mark. Add both a default route and a route back to the subnet with the “special” source IP - plus any other routes you want that IP to have access to.
Correct
i mark the route with mangle from with src-address then
how i can do
“You then add the necessary routes to the routing table for the specified routing mark.”
then when i add the the routes wich is the order to check in the route table
distance, route mask ??
thaks jose
When you add the routes manually you will see an option to set the routing mark.
If the traffic is set to use a routing mark say “Special” then it will check routes with routing mark “Special” first. In theory if a route is not found with that routing mark it will default to the main routing table (no routing mark) but that does not always work out so I tend to add routes with the routing mark for all paths that I expect the marked traffic to need.