I need to configure a network interface permanently eth1 and to change the MAC address with the specified format : AA:BB:CC:DD:x:y
, before the interface is up.
A=1;B=2;C=2;D=2;x=6;y=8
.
I wrote in /etc/network/interfaces
:
auto eth1
iface eth1 inet static
address 10.6.8.200
netmask 255.255.255.128
gateway 10.6.8.129
pre-up ifconfig eth1 hw ether 1A:2B:2C:2D:6:8
I don't know what I'm doing wrong.