Community discussions

MikroTik App
 
User avatar
kolorasta
Member
Member
Topic Author
Posts: 304
Joined: Sun Jun 25, 2006 11:55 pm
Location: Argentina

Bridge mac changes automatically...!!!

Sat Oct 20, 2007 10:28 pm

I have a ROS in a pc as a transparent traffic shapper with 2 nics bridged. and the mac of the bridge changes automatically. Why?
I think, but i´m not sure, that it changes when i upgrade ROS.

how can i prevent this to happen?
 
User avatar
jwcn
Forum Guru
Forum Guru
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

Re: Bridge mac changes automatically...!!!

Mon Oct 22, 2007 1:54 am

How are you determining that the change is happening?
 
User avatar
kolorasta
Member
Member
Topic Author
Posts: 304
Joined: Sun Jun 25, 2006 11:55 pm
Location: Argentina

Re: Bridge mac changes automatically...!!!

Mon Oct 22, 2007 3:07 pm

because i have 2 MT.. the first one is a firewall, webcache & dhcp server with ARP disabled. I manually put every local ip/mac combination i want to get internet access.
the other MT is a traffic shapper. I check the log of the MT (traffic shapper) regulary and i found that it couldn't send emails (backup script) and searching i found that the ip/mac combination of the traffic shapper was not the same in the ARP table of the first Mikrotik. so i change the mac in the ARP table... and then i happened again...
 
dsobin
Member Candidate
Member Candidate
Posts: 160
Joined: Mon Jun 04, 2007 3:58 am
Location: New Jersey, USA

Re: Bridge mac changes automatically...!!!

Wed Oct 24, 2007 2:56 am

This happens to me also. It's very annoying.

My configuration is very diffent from yours, but perhaps my experience can shed some light on why you are seeing changing mac addresses on the bridge.

I use static WDS, which needs to share mac addresses of the radios on each side of the connection. Since the radios are under their respective bridges, the WDS configuration uses the mac of the bridge. If the bridge mac changes, WDS fails.

It appears to me that the bridge picks the mac address, from among its ports, that has the highest numerical value. If another port is added, the bridge's mac address might change.

This happened to me when I swapped out a radio card with one that had a higher mac address. This caused the bridge to start using a new mac address which the WDS on the other end of the link didn't recognize.

This will also occur if one of the ports under the bridge is a radio in AP mode. If
the radio has no clients connected, it will be marked as not-running and its mac address will not be used by the bridge, even if it is the highest mac address.

If a user connects to the access point, the radio will be marked as running, and its mac address will now be used by the bridge, if this radio had the highest address.

The result is that the mac address of the bridge keeps changing as the AP goes between active and idle.

As a work-around, I changed the mac address of one of the bridge port devices which is not an AP, making it the highest mac address. Now, the bridge always uses that mac address, regardless of the state of the AP.

Another work-around, which I haven't tried, is to disable the feature that marks the bridge port as disabled when there are no clients on an AP. I don't use that feature, but I think it's called "disable-running-check=yes" on the terminal interface. I can't find it on winbox.

I don't think the algorithm for selecting the bridge mac address is documented. Therefore, if you upgraded ROS, things might have changed. Or, if you changed any hardware that was under the bridge, the new HW might have a different mac address. If you don't have any access points under the bridge, try the trick of selecting a manual mac address for one of the devices that is high enough that it will always be picked.

Please post and let us know if this helped you.
 
User avatar
kolorasta
Member
Member
Topic Author
Posts: 304
Joined: Sun Jun 25, 2006 11:55 pm
Location: Argentina

Re: Bridge mac changes automatically...!!!

Wed Oct 24, 2007 7:34 am

I don't like changing the mac address of wireless interfaces because some clients use ssid-mac combination to connect to.

in my case, it there are no wireless cards in the traffic shapper... so if it happens again, i will try to put a high mac like FF:FF:FF:FF:FF:FF (jajaja the highest available) to be sure to have no more problems.

Now, I would like to know what is the "Admin. MAC address" field for?
Image
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Bridge mac changes automatically...!!!

Wed Oct 24, 2007 3:14 pm

admin. mac is what you where looking for - set it up and the mac address will not change. AFAIK
 
dsobin
Member Candidate
Member Candidate
Posts: 160
Joined: Mon Jun 04, 2007 3:58 am
Location: New Jersey, USA

Re: Bridge mac changes automatically...!!!

Wed Oct 24, 2007 6:38 pm

According to the documentation (Document revision: 2.3 (Fri Aug 18 11:56:45 GMT 2006) on the MikroTik website:
One MAC address will be assigned to all the bridged interfaces (the smallest MAC address will be chosen automatically).
However, I'm looking at my ROS v2.9.46 node and the automatically chosen mac address for the bridge is the largest MAC address, not the smallest.

Also, regarding the bridge parameter called "Admin. MAC Address:", there is no mention of this paramater in the current documentation.

It's a great new feature, if it works as you suggest, janisk. Perhaps it could be added to the documentation?

Who is online

Users browsing this forum: aferreira, Bing [Bot] and 194 guests