Deutsch   English   Français   Italiano  
<vc8lpq$2n8r2$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feeds.phibee-telecom.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Pancho <Pancho.Jones@proton.me>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: How do I get my Pi4 (Fedora) to use a real and stable MAC
 address?
Date: Mon, 16 Sep 2024 08:12:58 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <vc8lpq$2n8r2$1@dont-email.me>
References: <vc1lhr$u4m4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 16 Sep 2024 09:12:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="98f672bfbd1071dcc6b222ae091e9d22";
	logging-data="2859874"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18v9aV4s0GJBe8OH4Qz7jW4N/l9o1I7l7k="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gdgQzcGAu/eftfVtnZ2n2Wqcf8I=
In-Reply-To: <vc1lhr$u4m4$1@dont-email.me>
Content-Language: en-GB
Bytes: 1894

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