Mikrotik massively add static routes

Hello everybody,

I’m beginner at Mikrotik but not and routing at all and I have question. For some reasons, I have to route Facebook traffic through pptp gateway. I have list of Facebook’s servers IP addresses. Is there any possibility to add them automatically by running some commands in terminal or script rather then adding in web interface which might take long time? Thank you very much in advance.

Hello, just past those line in terminal (adjust for your configuration )

/ip route
add disabled=yes distance=1 dst-address=10.10.20.0/24 gateway=10.20.20.2
add disabled=yes distance=1 dst-address=10.20.20.0/24 gateway=10.20.20.2



Regards,

Dear evince, thank you for the information.

I have to enter about 80 routes, is that possible to add list of this IPs somehow, not by entering one by one? Thank you in advance.

Dear Evince,

thank you very much for your reply. If I need to add about 100 IPs for routes, is that possible to load them from the file or create kind of script? Thank you very much in advance.