Sujet : Re: How do I get my Pi4 (Fedora) to use a real and stable MAC address?
De : Pancho.Jones (at) *nospam* proton.me (Pancho)
Groupes : comp.sys.raspberry-piDate : 16. Sep 2024, 08:12:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc8lpq$2n8r2$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 9/13/24 16:25, Lars Poulsen wrote:
The current fad is to use random MAC addresses. I want anything that is "infrastructure" to have unique and stable MAC addresses, so that DHCP can give them stable IP addresses. My Pi4 runs Fedora (which is very stable on it except for the GUI), but it seems to always come up with randomized MAC addresses. Does it not HAVE a hardware MAC address?
And if it has one, where do I tell Fedora to use it?
This what I use, when NIC MAC is changed by a new install.
#!/bin/sh
UUID=$(nmcli -t con show | grep Wired | cut -d: -f2)
nmcli connection down $UUID
nmcli connection modify $UUID ethernet.cloned-mac-address "xx:xx:xx:xx:xx:xx" #put here your preferred MAC address
nmcli connection modify $UUID -ethernet.mac-address ""
nmcli connection up $UUID