Update MAC address when Debian is installed

Source: Internet
Author: User
When Debian is installed, update the MAC address-Linux Release Technology-Debian information. The following is a detailed description. Source: http://www.debianproject.org/

In the previous article, we learned how to update the MAC address in the Debian system. Now let's talk about how to update the MAC address when installing Debian.

For example, the default MAC address of the NIC is 01: 02: 03: 04: 05: 06. We need to update it to 06: 05: 04: 03: 02: 01. The ifconfig command is unavailable during installation, but we can update it according to other methods.

Select advanced options before installing the Debian system, and then select Expert install.

Next, install the tool as usual until you are prompted to check the network hardware.

Enter ip link show eth0

At this time, the system prompts the information

Eth0: mtu 1500 qdisc noop qlen 1000
Link/ether 01: 02: 03: 04: 05: 06 brd ff: ff

In this way, we can change the MAC address at this time.

Ip link set eth0 addr 06: 05: 04: 03: 02: 01

To check whether the ip link show eth0 is successfully changed, run the ip link show eth0 command again.

Select exit to continue installation

In this way, we can verify the installation through the MAC address, and access the source to install and update Debian normally.

Note that this MAC address is temporary. if the system is restarted, it will be changed back to the original unchanged MAC address.

If you need to update it permanently, you must change it in/etc/network/interfaces.

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.