Community discussions

MikroTik App
 
nosty
just joined
Topic Author
Posts: 1
Joined: Sun May 22, 2022 6:31 am

Connecting 2 Lans ,each LAN with its own DHCP server on RB2011

Sun May 22, 2022 7:17 am

I have 2 LANs, in close proximity. I wish to connect the 2 LANs via a Mikrotik RB2011 Router on ether ports 4 & 5.
Each LAN has its own DHCP server, DNS and GW.
I wish to have clients on each LAN get IPs dynamically from their respective LAN without mixing up and also be able to ping one another.
LAN 1 NW ID 192.168.0.0 /20
GW 192.168.0.1
DHCP SERVER 192.168.0.10
DNS SERVER 192.168.0.10

LAN 2 NW ID 192.168.0.0 /24
GW 192.168.0.1
DHCP SERVER 192.168.0.1
DNS SERVER 192.168.0.1
I have the two ports on bridge mode but DHCP requests are mixing up in both LANs, how do I fix this?
You do not have the required permissions to view the files attached to this post.
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: Connecting 2 Lans ,each LAN with its own DHCP server on RB2011

Sun May 22, 2022 12:56 pm

I would use /interface ethernet switch rule to block the DHCP client -> server traffic on switch1 (ether1..ether5) of the 2011. Assuminig your two 2911 are connected to ether4 and ether5 of the 2011, no switch chip rules are present, and ether4 and ether5 are part of the same bridge with hardware forwarding enabled:

/interface ethernet switch rule
add switch=switch1 ports=ether4,ether5 protocol=udp dst-port=67 new-dst-ports=""


Along with the hardware (switch chip) forwarding, this will provide wire speed of the interconnection. Don't forget to split the address pools between the LANs.
 
kevinds
Long time Member
Long time Member
Posts: 638
Joined: Wed Jan 14, 2015 8:41 am

Re: Connecting 2 Lans ,each LAN with its own DHCP server on RB2011

Mon May 23, 2022 9:37 pm

This isn't going to work..

LAN2's network is in use by LAN1.. LAN1 will never route traffic to LAN2 because it is already 'local' to LAN1.

Your routing needs to be done on the two 2911 routers.

What is the purpose of the RB2011 and why it is also labelled as a 1941?

I have the two ports on bridge mode but DHCP requests are mixing up in both LANs, how do I fix this?
How do you know this? Or how did you come to that conclusion?

*If* that is the case, your diagram doesn't match your cabling and/or your 2911 configurations are very wrong.

Is this a homework question?

Who is online

Users browsing this forum: Bing [Bot], hatred, hendry, infabo, Michiganbroadband and 78 guests