Community discussions

MikroTik App
 
amonrahr
just joined
Topic Author
Posts: 5
Joined: Mon Jan 31, 2011 1:02 am

PC - eth2 - Mikrotik eth5 - eth5 - Mikrotik - eth2 - PC comm

Mon Jan 31, 2011 1:17 am

Hi all,
i'm new in mikrotiks so please help if you can understand what i need

I need something like this:
- 2 PC communicating through mikrotiks

What i do:
1 have 2 mikrotiks (Ma,Mb)
2 pc-s (aPC, bPC)
(its a little bit complexed but to understand what i want to make)

1) I connect aPC to eth2 port on Ma and set addresses 192.168.5.1/24 on eth2
2) I connect 2 miktoriks - Ma on port eth5 to Mb on port eth5
3) I add addresses to Ma: 192.168.20.1/24 on eth5
4) I add addresses to Mb: 192.168.20.2/24 on eth5
5) I connect bPC to eth2 port on Mb and set addresses 192.168.2.1/24 on eth2

What i need to do to make this work.
2 Mikrotiks see each other, even VPN forwarding work fine (i enable VPN on Ma and forward ports on Mb to 192.168.20.1) so what to do to make 2 PC see each other.

Thanks all, and sorry for bad English.
 
User avatar
sariao
Frequent Visitor
Frequent Visitor
Posts: 92
Joined: Thu Jul 08, 2004 10:55 am
Location: Saudi Arabia

Re: PC - eth2 - Mikrotik eth5 - eth5 - Mikrotik - eth2 - PC

Mon Jan 31, 2011 9:56 am

What you need is to is this:

1- set the gateway on PC(A) to 192.168.5.1
2- set the gateway on PC(B) to 192.168.2.1
3- on Mirotik(A) paste this code:
/ip route add dst-address=192.168.2.0/24 gateway=192.168.20.2
4- on Mirotik(B) paste this code:
/ip route add dst-address=192.168.5.0/24 gateway=192.168.20.1
Good Luck!
 
amonrahr
just joined
Topic Author
Posts: 5
Joined: Mon Jan 31, 2011 1:02 am

Re: PC - eth2 - Mikrotik eth5 - eth5 - Mikrotik - eth2 - PC

Mon Jan 31, 2011 1:59 pm

Thanks.

i do not know haw i miss that. :?