Community discussions

MikroTik App
 
User avatar
soonwai
Member Candidate
Member Candidate
Topic Author
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

hAP Lite (RB941-2nD-TC) bridge auto-mac Bug

Mon Apr 11, 2016 10:24 pm

Hi all, can someone confirm if this is a bug or if I'm missing something? Bridge auto-mac=yes doesn't seem to be working correctly on hAP Lite.

This is on a hAP Lite (RB941-2nD-TC) ROS 6.34.4.

Wiki says:
auto-mac (yes | no; Default: yes) Automatically select the smallest MAC address of bridge ports as a bridge MAC address"
hAP Lite (RB941-2nD-TC) ROS 6.34.4
Config:
/interface bridge
add name=bridge1
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=wlan1
After reboot, auto-mac=yes is not selecting the smallest MAC address as the bridge address.

Result:
> /interface print 
Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME                                TYPE       ACTUAL-MTU L2MTU  MAX-L2MTU MAC-ADDRESS      
 0   S ether1                              ether            1500  1598       2028 E4:8D:8C:CA:18:57
 1  R  ether2                              ether            1500  1598       2028 E4:8D:8C:CA:18:58
 2     ether3                              ether            1500  1598       2028 E4:8D:8C:CA:18:59
 3     ether4                              ether            1500  1598       2028 E4:8D:8C:CA:18:5A
 4   S wlan1                               wlan             1500  1600       2290 E4:8D:8C:CA:18:5B
 5  R  bridge1                             bridge           1500  1598            E4:8D:8C:CA:18:5B
 
> /interface bridge port print 
Flags: X - disabled, I - inactive, D - dynamic 
 #    INTERFACE                                   BRIDGE                                       PRIORITY  PATH-COST    HORIZON
 0 I  ether1                                      bridge1                                          0x80         10       none
 1 I  wlan1                                       bridge1                                          0x80         10       none
 
> /interface bridge print      
Flags: X - disabled, R - running 
 0  R name="bridge1" mtu=auto actual-mtu=1500 l2mtu=1598 arp=enabled mac-address=E4:8D:8C:CA:18:5B protocol-mode=rstp 
      priority=0x8000 auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s forward-delay=15s transmit-hold-count=6 
      ageing-time=5m 
On an RB751G-2HnD ROS 6.34.4, auto-mac=yes is working as per wiki.
> /interface print 
Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME                                TYPE       ACTUAL-MTU L2MTU  MAX-L2MTU MAC-ADDRESS      
 0  RS ether1                              ether            1500  1598       4074 00:0C:42:FB:C9:7A
 1   S ether2                              ether            1500  1598       4074 00:0C:42:FB:C9:7B
 2   S ether3                              ether            1500  1598       4074 00:0C:42:FB:C9:7C
 3   S ether4                              ether            1500  1598       4074 00:0C:42:FB:C9:7D
 4   S ether5                              ether            1500  1598       4074 00:0C:42:FB:C9:7E
 5  RS wlan1                               wlan             1500  1600            00:0C:42:FB:C9:7F
 6  R  bridge1                             bridge           1500  1598            00:0C:42:FB:C9:7A
 
> /interface bridge port print
Flags: X - disabled, I - inactive, D - dynamic 
 #    INTERFACE                                  BRIDGE                                 PRIORITY  PATH-COST    HORIZON
 0    ether1                                     bridge1                                    0x80         10       none
 1    wlan1                                      bridge1                                    0x80         10       none
 
> /interface bridge print
Flags: X - disabled, R - running 
 0  R name="bridge1" mtu=auto actual-mtu=1500 l2mtu=1598 arp=enabled mac-address=00:0C:42:FB:C9:7A protocol-mode=rstp 
      priority=0x8000 auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s forward-delay=15s 
      transmit-hold-count=6 ageing-time=5m
 
User avatar
soonwai
Member Candidate
Member Candidate
Topic Author
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

Re: hAP Lite (RB941-2nD-TC) bridge auto-mac Bug

Thu Apr 14, 2016 8:49 am

I've received a reply regarding this from support.

Bridge auto-mac is selecting from the first available interface. In the hAP Lite, it looks like wlan comes up before the ethers.

Wiki has been updated too. From "Automatically select the smallest MAC address" to "Automatically select one MAC address".
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Thu Apr 14, 2016 6:35 pm

Therefore you should assign the fixed mac address administratively to the bridge. It's common feature not linked to any specific model.
 
User avatar
soonwai
Member Candidate
Member Candidate
Topic Author
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

Re: hAP Lite (RB941-2nD-TC) bridge auto-mac Bug

Thu Apr 14, 2016 7:17 pm

Thanks, jarda, that's what I've been doing with auto-mac=no. I was surprised by it (auto-mac=yes) since the behaviour was inconsistent with the documentation in the wiki which has since been updated. Honestly thought it was a bug because of the few Mikrotik models I've used, it happened only on the hAP Lite.

Who is online

Users browsing this forum: baragoon, Bing [Bot], oquiroz and 119 guests