Friday, November 11, 2011

Change MAC address of an interaface in Mandriva

First I tried the command
ifconfig eth1 hw ether 00:01:02:03:04:05
and I got the following error

SIOCSIFHWADDR: Device or resource busy
Then I tried the following command
ifconfig eth1 down hw ether 00:01:02:03:04:05 
ifup eth1
and it worked!

I also updated the file /etc/iftab with the new MAC address for eth1. Otherwise the system will be confused after a reboot.

No comments: