Mikrotik massively add static routes

mikrotikrouting

I'm wondering of it is possible to add static routes to Mikrotik massively. For example, I have list of Facebook servers which I need to route and how can I add them in terminal by one or 2 commands rather than entering manually in WinBox? Thank you in advance.

Best Answer

You can add static routes (or anything else you can do in Winbox really) via the terminal.

Just log in to the terminal (either via winbox, SSH or Telnet) and run the following command to add a static route.

/ip route add dst-address=DESTINATION_IP_ADDRESS_HERE gateway=YOUR_GATEWAY_ADDRESS_HERE

Repeat as many times as you need to add all the static routes you want.

Here's the official documentation on IP > Routes

Related Topic