• Re: How do I get my Pi4 (Fedora) to use a real and stable MAC address?

    From Lars Poulsen@3:770/3 to The Natural Philosopher on Mon Sep 16 15:30:42 2024
    On 9/15/2024 9:36 PM, The Natural Philosopher wrote:
    Unfortunately you are probably the only one here that is using RedHat on
    a Pi.

    You may well be right about that.

    AFAIK, ethernet defaults to 'one permanent MAC address' - its only wifi
    that tends to switch around for security in public wifi spaces.

    Have you actually checked to see if you are getting ethernet randomisation? ifconfig -a will display it

    Thank you for an actually useful suggestion. I had forgotten to check
    that and just assumed that was the cause of a change in IP address.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Lars Poulsen on Tue Sep 17 10:44:34 2024
    On 16/09/2024 23:30, Lars Poulsen wrote:
    On 9/15/2024 9:36 PM, The Natural Philosopher wrote:
    Unfortunately you are probably the only one here that is using RedHat
    on a Pi.

    You may well be right about that.

    AFAIK, ethernet defaults to 'one permanent MAC address' - its only
    wifi that tends to switch around for security in public wifi spaces.

    Have you actually checked to see if you are getting ethernet
    randomisation?
    ifconfig -a will display it

    Thank you for an actually useful suggestion. I had forgotten to check
    that and just assumed that was the cause of a change in IP address.



    Hang on a minute.... IP address or MAC address?

    IP address may change any time you connect to the DHCP server (if you
    are using DHCP).

    ifconfig -a
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    *inet 192.168.0.101* netmask 255.255.255.0 broadcast 192.168.0.255
    inet6 fe80::9a2:3187:4600:cfc1 prefixlen 64 scopeid 0x20<link>
    *ether d8:3a:dd:85:22:b1* txqueuelen 1000 (Ethernet)
    RX packets 335547 bytes 39007037 (37.2 MiB)
    RX errors 0 dropped 158 overruns 0 frame 0
    TX packets 348598 bytes 256465720 (244.5 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    This is a statically configured *IP address* on a Pi 4B
    I assume the Ethernet *MAC* address is always the same.

    Looking up the MAC address online:
    Result:
    MAC Address Prefix Manufacturer
    D83ADD Raspberry Pi Trading Ltd

    --
    The lifetime of any political organisation is about three years before
    its been subverted by the people it tried to warn you about.

    Anon.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Lars Poulsen@3:770/3 to The Natural Philosopher on Tue Sep 17 19:24:30 2024
    On 9/17/2024 2:44 AM, The Natural Philosopher wrote:
    On 16/09/2024 23:30, Lars Poulsen wrote:
    On 9/15/2024 9:36 PM, The Natural Philosopher wrote:
    Unfortunately you are probably the only one here that is using RedHat
    on a Pi.

    You may well be right about that.

    AFAIK, ethernet defaults to 'one permanent MAC address' - its only
    wifi that tends to switch around for security in public wifi spaces.

    Have you actually checked to see if you are getting ethernet
    randomisation?
    ifconfig -a will display it

    Thank you for an actually useful suggestion. I had forgotten to check
    that and just assumed that was the cause of a change in IP address.



    Hang on a minute.... IP address or MAC address?

    IP address may change any time you connect to the DHCP server (if you
    are using DHCP).

    ifconfig -a
    eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
           *inet 192.168.0.101*  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::9a2:3187:4600:cfc1  prefixlen 64  scopeid 0x20<link>
           *ether d8:3a:dd:85:22:b1*  txqueuelen 1000  (Ethernet)
            RX packets 335547  bytes 39007037 (37.2 MiB)
            RX errors 0  dropped 158  overruns 0  frame 0
            TX packets 348598  bytes 256465720 (244.5 MiB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    This is a statically configured *IP address* on a Pi 4B
    I assume the Ethernet *MAC* address is always the same.

    Looking up the MAC address online:
    Result:
    MAC Address Prefix    Manufacturer
    D83ADD                Raspberry Pi Trading Ltd

    My DHCP server on that network has a list of known hosts (known by their
    MAX address) and what their IP address should be. Hence my annoyance
    when employees with iPhones have randomized MAC addresses.

    The "hobby" RPI4 in my "work" network was acquired in the hope that it
    may grow into being able to become an edge router for my home network.

    The edge router on my work network is a very nice headless AMD64 with 4
    Gigabit ethernet ports running Fedora with iptables, OpenVPN and lots of logging to keep the subnets behind it safe.

    Considering the time I have spent on my RPI experiments, the savings on
    the hardware have been a false economy.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Tauno Voipio@3:770/3 to Lars Poulsen on Wed Sep 18 18:52:08 2024
    On 18.9.2024 5.24, Lars Poulsen wrote:

    --- discussion snopped ---

    My DHCP server on that network has a list of known hosts (known by their
    MAX address) and what their IP address should be. Hence my annoyance
    when employees with iPhones have randomized MAC addresses.

    The randomised MAC addresses of iPhones are from the 'locally
    administered' MAC address ranges. The non-local non-multicast
    addresses have a first octet of x0, x4, x8 or xc, where x is
    any hex digit.

    The locally administered addresses have a first octet of x2, x6,
    xa or xe (like 76:f9:76:17:f6:4d, from my iPhone).

    The iPhone MAC address fudging can be turned on/off for each network separately, from the 'i' menu of the WiFi connection. Just tell your
    folks to turn off the fudging for your network or stay outside.

    --

    -TV

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Lawrence D'Oliveiro@3:770/3 to Lars Poulsen on Thu Sep 19 01:24:26 2024
    On Tue, 17 Sep 2024 19:24:31 -0700, Lars Poulsen wrote:

    My DHCP server on that network has a list of known hosts (known by their
    MAX address) and what their IP address should be. Hence my annoyance
    when employees with iPhones have randomized MAC addresses.

    But surely those employees have individual accounts in your company authentication database, do they not: so could you not assign them IP
    addresses associated with those particular accounts?

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)