What to do if IP configuration fails under centos

王林
Release: 2020-03-30 10:44:10
Original
3057 people have browsed it

What to do if IP configuration fails under centos

Problem:

After cloning the centos virtual machine, modifying the IP, mac, and uuid of the cloned machine failed.

The solution is as follows:

1. Execute the following command

# rm -f /etc/udev/rules.d/70-persistent-net.rules
Copy after login

(Recommended tutorial: centos tutorial)

2. Restart Virtual machine

# reboot
Copy after login

3. Reconfigure the ip address

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Copy after login

Delete the MACADDR and UUID options.

4. Restart the network service

# service network restart
Copy after login

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What to do if IP configuration fails under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template