How to Change the MAC address?

Published: 08th January 2010
Views: N/A

Solution 1:

Please change the "/etc/sysconfig/network-scripts/ifcfg-eth0" and input a line "MACADDR=xx:xx:xx:xx:xx:xx".

If there still exits the problem, please change some relative points of the "/etc/sysconfig/networking/devices/ifcfg-eth0" or you can directly delete the this file.

Solution 2:

At first please establish a shell script named "hwchang" under /etc/rc.d/init, the contents are as follows:#!/bin/sh ifconfig eth0 down ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx ifconfig eth0 up.

Please save it and the enforce the chmod a+x hwchang. Please creat a link file under /etc/rc.d/rc5.d/ and use the command "ln -s /etc/rc.d/init.d/hwchang k05hwchang".

Run the Start menu and find out the system->sysV init. Under the runlevel5, please cut the "hwchang" and paste it to the start line. You should pay attention that the its priority level should be before the network, that means the number should be samller.

Solution 3:

There is another solution: Please start the network before powering on. At the same time, please input the following words:"ifconfig eth0 down ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx ifconfig eth0 up /etc/rc.d/init.d/network start" into the /etc/rc.d/rd.local.

Solution 4:

The solution to change the MAC address on Win2000 is: open the Regedit.exe , and found out the HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlClass{4D36E972-E325-11CE-BFC1-08002BE10318} subkey. Then search for the DriverDesc and name it as NetworkAddress under the next character string of 0000 subkey. The key value is the changed MAC address which is the same as the number. Please go on adding the the character string named ParamDesc under NetworkAddress primary key. The purpose is to describe the NetworkAddress and its value can be MAC address. Therefore when you open the network property, you will find out the Advanced Settings after double clicking the network card. There is a MAC address under Advanced Settings, you can change the MAC address here. You need to restart your PC after changing.

Solution 5:

Step 1: Change /etc/rc.local and /etc/rc.sysinit, please add the information below among these two files:

/sbin/ifconfig eth0 down

/sbin/ifconfig eth0 hw ether MACaddress(##:##:##:##:##:##)

/sbin/ifconfig eth0 up

Step 2: Add MACADDR=##:##:##:##:##:## into the file of "/etc/sysconfig/network-scripts/ifcfg-eth0" and change HWADDR= to be the MAC address you want. Please note the case sensitive.

Solution 6:

You can also change the network file under/etc/rc.d/init.d, add the mac="**:**:**:**:**:**"( among the double quotation marks, that is your MAC address) ifdown eth0 ifconfig eth0 hw ether $mac etho "MAC address has been switched to $mac" on the forty line.

Registry Winner is an advanced multi-language registry cleaner in pc diagnosis and repair. As an excellent registry cleaner, it can do a complete scan of the pc errors such as system slowdown, freezing, crashing and deadlock. Safely optimize the speed of the system and set your PC in a fantastic performance! Click Registry Winner here to download and have a try. We will never let you be disappointed!

Report this article Ask About This Article

More to Explore