Page 1 of 1

How to link 2 networks

Posted: Mon Sep 17, 2007 4:56 am
by avisdel
I am newby in mikrotik.
I have 2 network segment : 192.168.1.0/24 and 192.168.2.0/24.

I had set ip address 192.168.1.1 and 192.168.2.1 for ether0 and ether1 in mikrotik.
The ip address also as gateway for their user. i.e user ip: 192.168.1.5 netmask 255.255.255.0 gateway 192.168.1.1

How to make a link between these 2 networks ? i.e user with ip: 192.168.1.5 want to ping or sharing data with user with ip: 192.168.2.10 and vice versa.

Anybody can help me please?


Avis

Re: How to link 2 networks

Posted: Mon Sep 17, 2007 7:04 am
by unlimitedme
avisdel,
if you wanted to link 2 different networks,
try to use bridge interface.

Re: How to link 2 networks

Posted: Mon Sep 17, 2007 8:16 am
by ashish
You can have route between ether

/ip route

add dst-address=192.168.2.0/24 gateway=192.168.1.1

ASHISH

Re: How to link 2 networks

Posted: Mon Sep 17, 2007 9:56 am
by valens
if both network connected to the same router, you don't have to set any rule to make any machine can ping to other machine on other network.
make sure each machine use proper default gateway. router will route this 2 networks.

but if you want to run application using widows file sharing, you have to set both network using same subnet, and bridge those two interface.

Re: How to link 2 networks

Posted: Mon Sep 17, 2007 11:16 am
by avisdel
Thanks expert you solved my problem :D