1 1
anubisg1

espressobin all boards and all nics have the same mac address

Recommended Posts

as per title...

 

i have 2 boards running armbian (Debian version). Even if the mac addresses on  /boot/armbianEnv.txt are set differently,  all nic cards of both boards, have the same exact mac address, specifically f0:ad:4e:03:64:7f   this of course creates a lot of problems because i cannot connect my 2 boards in the same network

 

here is armbianmonitor from the 1st board - https://pastebin.com/N9AuwV2h

 here is the same for the 2nd board -  https://pastebin.com/QcTq3BaD

 

apparently i am not the only one http://espressobin.net/forums/topic/each-network-interface-has-the-same-mac-address/

Share this post


Link to post
Share on other sites

I would suggest you look in /etc/systemd/network, at the 10-lan[01].network and 10-wan.network files

 

In them, apply a declaration to set the MAC address in the [link] section

 

[Match]
Name=lan0

[Link]
MACAddress=0011.2233.4455

 

Share this post


Link to post
Share on other sites

These boards are using MAC addresses defined in u-boot environment. They are usually not updated by the manufacturer of the evaluation platform.

You can replace them by defining the following variables and issuing "saveenv" afterwards:

ethaddr=00:51:82:11:22:00
eth1addr=00:51:82:11:22:01
eth2addr=00:51:82:11:22:02
eth3addr=00:51:82:11:22:03

...etc.

Share this post


Link to post
Share on other sites
On 5/21/2019 at 3:44 PM, kostap said:

ethaddr=00:51:82:11:22:00

eth1addr=00:51:82:11:22:01
eth2addr=00:51:82:11:22:02
eth3addr=00:51:82:11:22:03

...etc.

This didn't work for me.

And I also changed them in boot.cmd and armbianEnv.txt, still didn't work; I still get the same annoying MAC -address.

Further detail: I have connection to the first board until the second board reaches the systemd-networkd startup, then the connection to my first board freezes.

Thus it's Network Manager that causes the problems.

It would be real nice if part of the MAC address could be generated by some unique ID from the CPU or another IC on the board.

Share this post


Link to post
Share on other sites
On 5/6/2019 at 9:55 PM, ManoftheSea said:

In them, apply a declaration to set the MAC address in the [link] section

I did that, but still no dice. Same problem as described in my post above.

When I boot board number 2, the connection to board number 1 breaks.

I have unique MAC addresses in all the 10-*.network files.

In addition, I have unique MAC addresses in boot.cmd and armbianEnv.txt

Still I can only have one EspressoBIN on the same network.

Share this post


Link to post
Share on other sites

@Jens Bauer @ManoftheSea @anubisg1

The MAC address of the bridge can be specified in 10-br0.netdev. This works without any issues in Stretch and in Buster (at least on a V5_0_1 EspressoBin). If you have problems with Ubuntu Bionic, then their implementation of systemd-networkd may be the reason.

 

# cat 10-br0.netdev
[NetDev]
Name=br0
Kind=bridge
MACAddress=XX:XX:XX:XX:XX:XX

# networkctl
IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           carrier     unmanaged 
  2 eth0             ether              degraded    configured
  3 wan              dsa                degraded    configured
  4 lan0             dsa                no-carrier  configuring
  5 lan1             dsa                no-carrier  configuring
  6 br0              bridge             routable    configured

 _____                                   _     _       
| ____|___ _ __  _ __ ___  ___ ___  ___ | |__ (_)_ __  
|  _| / __| '_ \| '__/ _ \/ __/ __|/ _ \| '_ \| | '_ \ 
| |___\__ \ |_) | | |  __/\__ \__ \ (_) | |_) | | | | |
|_____|___/ .__/|_|  \___||___/___/\___/|_.__/|_|_| |_|
          |_|                                          
Welcome to Debian Buster with Armbian Linux 4.19.57-mvebu64
System load:   0.15 0.13 0.11  	Up time:       17:54 hours		
Memory usage:  37 % of 990MB  	Zram usage:    36 % of 495Mb 
Usage of /:    18% of 908G  

 

Share this post


Link to post
Share on other sites
20 hours ago, ebin-dev said:

The MAC address of the bridge can be specified in 10-br0.netdev

And that was exactly what I was missing!

Now it seems my worst problem has passed. Thank you very much, @ebin-dev!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1