Why is Espressobin having the same mac address for all interfaces (lan0, lan1, eth0 and wan) ?
Here is my ifconfig -a | grep HWaddr:
bond0 Link encap:Ethernet HWaddr 2a:03:ca:d9:b1:e4
br0 Link encap:Ethernet HWaddr e6:26:e1:a5:ad:72
eth0 Link encap:Ethernet HWaddr f0:ad:4e:05:34:b8
lan0 Link encap:Ethernet HWaddr f0:ad:4e:05:34:b8
lan1 Link encap:Ethernet HWaddr f0:ad:4e:05:34:b8
wan Link encap:Ethernet HWaddr f0:ad:4e:05:34:b8
We are seeing the same thing as well as something else related to this: we ordered a bunch of boards, and multiple boards come up with the same MAC addresses!
One MAC address we see on three different boards is “00:50:43:01:02:03” for eth0, which is then copied to lan0, lan1, and wan. Other boards see f0:ad MAC addresses similar to this one. The 00:50 MAC is weird since this is not the MAC on the sticker.
We’ve worked around this by randomizing the eth0, lan#, and wan port MAC addresses, but then we have to set eth0 into promiscuous mode for the sub-ports to work. That is also weird.
I successfully updated uboot using the one provided in TechSpec U-Boot 2017.03-armada-17.10.1-gaee49fc (Jan 29 2018 – 18:21:49 +0800)
I’m now using armbian Xenial with kernel 4.14.23-mvebu64
root@portal:~# ifconfig | grep HWaddr
br0 Link encap:Ethernet HWaddr d2:2e:99:e7:e7:28
eth0 Link encap:Ethernet HWaddr f0:ad:4e:03:64:7f
lan0 Link encap:Ethernet HWaddr f0:ad:4e:03:64:7f
lan1 Link encap:Ethernet HWaddr f0:ad:4e:03:64:7f
wan Link encap:Ethernet HWaddr f0:ad:4e:03:64:7f
It’s ok now since I only need the two interfaces br0 and wan to be of different MAC.
There was another weird problem I encountered though. The wan interface was bridged to br0. When I plugged the network interface to wan interface, the IP address was assigned to br0. I don’t know if this by design or what. To fix this, I replaced the /etc/systemd/system/nework with the contents from archlinux ARM source since it always worked fine for my needs. The setup from archlinux’s network configuration is br0 is a bridge interface for lan0 and lan1 and wan is the wan interface as expected.