Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to replace my linux gateway box to Mikrotik. But I never found how to write this linux's iproute2 command in mikrotik's way:

ip route add default via table browser
ip route add via table browser
ip rule add prio 100 from lookup browser

anyone could lead me how to create a new routing table instead using the main's route?

share|improve this question
up vote 3 down vote accepted

The following should do the trick:

/ip route
add gateway= routing-mark=browser
/ip route
add gateway= dst-address= routing-mark=browser
/ip route rule
add src-address= action=lookup table=browser

Note that in RouterOS, the priority is set by the order of the routing rules.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.