The error message "Devicedoesnotsee" is displayed when eth0 is configured for Centos6 in VirtualBox... solve the fault and restart the network: servicenetworkrestart receives the following message: Shuttingdownloopbackinsterface: [OK] bringuploopbackinst... in VirtualBox, when Centos6 is configured with eth0, the system prompts Device does not see... solution
Fault symptom
Restart the network:
Service network restart
The following message is displayed:
Shutting down loopback insterface: [OK]
Bringing up loopback insterface: [OK]
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [FAILED]
Problem Solving Process
Run the ifconfig command to view the Nic device:
Ifconfig-
I got the following information:
Only eth1 appears, but eth0 does not appear,
Then, by viewing the Nic configuration of the VM, we can get the mac address of the NIC:
Then, view the Nic configuration in the/etc/sysconfig/network-scripts/folder:
Ll/etc/sysconfig/network-scripts/| grep "ifcfg -"
I found that I could get information about the ifcfg-eth0:
Try rename the ifcfg-eth0 to the ifcfg-eth1, change the DEVICE parameter value in the file from eth0 to eth1, and restart the network. Now, the problem is fixed.
Reflection and summary
Centos network configuration file
All network-related configuration files for linux in the RedHat series are stored in the/etc/sysconfig/network-scripts/folder. There are three types of scripts in this folder:
Interface configuration files)
Interface control scripts)
Network function files)
/Etc/hosts
Local domain name and IP address resolution file. E.g. 127.0.0.1 localhost
/Etc/resolv. conf
The DNS domain name resolution configuration file contains the domain name search sequence of the host and the address of the DNS server. each line should contain one keyword and one or more parameters separated by spaces.
/Etc/sysconfig/network
This file contains the route and host name information shared by all network interfaces.
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.