In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article is a detailed introduction to "how to solve the problem of unable to access the Internet after cloning CentOS virtual machine". The content is detailed, the steps are clear, and the details are properly handled. I hope this article "how to solve the problem of unable to access the Internet after cloning CentOS virtual machine" can help you solve your doubts. Let's go deeper and learn new knowledge together with the ideas of the small editor.
I. Description of the problem
After virtual machine cloning, due to inconsistent network card information, it is impossible to access the Internet or fails to execute the "sertice network restart" command.
[root@lyy desktop]# ifconfig //View current NIC information [root@lyy desktop]# cd /etc/sysconfig/network-scripts //Enter NIC configuration file directory [root@lyy network-scripts]# ls //View NIC information in NIC configuration file
II. Cause analysis
Because of the cloned system, the system only modified the name of the virtual machine and mac, and added a line named eth1 to the/etc/udev/rules.d/70-persistent-net.rules file
III. Solutions
1. Modify the files/etc/udev/rules.d/70-persistent-net.rules and/etc/sysconfig/network-scripts/ifcfg-eth0 so that the device names and mac addresses in the two files correspond
The copy code is as follows:
[root@lyy ~]# gedit /etc/udev/rules.d/70-persistent-net.rules /etc/sysconfig/network-scripts/ifcfg-eth0
2. Save after modification, then restart the virtual machine, check the network card information again, and find that it is normal.
Read here, this article "CentOS virtual machine cloning can not solve the Internet" article has been introduced, want to master the knowledge points of this article also need to practice to understand, if you want to know more related content of the article, welcome to pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.