Page 1 of 1

Ubuntu image has new MAC address every time.

Posted: 2024-01-27 23:46
by npelov
is there a way to make ubuntu remember the mac address? I used clonned mac in NetworkManager:

Code: Select all

Cloned MAC address DA:C6:CE:17:BC:ED_______________________
and it works, but I noticed in buildroot there is ethaddr.txt file in /userdata that contains the mac. I tried copying this file to ubuntu /userdata, but it didn't work.

Re: Ubuntu image has new MAC address every time.

Posted: 2024-01-29 3:15
by Eng38
Hello,

To manually configure your wired interface, you would edit the "/etc/network/interfaces" file and add the appropriate configuration for your wired interface. Here are the steps to follow:

1. Open the network interface configuration file:

Code: Select all

sudo nano /etc/network/interfaces
2. Within the file, append the following content for your wired interface (eth0):

Code: Select all

auto eth0
iface eth0 inet dhcp
hwaddress ether 1a:cf:50:33:5f:92
Please note that the "hwaddress" line specifies the MAC address of your Ethernet card; replace it with the actual MAC address of your device.
3. After saving the changes, restart the system.