To Change the Ethernet (MAC) Address
Permanently
This post is to describe, How to change the Ethernet address
of a LINUX or UNIX machine permanently so that it does not change even after
REBOOT. Follow the following steps to change your machine’s Ethernet (MAC)
address permanently-
1. Check that if there exists a file names /etc/rc.local , if the file exists then copy the following code to the end of this file
à ifconfig eth0 down
ifconfig eth0 hw ether 00:11:22:33:44:55
ifconfig eth0 up
2 In
above lines change eth0 with the interface , of which you want to change the Ethernet
address and change 00:11:22:33:44:55 with your desired Ethernet (MAC) address. And REBOOT.
3 If the file /etc/rc.local does not exist then
search for the file /etc/init.d/boot.local, if this file also does not exist then
create a file under /etc/init.d and copy the following code to the end of the
file
à ifconfig
eth0 down
ifconfig eth0 hw ether
00:11:22:33:44:55
ifconfig eth0 up
4 In
above lines change eth0 with the interface , of which you want to change the Ethernet
address and change 00:11:22:33:44:55 with your desired Ethernet (MAC) address. And REBOOT.