Saturday, June 27, 2009

MAC Address fiddling

Changing the MAC address of your Linux workstation is an incredibly easy task (in this example, from :a9 to :aa)...

  1. Determine the existing MAC address of the interface to be changed:
    $ sudo ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr 00:24:2c:e3:c8:a9

  2. Bring the interface down:
    $ sudo ifconfig wlan0 down

  3. Set the new MAC address:
    $ sudo ifconfig wlan0 hw ether 00:24:2c:e3:c8:aa

  4. Bring the interface back online:
    $ sudo ifconfig wlan0 up

  5. Verify the change took:
    $ sudo ifconfig wlan0 | grep HWaddr
    wlan0 Link encap:Ethernet HWaddr 00:24:2c:e3:c8:aa


No comments:

Post a Comment