Community discussions

MikroTik App
 
slimprize
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Thu Aug 09, 2012 2:43 am

Handling a situation of two interfaces on the same subnet

Sun Aug 12, 2012 8:06 pm

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
 
User avatar
hassibi
Trainer
Trainer
Posts: 130
Joined: Wed Jun 13, 2012 5:58 am
Location: Iran,Kerman

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

Mon Aug 13, 2012 9:59 am

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
 
slimprize
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Thu Aug 09, 2012 2:43 am

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

Mon Aug 13, 2012 7:35 pm

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.
 
dragon2611
Member Candidate
Member Candidate
Posts: 179
Joined: Fri Sep 25, 2009 12:06 am

Handling a situation of two interfaces on the same subnet

Mon Aug 13, 2012 7:58 pm

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

Who is online

Users browsing this forum: No registered users and 10 guests