Friday, January 7, 2011

How to change MAC address of a network interface in Linux

Type the following commands with sudo prefix or under superuser/root:

ifconfig eth0 down
ifconfig eth0 hw ether 00:24:21:3e:05:ee 

ifconfig eth0 up 

eth0 – is hardware name of your first network interface.
00:24:21:3e:05:ee is new MAC address you’d like to apply to the NIC.

These commands should be added into startup scripts if you require them to appear after Linux system reboots.

No comments:

Post a Comment

There was an error in this gadget