Home>Article>Operation and Maintenance> The network card ip address cannot be found under centos6.5
Problem:
Before I built a test environment through a virtual machine, I added and deleted network cards several times. When the virtual machine was started again, I found that the network could not be pinged. Log in. After arriving at the system, I found that the address of the virtual machine was missing.
Solution process:
Enter ifconfig in CentOS 6.5, only the local loopback port is displayed, as follows:
No My original eth0 port appears because the eth0 network card is not started. Enter ifconfig eth0 up to enable the eth0 network card, and ifconfig eth0 down to disable the eth0 network card.
After entering ifconfig eth0 up on the interface, press Enter and enter ifconfig again. You can see that the network card eth0 appears:
However, at this time, again A problem occurred. Although I saw the network card, there was no address.
At this time, go into the network card configuration file and view:
You can see that this network card has an address.
In fact, the reason is very simple, because the network of the network card is not open. We can open the network through ifup eth0:
Enter ifconfig again to see Here’s the complete information:
Related tutorial recommendations:centos tutorial
The above is the detailed content of The network card ip address cannot be found under centos6.5. For more information, please follow other related articles on the PHP Chinese website!