1 1
wollik

MAC-Address of eth0 changes on every boot.

Recommended Posts

Hi All,
I''m using a BPI M2 Zero, where a 100 MBit ethernet Interface is implemented on the board. Since I'm using DHCP for this interface, I found that the MAC Address of this eth0 interface changes on every boot. The MAC Address of the wlan0 interface is permanent and don't changes during boots.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Di 30. Jun xx:xx:xx  CEST 2020
Debian GNU/Linux 10 (buster)
5.4.45-sunxi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 17:42:11 up 25 min,  2 users,  load average: 0,00, 0,00, 0,05
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 8a:aa:ea:69:67:50  txqueuelen 1000  (Ethernet)
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether cc:b8:a8:a9:bc:8e  txqueuelen 1000  (Ethernet)
 

 17:46:04 up 0 min,  2 users,  load average: 2,48, 0,70, 0,24
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 5e:af:c0:93:75:72  txqueuelen 1000  (Ethernet)
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether cc:b8:a8:a9:bc:8e  txqueuelen 1000  (Ethernet)

 

 17:47:07 up 0 min,  2 users,  load average: 1,92, 0,44, 0,14
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 56:e7:62:af:35:55  txqueuelen 1000  (Ethernet)
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether cc:b8:a8:a9:bc:8e  txqueuelen 1000  (Ethernet)

 

 17:48:23 up 0 min,  2 users,  load average: 1,69, 0,39, 0,13
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 96:57:7c:ed:85:e0  txqueuelen 1000  (Ethernet)
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether cc:b8:a8:a9:bc:8e  txqueuelen 1000  (Ethernet)

 

 

Is there a way to set the MAC address of the eth0 interface to a fix value ?

Regards
WolliK

Share this post


Link to post
Share on other sites

yes this is an issue with newest downloadable buster image, been meaning to fix that but no time yet at hand.

workaround for classic specification (/etc/network/interfaces)

auto eth0
iface eth0 inet dhcp
        hwaddress ether 12:34:56:78:9A:BC

 

or set dhcp-client-identifier 12:34:56:78:9A:BC in dhclient.conf (https://linux.die.net/man/5/dhclient.conf)

 

Share this post


Link to post
Share on other sites

Hi xwiggen,
T H A N K  you, that  solves my MAC address problems.

 

Regards
WolliK

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