lately i have shifted to new location so is my machine. new location new net connection but the configuration process was different. previously I used connection with static IP but this time i have got to use dynamic IP assigned by DHCP. DHCP server identifies my PC using my MAC address. Up to this point I was fine but the problem was I could not use the physical address of my NIC rather I have to use the one provided by the connection provider. So i had to change the MAC address and this was the problem as I did not know how to change the MAC address in Linux. The technician come along, advised me that i would not be able to use this connection in Linux platform. This sounded real ridiculous. After doing little googling and skimming through ref book, I found the solution. The solution is not that difficult.
use ifconfig utility:
MAC address can be changed very easily using ifconfig.Before issuing command, be root user.Then issue the following command on the terminal:
#/sbin/ifconfig eth0 down hw ether address
here it is assumed that ifconfig is in the /sbin directory.
eth0 is the name of the interface/NIC which address is to be changed.
down means the NIC is to be shutdown before changing address.
hw ether means hardware address class is ether(which indicates ethernet).
address is the address which will used as the new mac.
After the successful execution of the command. start the NIC again using the command:
#/sbin/ifconfig eth0 up
and that is all I needed.
No comments:
Post a Comment