You are reading a single comment by @NotThamesWater and its replies. Click here to read the full conversation.
  • Somehow, I have two RPi Zeroes with the same MAC address on the eth0 adapter

    I have had this problem more than once now, and it messes up routing on my network, with packets being sent randomly.

    In case anyone else has this problem:

    sudo apt-get install macchanger
    
    sudo vi /etc/systemd/system/changemac@.service
    
    [Unit]
    Description=changes mac for %I
    Wants=network.target
    Before=network.target
    BindsTo=sys-subsystem-net-devices-%i.device
    After=sys-subsystem-net-devices-%i.device
    
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/macchanger --mac=xx:xx:xx:xx:xx %I
    RemainAfterExit=yes
    
    [Install]
    WantedBy=multi-user.target
    
    sudo systemctl enable changemac@eth0.service
    
    sudo reboot
    

    (Where eth0 is your adapter)

About