Linux network device cannot be started

Source: Internet
Author: User
Tags nginx server nginx load balancing
A CentOS Operating system was installed to test Nginx server load balancer before linux network devices could not be started. My colleague once upgraded the VM and recently tried to test KeepAlived on it. Therefore, the service cannot be connected. I started to find out the cause. I have been dumbly changing the ifcf linux network device and cannot start the problem. I installed a CentOS Operating system to test Nginx load balancing. it was useless for a long time. My colleague once upgraded the VM and recently tried to test KeepAlived on it. Therefore, the service cannot be connected. Start to find the cause, has been silly to change the ifcfg-eth0 configuration file, restart the network does not always prompt to find the device eth0, so use ifconfig-a command to view all the current network devices, it is found that eth0 does not exist, but an eth1 exists. is the name changed? No matter how much it is, reconfigure it. As a result, I directly modified the ifcfg-eth0 configuration, changed the device to eth1, tried to restart the network, and encountered an error again. At this time, tell me that the mac address is incorrect. you have to retrieve the mac address of eth1 again. Open cat/etc/udev/rules. d/70-persistent-net.rules remember the mac address of eth1, edit the ifcfg-eth0 again, change the mac address inside and restart network service network restart !!
Related Article

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.