Home  >  Article  >  Operation and Maintenance  >  The network card ip address cannot be found under centos6.5

The network card ip address cannot be found under centos6.5

王林
王林Original
2020-04-03 09:42:483377browse

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:

The network card ip address cannot be found under centos6.5

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:

The network card ip address cannot be found under centos6.5

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:

The network card ip address cannot be found under centos6.5

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:

The network card ip address cannot be found under centos6.5

Enter ifconfig again to see Here’s the complete information:

The network card ip address cannot be found under centos6.5

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn