home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 24,977 of 26,127   
   Pancho to Lars Poulsen   
   Re: How do I get my Pi4 (Fedora) to use    
   16 Sep 24 08:12:58   
   
   From: Pancho.Jones@proton.me   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca