The solution of not finding Network Card eth0 in CentOS system
The physical network card here refers to the actual network interface equipment on the server, here I have two network cards on the server, and the two physical network cards seen in the system correspond to the two network interfaces of eth0 and eth1 respectively.
Recently, after installing CentOS with VMware, when configuring IP with ifconfig, I found that the network card eth0 was missing.
1. Use the command: ifconfig eth0 up starts the network card, but the IP address, subnet mask and gateway are all wrong.
You can change it using the following command:
Ifconfig eth0 10.0.13.24 netmask 255.255.255.0 gateway 10.0.13.1
If the network connection uses bridging, you can continue to configure the network eth0.
2. Modify the / etc/sysconfig/network-scripts/ifcfg-eth0 file as follows:
DEVICE=eth0 / / device name ONBOOT=yes / / activate the device yes or noBOOTPROTO=static / / static or dhcpIPADDR=10.0.13.24 / / IP address NETMASK=255.255.255.0 / / subnet mask GATEWAY=10.0.13.1 / / gateway HWADDR=00:0C:29:96:38:F8 / / MAC address at system startup
3. Use the command: service network restart to restart the network service
The above is the details of the linux virtual machine can not find the network card eth0, please pay attention to other related articles!