Page 1 of 1

Handling a situation of two interfaces on the same subnet

Posted: Sun Aug 12, 2012 8:06 pm
by slimprize
Hi all,

I have devices with static ip addresses on two interfaces of my Mikrotik router. These addresses are in the same subnet. See below for details.
ether1 links to the wan DSL modem router.
Ether 2 is my desktop.
Ether 3 has my linux desktop.
Ether 4 connects to a switch that has 4 IP cameras and 1 network video recorder on it.
Ether5 has another desktop.

The problem is that the devices on ether3 and ether4 are in the 192.168.11.x range. They have static IP addresses. Changing these addresses is not easy.

I want to be able to communicate with these devices and vice worse. Static routes do not appear to be an option since one interface can map to one subnet. I have read threads on the mikrotik forum about marking packets and routing them but I cannot determine whether I need to go down that route.
I am running router os v5.19 on a RB751g-2hnd router.

Anyone any ideas?
Pranav

Re: Handling a situation of two interfaces on the same subne

Posted: Mon Aug 13, 2012 9:59 am
by hassibi
Hello

Create a bridge in your mikrotik
/interface bridge add name=bridge1 protocol-mode=rstp
then add eth3 and eth4 to your created bridge
interface bridge port add bridge=bridge1 interface=ether3
interface bridge port add bridge=bridge1 interface=ether4
then set an ip in range 192.168.11.0/24 on bridge interface so you can connect all of devices in range 192.168.11.0/24

Good Luck

Re: Handling a situation of two interfaces on the same subne

Posted: Mon Aug 13, 2012 7:35 pm
by slimprize
Hello hassibi,

Thanks for your answer. Ether3 and ether4 are already slaves to ether1 which is on the default bridge. How do I remove them? I am not sure of the commands.

Handling a situation of two interfaces on the same subnet

Posted: Mon Aug 13, 2012 7:58 pm
by dragon2611
It can be done in winbox by double clicking the Ethernet interface

Can't remember the commands off the top of my head

Also you probably don't want slave te ports to the wan either bridge or set the ip on 3 and slave 4 to 3 if you don't need any monitoring or filtering on the traffic between 3 and 4 (assuming the ports are both on the same switch chip)


Sent from my Phone using Tapatalk