I want to set a specific ethernet MAC address for an interface using UDEV rules. I have the following rule:
SUBSYSTEM=="net", ACTION=="add", ATTRS{serial}=="50B123", ATTR{address}="00:22:33:44:55:AA", NAME="yolo0"
The rule matches and the interface is renamed to "yolo0" however the hw ether address remains unchanged from the one pre-set by the manufacturer. I can change the mac address manually of course using:
ifconfig yolo0 hw ether ..00:22:33:44:55:AA