Why MAC Adress of red0 changed automaticly?

Hi

Can anyone tell me why and for what reason the original MAC address of red0 was restored without my intervention?
And is it possible to change it permanently without it being restored automatically?
Or even better, is there a way to rotate the MAC address with random values?

best regards

Did you do a restore from a backup? That would replace the contents of the MAC addresses with what was in the backup.

Not with the code as it currently stands.

1 Like

No, I did nothing. I only see a new IP for red, then checked the system log and there were some entries, after I checked the MAC Address, it was automatically restored.

|08:27:54|dhcpcd[4327]|: red0: leased NE.WIP.NEW.IP for 86400 seconds|
| — | — | — |
|08:27:48|dhcpcd[4327]|: red0: probing address NE.WIP.NEW.IP/23|
|08:27:48|dhcpcd[4327]|: red0: offered NE.WIP.NEW.IP from OL.DIP.OLD.IP|
|08:27:48|dhcpcd[4327]|: red0: soliciting a DHCP lease|
|08:27:39|dhcpcd[4327]|: red0: NAK: from OL.DIP.OLD.IP|
|08:27:36|dhcpcd[4327]|: red0: rebinding lease of YE.STE.RDAY.IP|
|08:27:34|dhcpcd[4327]|: red0: IAID XX:XX:XX:XX|
|08:27:34|dhcpcd[4327]|: red0: carrier acquired|
|08:27:31|dhcpcd[4327]|: red0: waiting for carrier|
|08:27:31|dhcpcd[4327]|: DUID XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX|
|08:27:31|dhcpcd[4324]|: dhcpcd-10.0.8 starting|

Is the replacement MAC address you defined still shown in the WUI page Network - Assign MAC-Address or is the entry now blank?

No i changed this with

ifconfig red0 hw ether XX:XX:XX:XX:XX:XX:

Well that is the reason why then.

Ipfire uses the Assign MAC-Address WUI page to know that you want an alternative MAC Address.

If you just manually change the ifconfig then when your red IP lease time is up then the network update code will accept the new IP and set the mac address to the physical value unless there is a replacement value defined in the /var/ipfire/mac/settings file.

2 Likes