To do so you need to add a special script file to
/etc/network/if-pre-up.d/
Do not forget to make this file executable
chmod a+x init
the script name is init
and the contain is
#!/bin/sh
ifconfig eth0 down
ifconfig eth0 hw ether 00:09:34:3B:4A:xx # you can put here your MAC address
ifconfig eth0 up
No comments:
Post a Comment