I have few computers each with same ethernet MAC address. I want to change ethernet MAC address on each computer as soon as network card is detected so I do not have any conflicts in the network. My system is using nonstandard linux with systemd. Is it possible to configure MAC address using systemd and standard linux commands?
Use the config line
HWADDR=AA:BB:CC:DD:EE:FF in the machine's
/etc/sysconfig/network-scripts/ifcfg-eth0 config file, as such:
DEVICE=eth0 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes NM_CONTROLLED=no HWADDR=AA:BB:CC:DD:EE:FF IPADDR=10.2.3.4 NETMASK=255.255.255.0 GATEWAY=10.2.3.254 DNS1=188.8.131.52 DNS2=184.108.40.206 USERCTL=no