Linux network device fails to start problem handling

Source: Internet
Author: User

A CentOS operating system was previously installed to test the Nginx load Balancer, which later was useless. Once a colleague upgraded the VM and recently tried to test the keepalived on it, the service was not connected.

Start looking for reasons, have been silly to change the Ifcfg-eth0 configuration file, restart the network is always prompt

650) this.width=650; "Src=" http://img.blog.csdn.net/20130913113318453?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvaxv4aw4=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Southeast "style=" Border:none; "/>

Unable to find the device eth0, so use the ifconfig-a command to see all the current network devices, found that there is no eth0, but indeed more out of a eth1, the name has changed? No matter how much, re-match it.

So I changed the configuration of the Ifcfg-eth0 directly to change the device to eth1, trying to restart the network, and then something went wrong.

650) this.width=650; "Src=" http://img.blog.csdn.net/20130913113733578?watermark/2/text/ ahr0cdovl2jsb2cuy3nkbi5uzxqvaxv4aw4=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/ Southeast "style=" Border:none; "/>

This time tell me the MAC address is wrong, you have to retrieve Eth1 MAC address.

Open Cat/etc/udev/rules.d/70-persistent-net.rules

Remember the MAC address of eth1 and re-edit the Ifcfg-eth0 to replace the MAC address inside

Restart Network

Service Network restart

Get!!


Linux network device fails to start problem handling

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.