I would like to get the MAC address of my ethernet port changed automatically at boot. (Because spoofing the card of another machine.)
At the moment I put the lines
Code:
ifdown eth0
/sbin/ifconfig eth0 hw ether 00:00:00:00:00:00
ifup eth0
into my
/etc/init.d/rc.local file. Which means that the network has to start and fail before the MAC address is set correctly.
Is there a better way of doing this?