Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

Please or Register to create posts and topics.

Two physical servers with same br0 interface MAC Address

We have two physically separate edgeLinux/antMan servers deployed. Both have different IP addresses HOWEVER both have the same MAC address for the br0 interface. This is impacting our ability to access one or the other servers (it randomly changes as to which we are able to access via IP address) How do we fix this? Is there a solution or workaround? We can't have two MACs on the same network.

 

We are looking into this bug. For now we can add the mac in the 'net' file.
The brX MAC address should be the same as the MAC address of its associated physical interface.

First ssh to the edgeLinux machine and look at the 'net' file

nano /etc/conf.d/net

Here is an example. In this case 'eno1' is my first physical interface and is being used by 'br0'.

bridge_br0="eno1"

config_eno1="null"
config_br0="192.168.1.3 netmask 255.255.255.0"

fallback_br0="null
apipa"

rc_net_br0_need="net.eno1"

routes_br0="default via 192.168.1.1"

Then we can get the MAC address of 'eno1' with (substitute with the name given to your interface)

root@myantsle:~ # ifconfig eno1
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::ae1f:6bff:fe00:3dd0 prefixlen 64 scopeid 0x20<link>
ether ac:1f:6b:00:3d:d0 txqueuelen 1000 (Ethernet)

Then add the MAC address to the 'net' file with 'mac_br0="ac:1f:6b:00:3d:d0"

bridge_br0="eno1"

config_eno1="null"
config_br0="192.168.1.3 netmask 255.255.255.0"
mac_br0="ac:1f:6b:00:3d:d0

fallback_br0="null
apipa"

rc_net_br0_need="net.eno1"

routes_br0="default via 192.168.1.1"

Reboot