Hi guys, I have a problem with loops, some of my customers where I have mikrotik, make mistakes sometimes they put both ends of a utp lan cable in same router so in this case whole network goes down.
Any suggestion how to solve this ?
I understood that the STP protocol could do this, but there is no STP on Mikrotik, and the RSTP on bridge is on but does not help anything.
What I checked was if it’s enabled on the bridge interface, and it was on rstp, then I changed it to stp but no effect, as soon as I connect 1 cable’s both ends on the router, port 3-4 then the router crashes. so on both stp or rstp same result.
I use it in a default config, so all ports are bridged.
you are totally right, both ends of a cable shouldn’t be connected to the router
the point is to make this router usable by everyone, not only the IT guy with 30 years of experience
I have worked for many companies, one of them was the KPN, this is the main Telecom / Internet company in the Netherlands,
what I saw there while supporting regular customers ( which where small sized companies) mostly they try to solve some other network problem
and get mixed up with the switches and routers, and I have seen many times that they stick both sides of the cable in the router and call me telling “network is dead, and internet is gone too, we checked all but could not solve please check” then I have to drive all the way to discover that one of the cables between 100 others was in the router with both ends. small sized companies mostly do not have own IT guy who knows what he’s doing.
So before I deploy many of this boards I want to make sure to prevent all small possibilities to get big problems
I hope now is clear why I’m trying to solve this.
With this config, you will get a loop. RSTP will not work. As to why:
Every port must the in the “/interface bridge port”. You are using the “master-port” function which is different. Take a look at the diagrams in this wiki article: http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features#Port_Switching
Using the “master-port” the traffic is processed directly in the switch chip, which cant do STP. STP is done in the software by the CPU, but using “master-port” packets dont get to the CPU.
as I told before, I’m using the default config of this router after hard reset.
can you please if possible tell me the steps to make all this interfaces the way you wrote above ?
Becasue I have a bridge, by default already enabled on this board.
/interface ethernet
set ether2-master-local name=ether2-LAN
set ether3-slave-local name=ether3-LAN master-port=none
set ether4-slave-local name=ether4-LAN master-port=none
set ether5-slave-local name=ether5-LAN master-port=none
/interface bridge port
add bridge=bridge-local interface=ether2-LAN
add bridge=bridge-local interface=ether3-LAN
add bridge=bridge-local interface=ether4-LAN
add bridge=bridge-local interface=ether5-LAN
add bridge=bridge-local interface=wlan1
You will probably have to run this multiple times, since the 1st time you run this, it disconnect you from the router. Just make sure you set all this untill your export looks exactly like this.
That will make all ports part of the software bridge, not use the switch ASIC. That will in turn enable RSTP on all the ports. However, since all the switching is now done in software, even bridge functions will need CPU, and therefore maximum bridge speed will be limited by what CPU you have in the router.