Change the nic mac address

Source: Internet
Author: User
Change the MAC address of the NIC-Debian information of the Linux release edition. For more information, see. From: Debian China Community

In many cases, we have to update the MAC address of the NIC. For example, in school, there are many Campus Network Ports bound with the MAC address. If the NIC is changed, you have to apply for a new MAC address, many may ask how to update the MAC address in Debian. they can update the Registry in windows. once we get to the Linux platform, we are overwhelmed. In fact, it is very easy to update the MAC address under the Linux platform.

1. vim/etc/network/interfaces (select your favorite editing software)

2. Find the following sentence. In general, the first network card is called eth0 by default, which changes according to your actual situation.

Auto eth0
Iface eth0 inet dhcp

3. Add a line of MAC address you want to update

Auto eth0
Iface eth0 inet dhcp
Hwaddress ether 01: 02: 03: 04: 05: 06

4. Restart the network service.

/Etc/init. d/networking restart

Is it easy?

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.