Thursday, May 15, 2008

Changing MAC ( Physical Address ) in ubuntu

I have tried the following line in ubuntu, and did it with the ‘ifconfig’ utility (you might have to download this by sudo apt-get install ifconfig. The following line sets the mac-address to ‘111122223344′.

sudo ifconfig eth0 hw ether 111122223344

My ethernet adapter was numbered eth0. Check your ether adapter no by simply writing ‘ifconfig’ and see the default number assigned to it.

This change, however, is not permanent. With a reboot, you will need to run this command again for mac address adjustment.

No comments: