Use this search engine or labels at left pane to find topics

Friday, May 28, 2010

Changing MAC address of LAN card in Ubuntu

Changing MAC address of LAN card in Ubuntu may be necessary under certain conditions. By changing MAC address of LAN card in Ubuntu you can access the network that recognize computers through their MAC address. Changing MAC address of LAN card in Ubuntu is easy. But the easiest way is temporary also. There are several ways that you can change MAC address of LAN card in Ubuntu. I am discussing few of them.

First method:

This is the easiest of the methods for changing MAC address of LAN card in Ubuntu. But you have to do it every time you reboot.
Go to the terminal and write (it will turn off your card and change MAC address):

sudo ifconfig eth0 down hw ether XX:XX:XX:XX:XX:XX

Here X will be replaced by your desired MAC number.

Then write in the terminal (it will start your card again):

sudo ifconfig eth0 up

Changing MAC address of LAN card in Ubuntu is done (but temporarily).




Second method:

In this method, you will need to edit 'interfaces' file.
For changing MAC address of LAN card in Ubuntu by this method, you'll have to go to terminal and write:

sudo gedit /etc/network/interfaces

And paste in this file the following lines (I think the first two lines are already there):

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hwaddress ether XX:XX:XX:XX:XX:XX


Again X would be replaced by the MAC numbers of your LAN card.




Third method:

I have tried this and I know this works for changing MAC address of LAN card in Ubuntu.
I have got this from another website.

Open terminal and type as follow:

$ ifconfig

$ cd /etc/init.d

$ sudo nano ChangeMAC

The editing area is opened for editing. Now fill configuration file with new MAC Address.

sudo ifconfig eth1 down
sudo ifconfig eth1 hw ether xx:xx:xx:xx:xx:xx
sudo ifconfig eth1 up
sudo /etc/init.d/networking stop
sudo /etc/ini.d/networking restart

Save and close the file

Apply configuration file.

$ sudo chmod +x ChangeMAC

$ sudo update-rc.d ChangeMAC defaults

Restart machine.
That should be enough for changing MAC address of LAN card in Ubuntu.


To know more about changing MAC address in other operating softwares you can visit this website

To know more about MAC address you can go to this website also.


Hope you find the information helpful and enjoy changing MAC address of LAN card in Ubuntu.

Sunday, May 2, 2010

Ubuntu 10.04 network problem

I downloaded desktop version of Ubuntu 10.04 and installed to my desktop. I could not connect to wired internet. I set up the TCP/IP from edit connection in the tab ‘IPV4’. Still could not connect to wired network.
Finally the wired network in Ubuntu 10.04 worked when I went to edit connection -> wired connections -> IPV6 and changed the setting in ‘Method’ to ‘Ignore’.
Now I am surfing the net from Ubuntu 10.04 using wired network.