Roadrunner technical documentation Buy

Fix the MAC address of RoadRunner

Unfortunately RoadRunner doesn't have a its own unique hardware MAC address on port eth0 so you have to provide in a software manner. This article explains how to set the MAC address using maccharger utility

GNU MAC Changer is an utility that makes the maniputation of MAC addresses of network interfaces easier.

Install maccharger o Raspbian distribution:

sudo apt update
sudo apt install macchanger

Select No to "Change MAC automatically?" answer during the installation.

Create a systemd file called setmac@eth0.service

sudo nano /lib/systemd/system/setmac@eth0.service

insert on it this content using the MAC address you need to set on the eth0 interface (use https://miniwebtool.com/mac-address-generator/ to generate a random MAC address):

[Unit]
Description=Set the MAC address 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 -m b2:aa:0e:56:ed:f7 %I
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Enable the systemd service at startup:

sudo systemctl daemon-reload
sudo systemctl enable setmac@eth0.service

then reboot:

sudo reboot

Links

Related products

RoadRunner D2

Features Index Buy

Low-power Linux System On Module
  • CPU Microchip SAMA5D27
  • Cortex A5 @ 500 MHz
  • Low power consumption:
    Suspend to RAM mode 10mW
    Full speed: 396mW
  • Debian, Buildroot and Yocto Linux
  • Fully open source drivers
H10

Features Index Buy

Single Board Computer based on RoadRunner Linux SOM (Included)
  • Low power consumption
  • Two USB Host 2.0 ports (one configurable as USB client on the USB-C connector)
  • One 10/100 Mbit/s Lan port
  • 2 Acme Sensor ports
  • Huge set of GPIOS, SPI, I2C and serial lines

Features Buy

Evaluation board for RoadRunner SOM
  • All the circuitries you need to test the RoadRunner SOM
  • USB host, USB device, Ethernet port, MicroSD socket
  • Test points for power consumption measurements
  • All the Roadrunner signals exposed on 2.54mm pitch pins
  • On-board supercap for RTC and backup memory circuit

Home page Roadrunner technical documentation Buy