Change 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
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/
#!/bin/bash

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


Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

2 comments:

madin said...

replica Louboutin uk Created in 1993, replica men ankle boots Christian Louboutin’s signature red-bottom heels remain the fashion world’s most stylish stilettos. Level up your shoe collection for less with unbeatable Christian Louboutin sales, where you’ll find alluring Louboutin heels and unique Louboutin shoes in your perfect size.

madin said...

replica rolex lady datejust watches
replica rolex milgauss watches
replica rolex oyster perpetual watches
replica rolex sea dweller watches
replica rolex sky dweller watches
replica rolex submariner watches
replica rolex yacht master watches
replica rolex yacht master ii watches
replica omega 1957 limited edition watches
replica omega aquaterra watches

Post a Comment

Popular Posts