How to modify the mac address

Source: Internet
Author: User

Dedicated refresh programs are available for NICs of different brands. You need to download corresponding refresh programs for Chip models.

Easily modify the nic mac address
The MAC address of the NIC is the physical address solidified in the nic eprom. It is a "ID card" of a nic, usually 48 bits. In common applications, there are many aspects related to the MAC address. For example, some software is bound to the MAC address, and the software cannot run without the MAC address. Or in the LAN, management personnel often bind the IP address to the MAC address of the client to facilitate management. In case the user's network card breaks down, after changing the network card, they must apply to the management personnel for changing the bound MAC address, this is troublesome. In this case, it is much easier to change the MAC address of the NIC. In fact, it is easy to modify the MAC address of the NIC. We can modify the MAC address of the NIC through software in the operating system, but the actual MAC address of the NIC remains unchanged, you can also use a tool to directly change the actual MAC address of the NIC.

I. Crossing the sea
1. Modify the Registry
Almost all Nic drivers can be called by the NdisReadNetworkAddress parameter to read a user-specified MAC address from the registry. When the driver determines that the MAC address is valid, it will program the MAC address to the hardware register, ignoring the fixed MAC address of the network card. We can achieve this by manually modifying the Windows registry.
Run the Windows Registry Editor under Winodws 98 and expand "HKEY_LOCAL_MACHINE \ System \ Current ControlSet \ Services \ Class \ Net ", the subkeys similar to "0000", "0001", and "0002" are displayed. Click the "0000" sub-key and search for the content of the "DriverDesc" key under the sub-key until you find the NIC registry information that is exactly the same as the target.
After the correct Nic is found, click "Edit/New/string" in the drop-down menu and the name of the string is "Networkaddress ", double-click the name of the newly created Networkaddress string to enter a value. Enter the new MAC address value you want to specify. The new MAC address should be a 12-digit hexadecimal number or letter with no "-", similar to a value like "000000000000" (note, in Windows 98 and Windows 2000/XP, the specific key value location is slightly different. You can find it through the search function ).
Add a string value named "ParamDesc" under "NetworkAddress", which is used as the description of "NetworkAddress". The value can be set to "MAC Address ". Modify the content you want to set .. In this way, we have successfully modified the MAC address of the NIC and restarted the computer.

2. Modify Nic attributes
Most NICs can change their MAC addresses by modifying the NIC attributes in the control panel. In "Device Manager", right-click the NIC icon to change the MAC address, and select the "properties/advanced" tab. In the "properties" area, you can see a project called "Network Address" or another similar name. Click it and click it at the bottom of the "value" on the right, enter the MAC address to be specified. You must enter 12 hexadecimal numbers or letters consecutively. Do not enter "-". After the system is restarted, the setting takes effect.

Ii. Pay-as-you-go
If you are using the RealTek RTL8139A/B/C/D chip Nic, there is a simpler way to modify the MAC address. The PG8139 software designed by RealTek can directly modify the MAC address of the RTL8139 series Nic, or even make the MAC address of the NIC different after each startup. The procedure is as follows:
Decompress pg8139.zip to a folder. Take the 8139C chip as an example. use NotePad to open 8139c in this directory. cfg file, modify 8139c. in the first line of the cfg file, change "NodeID" (NIC number) to the required new value. We recommend that you set the initial value to "00 E0 4C 00 01 ", note that at least one space is required for each two digits.

Save and enter the MS-DOS mode (note, in pure DOS mode), enter "pg8139/pci 8139c. cfg, and then press the Enter key. If the system prompts "Programming EEPROM is successful", the change is successful. Each time the PG8139 program runs successfully. in the cfg file, the system automatically adds the value of "NodeID" to 1, that is, the MAC address assigned to the NIC of the current workstation at the first run is "00 E0 4C 00 01 ", during the second operation, the system will automatically allocate "00 E0 4C 00 00 02". During the third operation, the system will automatically "00 E0 4C 00 03 "......, In this way, you can modify the MAC address of the NIC in batches. You do not need to modify the 8139c. cfg file again.
If the user's Nic is another version of RTL8139 chip, you only need to find the corresponding. cfg file to modify it.
In addition, there is an extreme way to clone the MAC address by burning the EEPROM of the NIC. However, this operation is highly risky and complicated. Even experienced users may encounter errors during the operation. We do not recommend this operation.
3. Learn from Dongfeng
If you are a Windows 2000/XP user, you can use the free MAC address to modify the software SMAC. After running SMAC, the list box in the window lists the network adapters that are currently working on the computer. After selecting the NIC to be modified, enter a new MAC address in the six input boxes below the list box, and click "Update MAC (modify MAC address)" on the right )", you can modify the MAC address.

There are many tools to modify the MAC address, but most of them only apply to Windows 2000/XP. We recommend that you use "Super Rabbit magic Settings" because it is not only easy to use, it is also valid in Windows 9x.
After the modification is complete, you can restart the system to make the settings take effect. There is also a simple way to restart the system, in the "Device Manager", select the network adapter icon, right-click, and select "Disable" (please pay attention to the operation, whether the status bar is "disabled "). Right-click the selected network adapter and choose enable from the shortcut menu ". In this way, the modified settings will take effect.

In linux:
Required
# Ifconfig eth0 down
Disable the NIC first
Use ifconfig eth0 hw ether 1234567890ab to make the change successful.
This is the case if you want to change it permanently.
Add these three sentences to/etc/rc. d/rc. local (you can also add the following three lines to/etc/init. d/network)
Ifconfig eth0 down
Ifconfig eth0 hw ether 1234567890ab
Ifconfig eth0 up

In addition:
How to change the MAC address in win2000:
Open the Registry Editor, find the HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ Class \ {4D36E972-E325-11CE-BFC1-08002BE10318} sub-key, and search for DriverDesc in the branches such as 0002, in the next day of the 0000 subkey, a string item is named NetworkAddress. The key value is set to the modified MAC address, which must be 12 consecutive hexadecimal numbers, such as 1234567890AB. Then, add a sub-key named NetworkAddress to NDI \ params under 0000, and add a string named default under the sub-key, with the key value as the modified MAC address, it is the same as the preceding value. Add a string named ParamDesc under the primary key of NetworkAddress. Its function is to define the description of the primary key of NetworkAddress, and its value can be "MAC address". In this way, the network attribute will be opened later, double-click the corresponding Nic and you will find an advanced setting. The option "MAC address" is sitting under it. Modify the MAC address here and restart it.
Windows: You can change the value of dosand 8139, and use pg8139.exe of realtek. for example, if it is an 8139c Nic, rewrite the 8139c. cfg file. The first line is the NIC mac.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.