Change MAC address in Ubuntu temporarily

by Noman Muhammad

i have to change my MAC address in Ubuntu for temporary basis. so i do the following in the terminal:

ifconfig eth0 down
ifconfig eth0 hw ether 01:02:03:04:05:06
ifconfig eth0 up
first command will down the network, then 2nd command change my MAC [ 01:02:03:04:05:06 is replaced by my desired MAC address] and then 3rd one again up my network.
to see the change type ifconfig in the terminal and press Enter. changed MAC address will be shown ...
simple ..... huh ;)

but remember there may be easier solution then that i dont know :(

This entry was posted on Tuesday, February 10, 2009 and is filed under , , . You can leave a response and follow any responses to this entry through the Subscribe to: Post Comments (Atom) .