CentOS network startup error, centos network error

Source: Internet
Author: User

CentOS network startup error, centos network error
I am using a centos virtual machine. In that environment, there is a dhcp service. It was used well, but the following error suddenly occurred: Error: determining IP information for eth0... failed; no link present. check cable? At first, I thought it was a network cable disconnection. The result is good. Later, I went to Baidu and google.

Getting a DHCP Address in a Red Hat Linux 9.0 Virtual Machine
When a Red Hat Linux 9.0 guest operating system tries to get a DHCP address, the attempt may fail with an error message that states the link is down. On ESX Server, this happens only if you are using the vlance driver for your network connection.
To work around this problem, become root (su -) and use a text editor to edit the following files in the guest operating system. If only one of these files exist, make the change for that file only.
/etc/sysconfig/network-scripts/ifcfg-eth[n]
/etc/sysconfig/networking/devices/ifcfg-eth[n]
In both cases, [n] is the number of the Ethernet adapter — for example, eth0.
Add the following section to each of these two files:
check_link_down () {
return 1;
}
Then run the command ifup eth[n] (where [n] is the number of the Ethernet adapter) or restart the guest operating system.


As a result, I tried it, but the error changed to the following error: determining IP information for eth0... failed;
Later I thought about modifying the ifcfg-eth0, the original dhcp changed to static, the entire configuration changed to static, and then restart the network, you can find it.


Centos system startup Error

This is because you didn't set the nis server, but started the nis
You can turn off the startup Item
Enter the startup item on the grub interface, and add single or 1 to enter the single user
Chkconfig -- list | grep ypbind
Check whether 345 is on. If yes, change it to off.
Chkconfig -- level 345 ypbind off
Then restart
Of course, you can skip this step if you don't change it.

Linux centos startup Error

You entered the character mode, but you are a little surprised. 4-unused. What is the mode? It is not applicable... Linux has a total of six running levels .. 6 is the reboot Mode
; You can enter the single-user mode and change you back...


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.