Linux

Categorized | Hardware, Networking

Change your MAC address in Linux

If you wish to change your MAC address in Linux, all you have to do is bring the interface down then use the hw ether switch:

ifconfig eth0 down
ifconfig eth0 hw ether 02:01:02:03:04:08
ifconfig eth0 up

Author Profile

T4L ;

Other posts by T4L

Author's web site



Are you satisfied with this blog?
Why not subscribe our RSS Feed? you will always get the latest post.


1 Comment

  1. stardust

    nice ;) but if you want your pc to change its MAC address on boot add that to a script in /etc/init.d/ folder, and also add symbolic link(ln) to /etc/rc2.d, /etc/rc3.d, /etc/rc4.d, /etc/rc5.d which refers to the script in /init.d/

    script:

    #!/bin/bash

    ifconfig eth0 down
    ifconfig eth0 hw ether 02:01:02:03:04:08
    ifconfig eth0 up
    /etc/init.d/networking restart

    1

1 Trackback(s)

  1. 26 09 2009 : «? ? Ubuntu» » ??? ???????? MAC-????? ? Linux

Leave A Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>