Bridge designated port - root port - disabled port

Hi all,


I have a problem with one RouterOS.

I created 6 bridge in 6 machines and always have ether1 like root port and the wlan1 disabled port (because no users connected, it’s ok..) but.. I have problems in one machine (My machine number 7) because ether1 is like designated port and wlan1 is designated port too. Why? what’s the problem? all machines have same components/configurations.


Thanks.
Martín.

Greetings from Miramar Beach, Florida!

From my experience on these boxes, you can only have one enabled port on a bridge. If you want to use these boxes as a router, you will need to use a route/masquerade from wlan1 to ether1 rather than a bridge.

Hi!

I think these roles are automatic assigned. I need to use this machine like other 6, with transparent traffic between interfaces.


Martín.

OK. Then set it up like the other 6…
Remove the IP address settings on wlan1 and bridge it to ether1.

Hi,

I have this IP:

Flags: X - disabled, I - invalid, D - dynamic

ADDRESS NETWORK BROADCAST INTERFACE

0 10.1.23.11/24 10.1.23.0 10.1.23.255 ether1


And this bridge config:

interface bridge pri
Flags: X - disabled, R - running
0 R name="bridge1" mtu=1500 arp=enabled mac-address=00:0C:42:09:XX:XX
protocol-mode=rstp priority=0x8000 auto-mac=yes
admin-mac=00:00:00:00:XX:XX max-message-age=20s forward-delay=15s
transmit-hold-count=6 ageing-time=5m


interface bridge port pri
Flags: X - disabled, I - inactive, D - dynamic

INTERFACE BRIDGE PRIORITY PATH-COST

0 ether1 bridge1 0x80 10
1 I wlan1 bridge1 0x80 10

\

interface bridge monitor
numbers: 0
state: enabled
current-mac-address: 00:0C:42:09:XX:XX
root-bridge: yes
root-bridge-id: 0x8000.00:0C:42:09:XX:XX
root-path-cost: 0
root-port: none
port-count: 2
designated-port-count: 1


All machines are configured same.

: ?

Hi Martin,

Your wlan1 interface is showing inactive. I use the command-line setup on these, so please feel free to translate this into the appropriate GUI setup if you use Winbox or the like.

/interface enable wlan1
then
/ip address print
and insure there is no IP assigned to wlan1
If there is, remove it.

Hi SurferTim,


wlan1 is enabled but not running because there is noone connected to wlan1. If someone connects via wireless to wlan1 this port is running automatically.

[admin@nave3] > interface print
Flags: X - disabled, D - dynamic, R - running

NAME TYPE RX-RATE TX-RATE MTU

0 R ether1 ether 0 0 1500
1 R ether2 ether 0 0 1500
2 R ether3 ether 0 0 1500
3 wlan1 wlan 0 0 1500
4 R bridge1 bridge 0 0 1500

Hi Martin,

Maybe I am not understanding what your challenge is. What are the symtoms of your challenge? Not getting client IP if using dhcp? Not getting internet connection? (error 404-Page not found)?

EDIT: Just noticed a difference between your setup and mine. In your interface bridge setup, it has protocol-mode=rstp. I have stp=no in my setup.

SurferTim,

Due to this diferent automatic parameters in bridge ports (role parameter) I have problems on receiving IP from a remote DHCP server. If I put manual IPs to my laptops I have internet connection.
In other machines I can receive DHCP without problems and I have inet conection, but configuration in interfaces and IPs and ports of bridge are the same in all machines.. the only difference I can find is this automatic roles.. I make a reset to default parameters and I put the IP again and reconfigured the machine, but I always have the same problem.


why here my ether1 isn’t the root port?

: /

What IP range is your DHCP server issuing? You are not “stepping on” your AP’s IP address with DHCP are you? Insure all the static IPs in your system are clear of your dhcp range.

This is OK.

My pool is 10.1.23.100-10.1.23.200 an my APs are from 10.1.23.6 to 10.1.23.12

OK. Explain the “automatic” role a little better. I see nothing “automatic” about anything in the command line setups.

I also noticed a protocol-mode=rstp in your “/interface bridge” setup. You are using rstp (spanning tree)? See if the other APs have that same protocol-mode setting. I have stp=no in my bridge setup. I see no “protocol-mode” parameter for a bridge in the User Guide. Nor do I see a “auto-mac” parameter. Nor a “transmit-hold-count”.

Hi,

I think this role is assigned automatically by routerOS. You can’t select root port or designated port.. This is why I am saying automatic role.

I have Rapid Spanning Tree Protocol in all my APs.

Got me. I do not even see the parameters you use listed in the User Guide to know if they are correct. Last thing I can suggest is check your log to see if anything shows up there. Wish I could be more help… :frowning:

Look at the picture to see roles


Anyone can help me whit this?
Dibujo.JPG

Hi,



finally I fix the problem. One ethernet pair was broken. We changed the ethernet wire and all is working fine.


Thanks!

Sorry to re-open the post, but is the following true:

“From my experience on these boxes, you can only have one enabled port on a bridge. If you want to use these boxes as a router, you will need to use a route/masquerade from wlan1 to ether1 rather than a bridge.”

In many cases I have routers with 2 Wireless Radios, and One Ethernet, which all 3 devices are bridged.
Is that incorrect.
Ethernet provides Internet
Wlan1 provides internet to other routers at 5.8ghz
Wlan2 acts as the AP to provide wireless to clients

Look at the picture to see roles


Anyone can help me whit this?

Just connect to the W-LAN, then it’s a designated port :slight_smile: It’s getting changed automatically…


Greets from good old Germany

Michael

i have a problem with so many bridges here. The root-port. I don’t now how mikrotik choose a root-port. How is this?

because always it chooses the wlan port, so when it’s down, i can’t access the rb.

how can i solve it?

thanks;

Probably you left bridge Priority an port Priority unchanged/default values.
So root-port election is only MAC-based.
Read this article:
http://en.wikipedia.org/wiki/Rapid_Spanning_Tree_Protocol#Rapid_Spanning_Tree_Protocol_.28RSTP.29

Regards, Grzegorz.