Modify MAC address after virtual machine cloning CentOS7.4

Source: Internet
Author: User
After the virtual machine clones the CentOS host, the hostname and MAC address are consistent with the previous host, and when it causes the clone machine to fail to obtain the IP address, the following is resolved:
1. View version
Command: Cat/etc/redhat-release

2. View the current host name
Command: Uname-a

3, modify the host name, modify the configuration file (can not modify the hostname, LAN does not affect IP access)
Command: Vi/etc/hostname save exit, restart effective

4, check the current network status, not automatically get the IP address, MAC address is also consistent with the onstage host.
Command: IP addr

5, delete the/etc/udev/rules.d/70-persistent-net.rules file (this file determines the network card and MAC address binding), restart the host.
Command: Rm/etc/udev/rules.d/70-persistent-net.rules
6, the MAC address has been automatically obtained, and automatically get to the IP

Modify MAC address after virtual machine cloning CentOS7.4

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.