Community discussions

MikroTik App
 
djmuk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Mon Jan 18, 2010 8:48 pm

How to? Prevent Bridge MAC address changing

Wed Mar 31, 2010 5:29 pm

I have a couple of devices where the active MAC address changes (which breaks the hotspot bypass setup so I can't manage them!).
This is happening when the WLAN interface comes up because a client has connected - because the newly active WLAN has a lower MAC address than the current bridge MAC address the bridge adopts the MAC of the new WLAN interface.
How can I stop this? I notice that in winbox there is an 'admin mac address' option but I can't find it in the Docs - can I specify the MAC of a specific interface in there or do I need to assign a unique MAC to the Admin MAC.

I also noticed that there was a auto-mac=yes setting on the command line (Which also doesn't appear to be documented). Anyway I tried editing auto-mac=no & now have locked myself out of the unit... as it has disappeared from the IP network and also the neighbour table. The wireless link is still up but I can't mac telnet to the wireless link MAC address... Any suggestions how to get back in without taking my serial cable up the mast?

David
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to? Prevent Bridge MAC address changing

Wed Mar 31, 2010 5:34 pm

http://wiki.mikrotik.com/wiki/Manual:In ... face_Setup

admin-mac and auto-mac documentation.

For MAC telnet, try other MAC addresses on the device. Might be serial port time, though. Safe mode is good for these kind of changes.
 
djmuk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Mon Jan 18, 2010 8:48 pm

Re: How to? Prevent Bridge MAC address changing

Wed Mar 31, 2010 5:41 pm

Duh - how did I not see those (although the integrated help in winbox does go to the 'old' PDF manuals...)

Ok so admin-mac=0's and auto-mac=no so that's why it won't play!

David
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to? Prevent Bridge MAC address changing

Wed Mar 31, 2010 5:51 pm

Also, if you look up 'locally administered MAC address' you can find out how to construct administratively assigned MAC addresses that will never clash with any burnt in address of an interface. That's preferable to re-using an interface address, or making a universal MAC and risking a clash, unlikely as it may be.
 
djmuk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 54
Joined: Mon Jan 18, 2010 8:48 pm

Re: How to? Prevent Bridge MAC address changing

Wed Mar 31, 2010 6:38 pm

That was my next question - do I use an interface MAC address or not. From similar usages on other kit it is usual that the interface HAS to be 'up' if you are re-using the MAC address so I assume it is the same on ROS.
IIRC the locally administered MAC address range has a bit set at the high order end (The MSB set is for multicast, the next one down is the locally administered flag.) So I can just have a policy of setting that one in a copy of (say) the ethernet interface MAC address....

David
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to? Prevent Bridge MAC address changing

Wed Mar 31, 2010 6:45 pm

Yup, that would work well.
 
jober
Long time Member
Long time Member
Posts: 690
Joined: Fri May 28, 2004 12:16 pm
Location: Louisiana,USA

Re: How to? Prevent Bridge MAC address changing

Fri Jan 14, 2011 10:35 pm

I've been having the same problem but if I assign the ether1 mac address to the admin-mac address of the bridge I still lost connection because the wireless interface has a higher mac. So if I add the ether1 mac to the hotspot gateway ARP list and remove the bad host info for the hotspot host list it comes back with the rite mac and ip info.
I would like a better way of doing this.
Is there a list of usable local mac's?
 
jober
Long time Member
Long time Member
Posts: 690
Joined: Fri May 28, 2004 12:16 pm
Location: Louisiana,USA

Re: How to? Prevent Bridge MAC address changing

Fri Jan 14, 2011 10:39 pm

Is it a bad idea to set the bridge and the wireless interface to the ether1 mac address?
 
jober
Long time Member
Long time Member
Posts: 690
Joined: Fri May 28, 2004 12:16 pm
Location: Louisiana,USA

Re: How to? Prevent Bridge MAC address changing

Sun Jan 16, 2011 7:44 am

Anyone? yes, no, maybe!

Who is online

Users browsing this forum: Bing [Bot], kokoboko, pajapatak, xicu and 113 guests