Page 1 of 1

Routing Between 2 Mikrotiks

Posted: Wed Sep 28, 2016 5:09 am
by miltont
Greetings

I have 2 Mikrotik routers and i want to reach and see connected devices in both networks
1st Mikrotik is on the network 10.20.0.0/24
It has assigned 10.20.0.1/24 Ip

2nd Mikrotik is on the network 10.20.1.0/24
It has assigned 10.20.1.1/24 Ip

Both Networks are connected via a PTP Bridge Connection.
On 1st Mikrotik Ether2 Port is connected to the PTP Wireless Antenna (AP) IP Assigned 10.20.0.2/24
On 2nd Mikrotik Ether1 Port is connected to the PTP Wireless Antenna (Station) IP Assigned 10.20.0.3/24

I can ping from 1st Mikrotik to 10.20.0.3 and it replies.
But if i ping to 10.20.1.1 does not reply

When i ping from 2nd Mikrotik to 10.20.0.2 replies
If i also ping to 10.20.0.1 replies
I can reach anything to the network 10.20.0.0/24


Im having issues reaching to 10.20.1.0/24 network
from 1st Mikrotik

Any Suggestions or advice

Re: Routing Between 2 Mikrotiks

Posted: Wed Sep 28, 2016 12:43 pm
by Randall0L
hi

Have you tried adding rules similar to these, to your firewall:

add chain=forward action=accept src-address=10.20.1.0/24 dst-address=10.20.0.0/24 out-interface=ether2 comment="Forward Accept Mikrotik2"
add chain=forward action=accept src-address=10.20.1.0/24 protocol=tcp dst-port=8291 out-interface=ether2 comment="Forward Accept Winbox - Mikrotik2"

and just dragging them above any drop rule you may have?

Re: Routing Between 2 Mikrotiks

Posted: Fri Sep 30, 2016 6:28 pm
by BenSw
Hi,

I don't want to hijack this thread, but if it's OK hop on to this.
I need to connect to a Mikrotik through another Mikrotik and from one subnet to another.
My PC is on 10.10.11.0/24 and the other Mikrotik is an AP on 10.10.1.0/24. the gateway Mikrotik is on both 10.10.11.1 and 10.10.1.1
If I add the previously mentioned rules, will I still be able to log in on the gateway Mikrotik?
I guess in my case the rules would be:
add chain=forward action=accept src-address=10.10.11.0/24 dst-address=10.10.1.0/24 out-interface=ether3 comment="Forward Accept Mikrotik2"
add chain=forward action=accept src-address=10.10.11.0/24 protocol=tcp dst-port=8291 out-interface=ether3 comment="Forward Accept Winbox - Mikrotik2"
(The mikrotik AP and the 10.10.1.0/24 network live on ether3).
Is the first rule necessary in my case? And will the 2nd rule not log me out of the gateway Mikrotik the rule is applied on?

I found this: http://shop.duxtel.com.au/article_info. ... icles_id=6 but am a bit afraid to log myself out (especially of the gateway which is live working).
I wonder if I really have to change the ports, if the gateway mikrotik could just pass requests on 8291 that are not directed to it's IP.

Thanks

Re: Routing Between 2 Mikrotiks

Posted: Mon Oct 03, 2016 3:41 pm
by Randall0L
Hi

You could be create an output rule, to allow Winbox traffic from one RB Device to another.
Is Neighbour Discovery enabled on the devices?

Re: Routing Between 2 Mikrotiks

Posted: Fri Oct 07, 2016 1:46 am
by BenSw
The 1st RouterBoard sees the 2nd RouterBoard in /IP/Neighbours.
But I am not able to connect from the one side of the 1st RB to the 2nd RB on the other side of the 1st RB.
I tried various rules on the 1st RB's firewall, always moving it to be the first rule but to no avail.

What should the rule look like for MAC or IP connecting?

Re: Routing Between 2 Mikrotiks

Posted: Fri Oct 07, 2016 1:58 am
by mducharme
It sounds like you are missing either static routes or a routing protocol. How are you routing between the two networks? For only two networks there is not much point in using a routing protocol, but if you want to you can. Static routes may be easier.

(I was responding to the original request, not the later post in the same thread)

Re: Routing Between 2 Mikrotiks

Posted: Fri Oct 07, 2016 3:56 am
by miltont
I attached router 1 config screen
It sounds like you are missing either static routes or a routing protocol. How are you routing between the two networks? For only two networks there is not much point in using a routing protocol, but if you want to you can. Static routes may be easier.

(I was responding to the original request, not the later post in the same thread)

Re: Routing Between 2 Mikrotiks

Posted: Fri Oct 07, 2016 4:04 am
by miltont
I attached Router 2
It sounds like you are missing either static routes or a routing protocol. How are you routing between the two networks? For only two networks there is not much point in using a routing protocol, but if you want to you can. Static routes may be easier.

(I was responding to the original request, not the later post in the same thread)

Re: Routing Between 2 Mikrotiks

Posted: Fri Oct 07, 2016 5:09 am
by mducharme
On router 1, isn't your static route incorrect? The one going to dst address 10.20.1.0/24. It is set for gateway ether2-PTP-Canabonsito but I think you want the gateway there to be 10.20.0.83 instead. It needs to know the next hop address and you are not supplying it.

Re: Routing Between 2 Mikrotiks

Posted: Fri Oct 07, 2016 11:16 pm
by miltont
Yeap that did the trick!
Thanks
On router 1, isn't your static route incorrect? The one going to dst address 10.20.1.0/24. It is set for gateway ether2-PTP-Canabonsito but I think you want the gateway there to be 10.20.0.83 instead. It needs to know the next hop address and you are not supplying it.