Saturday, August 15, 2009

Change MAC address in Linux

If you need to change MAC address under linux, you can try shell script commands to do.

1.Bring down your ethernet adaptor(eth0):
/sbin/ifconfig eth0 down

2.Enter new MAC address
/sbin/ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE

3.Bring up the interface
/sbin/ifconfig eth0 up

Have a nice day with linux!

No comments:

Post a Comment