In VirtualBox, when Centos6 is configured with eth0, the system prompts Device does not see...
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.