Community discussions

MikroTik App
 
thorvatek
just joined
Topic Author
Posts: 2
Joined: Tue May 11, 2021 10:09 am

Routing between two networks

Tue May 11, 2021 10:46 am

Hi everyone,

I’m need your help cos’ I’m new with Mikrotik and RouterOS.
For now, I was using Linksys routers and few months ago I have bought hAP ac².
Currently is installed RouterOS v6.47.9 and everything is working fine except I can’t configure access to LAN2 on port 5.

I was looking at this forum and various other sites but can’t find working solution or I’m missing something.

LAN1: 192.168.1.0/24
PORT1 configured for PPoE
PORTS2-3 in bridge with DHCP
PORT5 connected with LAN2 (Planet switch)

LAN2: 192.168.2.0/24
LAN2 doesn’t have DHCP and default gateway.
192.168.2.100 - HikVision NVR DS-7608NI-E2
192.168.2.10x – 6x HikVision IP cameras
Planet 8-port 1Gbpe PoE Switch

My initial idea was to configure video surveillance in the same subnet, but company that installed HikVision was against that solution and don’t want to provide admin password for NVR. I have user account for NVR that allows me to access live feed and recording from cameras.

I want to be able to access LAN2 from LAN1.
How to configure Mikrotik to be able to route traffic from LAN1 to LAN2?

Thanks in advance.
BR
 
eliasbats
just joined
Posts: 12
Joined: Thu May 11, 2017 6:22 pm

Re: Routing between two networks

Thu May 13, 2021 2:29 pm

I suppose you mean that right now you can only access the NVR with a client device that is already on LAN2 (has a LAN2 IP address). If that's the case, you need to create an IP address in the Mikrotik router for Port 5. The address should be in the LAN2 IP subnet. But... that means that every device in LAN2, including the NVR, should be configured with that IP address as their default gateway. If you don't have admin access to configure this on the NVR, then you won't get anywhere with this.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: Routing between two networks  [SOLVED]

Thu May 13, 2021 3:09 pm

Add LAN2 IP address to ether5. And add src-nat rule for traffic exiting via ether5:
/ip firewall nat
add chain=srcnat action=src-nat to-addresses=<LAN2 IP address of MT device> out-interface=ether5
This way hikvision gear will see all connection as if coming from router (with LAN2 address inside their own subnet).
 
thorvatek
just joined
Topic Author
Posts: 2
Joined: Tue May 11, 2021 10:09 am

Re: Routing between two networks

Sat May 15, 2021 8:09 am

Thanks for help. Now everything works just fine.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 25 guests