Solution: The eth0 Nic cannot be automatically loaded, and the NIC configuration information is not in network-scripts,

Source: Internet
Author: User

Solution: The eth0 Nic cannot be automatically loaded, and the NIC configuration information is not in network-scripts,

Problem scenario: the eth0 Nic cannot be automatically loaded, and the NIC configuration information is not in network-scripts

Solution:

1 vi/etc/rc. d/rc. loacl

Last join

Ifup eth0

2. reboot

3 Test

Change the ip address and check whether the service network restart is valid

Or check whether the NIC is connected in the desktop environment.

4 ifconfig-

Check whether eth0 information has changed


If it is changed, it means it takes effect.


This solution has passed the local test. In your centos6.2 or later versions, the vm Nic cannot be automatically connected after the physical ip address changes.


Prohibit copying, reprinting, and taking photos ---------- linux -- luo


Use vi/etc/sysconfig/network-scripts/ifcfg-eth0 to open the NIC configuration file add IPADDR, and you cannot change the IP

No!
If it is a static IP address
BOOTPROTO = static

Enter service network restart

Linux Nic eth0 cannot be started

Vim/etc/sysconfig/network-scripts/ifcfg-eth0
Open and check your configuration
DEVICE = eth0
BOOTPROTO = yes
ONBOOT = yes
NETMASK = 255.255.255.0
DNS2 = 222.85.85.85
TYPE = Ethernet
IPADDR = 192.168.1.62
GATEWAY = 192.168.1.1
DNS1 = 222.88.88.88

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.