Community discussions

MikroTik App
 
User avatar
tadpole
newbie
Topic Author
Posts: 47
Joined: Fri May 07, 2010 2:20 pm

Linking two networks

Tue Feb 25, 2014 11:45 am

Hi all,
Im not sure what to use for this setup... but here is whats happening

I have 3 Different Places all with same internet but need two of the places to be visible to each other on the network. They are both setup as routers but are running off a WLAN that shares with a place that is separate.

Internet
|
Wlan
|
AP
| | |
SiteA SiteB SiteC


Soo I want SiteA to see SiteB but not have SiteC see it.

SiteA - LAN Side 192.168.10.1
WLAN Side 192.168.1.123

SiteB - LAN Side 192.168.10.1
WLAN Side 192.168.1.122

Site C -LAN Side 192.168.10.1
WLAN Side 192.168.1.121

Should I use a VPN or L2TP or ppptp there are so many ways I just dont know which way is best, i figure something simple should be useable here, like EiOP tunnel or something.

I have two RB750's that i am fiddling with atm to make this work but i think im not using the right wording when searching for what i want to do
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Linking two networks

Tue Feb 25, 2014 12:45 pm

If the wlan interfaces are connected to the same router, then easiest is routing those networks instead of using a masquerade on each router. I presume you are using a masquerade since the localnet ips are the same (192.168.10.1) on each site router.

However, that would require changing the localnet settings on two of the site routers.
 
User avatar
tadpole
newbie
Topic Author
Posts: 47
Joined: Fri May 07, 2010 2:20 pm

Re: Linking two networks

Tue Feb 25, 2014 2:41 pm

Heya sorry the WLAN is a Wireless LAN, or WAN... It has a UBNT radio for AP and UBNT Stations in Router Mode, i can access the IP's of the other devices and have been using portforwarding but i want a LAN type link to share files and such through windows networking.

I figured something like a tunnel may be what im looking for but im not sure how to word it ;/

Maybe a VLAN may work? I have been tempted to try and setup a VLAN but i keep getting flummoxed by where to start with the things, sorry for my ignorance here. I could easily setup an FTP server both sides but if hamachi can do it an RB750 can do it better :D
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Linking two networks

Tue Feb 25, 2014 2:50 pm

i can access the IP's of the other devices and have been using portforwarding but i want a LAN type link to share files and such through windows networking.
I have to ask: How can you connect to a 192.168.10.x ip on site b from a 192.168.10.x ip on site a? There is a routing conflict there.

If you can change the ip subnets on site b and site c, and eliminate the masquerades on all site routers, you should be able to route them in your UBNT router and connect with Windows networking using the remote computer's ip.
 
User avatar
tadpole
newbie
Topic Author
Posts: 47
Joined: Fri May 07, 2010 2:20 pm

Re: Linking two networks

Tue Feb 25, 2014 5:19 pm

heya sorry man, i feel a bit noobish here ;/
I should've said that the 192.168.10.1 is the Routers LAN side IP and the 192.168.1.123 is the WAN side of the IP.

I can access the device IP on the WAN side, so from the SiteB (My IP would be in the 192.168.10.0/24 range and the devices WAN side IP is in the 192.168.1.0/24 range) i access SiteA on 192.168.1.123 and it forwards my request from VNC/RDP/FTP to the server on the LAN side of the network 192.168.10.10

I made a quick image of the layout i hope this helps
Image
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Linking two networks

Tue Feb 25, 2014 5:27 pm

I know all that. I did not need a schematic of your network. This is what I do best.

I recommend you reassign your site ip subnets so they are not the same.
Use 192.168.10.0/24 on site a.
Use 192.168.11.0/24 on site b
Use 192.168.12.0/24 on site c

Remove the masquerades on all site routers.

Then in the UBNT router (as if it was a Mikrotik router):
/ip route
add dst-address=192.168.10.0/24 gateway=192.168.1.123
add dst-address=192.168.11.0/24 gateway=192.168.1.122
add dst-address=192.168.12.0/24 gateway=192.168.1.121
 
User avatar
tadpole
newbie
Topic Author
Posts: 47
Joined: Fri May 07, 2010 2:20 pm

Re: Linking two networks

Tue Feb 25, 2014 6:52 pm

hahaha, at least you know what you are doing! Im sure my wording could be better and am grateful that you have taken the time to help me!
Just to confirm as i am having a looksee at the moment at this on the devices, this may be a silly thing to say but is the NAT the same as masquerade on ubiquity?

If i disable it then i have no link to the web so i must add the static route for that on each device i setting up, also i think disable DHCP and use static IP's on the PC's.

From a bit of fiddling trying to add a static route is not so easy through webui so im assuming add it through ssh with putty or something.

Then provided my brain doesnt break I should be able to access the computers from either side...
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Linking two networks

Tue Feb 25, 2014 7:25 pm

If i disable it then i have no link to the web so i must add the static route for that on each device i setting up, also i think disable DHCP and use static IP's on the PC's.
If you disable the NAT masquerade without enabling the routes, it will fail.