Community discussions

MikroTik App
 
Dzakub
just joined
Topic Author
Posts: 2
Joined: Mon Jun 25, 2018 2:20 pm

Two networks with same subnet

Mon Jun 25, 2018 3:06 pm

Hi,

I've recently bought MikroTik hAP ac2 as a replacement for my old home router. On my old router I had a specific setup I wanted to replicate on hAP ac2. I have one network provided by my ISP (192.168.1.0/24) with the Internet gateway on 192.168.1.100. I cannot change any configuration here, it's managed by my ISP. In my previous setup I had my old router connected
on 192.168.1.X - it acted as DMZ. My old router created another network (LAN), acting as a the Internet gateway through the upper (ISP's) network. To that LAN I had all my devices connected. Now, the thing is, both the networks had the same subnet (192.168.1.0/24), yet both were separated from each other - I couldn't access any device in ISP's network from my LAN, and no device from ISP's network could access devices connected to my LAN (apart from those with forwarded ports). Here's a diagram:

Image

This setup was unusual, I must admit, but everything worked fine. I wasn't paying much attention to it. Now, I've decided to replace my old router with hAP ac2. How could I configure it to work as my previous router? Right now I have my LAN src-natted and the only setup that's working for me is with LAN network configured as different subnet than the ISP's network. I see the simplest way to solve this would be to just renumber the LAN (eg. 192.168.2.0/24), but this would require me to reconfigure most of my devices (many of them had static IP addresses). hAP ac2 is connected to ISP's network by ether1 interface, and all the other interfaces are bridged and form the LAN.

To sum up, the thing I want to achieve is to have two networks, both numbered as 192.168.1.0/24 but separated, so devices from my LAN couldn't access ISP's devices and vice-versa.

Best Regards
 
Sob
Forum Guru
Forum Guru
Posts: 9120
Joined: Mon Apr 20, 2009 9:11 pm

Re: Two networks with same subnet

Mon Jun 25, 2018 4:59 pm

If you're against proper config, then try this:

1) Configure LAN as if you weren't doing anything wrong, 192.168.1.1/24 on LAN interface, DHCP server, ...
2) Configure WAN with point to point address:
/ip address
add address=192.168.1.x/32 network=192.168.1.100
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.1.100
Don't add any srcnat, you don't need double NAT.
3) Set arp=proxy-arp on WAN.
4) Add some firewall filters to prevent unwanted communication between WAN and LAN

I didn't test it, but it should work.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Two networks with same subnet

Mon Jun 25, 2018 5:11 pm

Don't distort the accepted paradigm.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3005
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Two networks with same subnet

Mon Jun 25, 2018 8:19 pm

 
Dzakub
just joined
Topic Author
Posts: 2
Joined: Mon Jun 25, 2018 2:20 pm

Re: Two networks with same subnet

Mon Jun 25, 2018 8:51 pm

I've been looking into it for the last two hours and I realized that the result I wanted to achieve is completely invalid. I just wonder who came up with idea of doing such things on my old router (it has this setup by default). I'm just gonna renumber my LAN and configure the router properly. Thank you guys for help.
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Two networks with same subnet

Tue Jun 26, 2018 5:25 pm

I've been looking into it for the last two hours and I realized that the result I wanted to achieve is completely invalid. I just wonder who came up with idea of doing such things on my old router (it has this setup by default). I'm just gonna renumber my LAN and configure the router properly. Thank you guys for help.
Hallelujah! :)

Who is online

Users browsing this forum: anav, Bing [Bot], erlinden and 35 guests