12 February 2011

Change Mac Address in Linux


You can change your Mac address very easily in your Linux PC. You can change your mac address just 2 step. In first step you can be able identify your mac address and second address you can able change your mac address So let see how can we see the mac address and how can we change the mac address.

Step 1 : Identify the Mac address of Your LAN
1. Open Terminal window from Accessories .
2. Enter the command given bellow :
ifconfig 
3. Now you are already found your output. In out put you can see something like that eth0, if you use one card then you can see eth0 or if you use more then one card the you can see some thing like that eth1, eth2, eth3 . For example you can see the bellow picture.
In the terminal output look for something like that : HWaddr 00:01:02:03:04:05 . it is your mac address save it before close the window.

Step 2: Changing MAC address :
1. Go to the terminal - Applications > Accessories > Terminal .
2.Input the bellow command in the window : 
ifconfig eth0 down
ifconfig eth0 hw ether 00:01:02:03:04:05
ifconfig eth0 up
 
In the second line input your mac address .
3. In Terminal input the bellow command :
sudo gedit /etc/network/interfaces
A new text editor gadget will open. You see the bellow code in the text editor
auto eth0
iface eth0 inet static

address 111.222.333.444
gateway 555.666.777.888
netmask 255.255.255.0
if your connection is not Static then you will see the bellow code :
auto eth0
iface eth0 inet dhcp

address 111.222.333.444
gateway 555.666.777.888
netmask 255.255.255.0
Now enter your mac address in the second line. After entering the mac address in text editor pad your code will be like that :
auto eth0
iface eth0 inet static hwaddress ether 01:02:03:04:05:06

address 111.222.333.444
gateway 555.666.777.888
netmask 255.255.255.0
or
auto eth0
iface eth0 inet dhcp hwaddress ether 00:01:02:03:04:05
 Now 00:01:02:03:04:05 will be replaced by your mac address. After changing this 00:01:02:03:04:05 to your mac address save and close the text pad.
4. Now in Terminal enter the command given bellow:
sudo /etc/init.d/networking restart
 Now your done. If any cause you want to go back to your old mac address then remove the few extra line you already added in text editor gadit.

Get Free Updates:
Note : You will find a confirmation link in your inbox or junk folder

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More