Community discussions

MikroTik App
 
planetcaravan
Member Candidate
Member Candidate
Topic Author
Posts: 267
Joined: Tue Aug 25, 2009 5:33 pm

Simple static routes with 3 routers

Tue Mar 05, 2013 11:27 pm

Hi there,

I've got this situation:
Image

I'm on Router A and I want to ping Router B.
Which static route I have to insert on all routers?

I've made a couple of configurations but I can communicate only between A and B - B and C. A can't ping C.

Can somebody kindly help me?
 
User avatar
jgellis
Member Candidate
Member Candidate
Posts: 140
Joined: Wed May 30, 2007 10:57 am
Location: USA

Re: Simple static routes with 3 routers

Tue Mar 05, 2013 11:58 pm

Which router is closest to the internet?

If A, then:
  • RouterA:
    /ip route add dst-address=192.168.100.0/24 gateway=192.168.1.1
    RouterB:
    /ip route add gateway=192.168.1.2
    RouterC:
    /ip route add gateway=192.168.100.1
If B, then:
  • RouterA:
    /ip route add gateway=192.168.1.1
    RouterC:
    /ip route add gateway=192.168.100.1
If C, then:
  • RouterA:
    /ip route add gateway=192.168.1.1
    RouterB:
    /ip route add gateway=192.168.100.2
    RouterC:
    /ip route add dst-address=192.168.1.0/24 gateway=192.168.100.1
If you want to ignore the question about which is closest to the internet, you can skip the use of default routes and just add the following routes by themselves:
  • RouterA:
    /ip route add dst-address=192.168.100.0/24 gateway=192.168.1.1
    RouterC:
    /ip route add dst-address=192.168.1.0/24 gateway=192.168.100.1