Home  >  Q&A  >  body text

linux - Unable to use ifconfig to configure ip information

I have a new computer and I want to install it as a Linux system (centos 6.5), but there is a problem when configuring the IP after the installation is complete:
1. Unable to use ifconfig ethX ip address for configuration

  此处报错为:eth0 :nkowned interface no such device

There should be no ifcfg-eth0 file

2. So I went to the /etc/sysconfig/network-script/ directory and created a new file.
Fill in the relevant configuration files (there will be no problems with the configuration files) and restart the service.

After restarting the service, there is no response (it shows that the network card is turned off and the network card is started), and it returns directly.

3. Enter ifconfig -a directly. Error: Only the lookback address is displayed.

4. After checking some, they said there was no driver, so I used lspci to check the model of the network card:
lspci | grep Ethernet
The network card model is: intel corporation device 15b7(rev 31)
5 , so I went online to find the driver package for e1000e and installed it on the computer, but during the installation process a
make install error occurred: It said that the kernel-devel package was missing

6. After downloading (the same package as the 6.5 kernel was not found, I downloaded a 6.8 one), the kernel-deve installation process reappeared: headread failed

7. Do you need to install the kernel-header software package?

Supplement: I have installed kernel-headers-2.6.32-696.el6.x86_64.rpm and kernel-devel-2.6.32-696.el6.x86_64.rpm

But when installing e1000e, an error is still reported:
1)

I found:
lib/module/2.6.32-432.el6.x86*64/kernel/driver/net/e1000e/ directory has e1000e.ko
Is the system already installed? drive.

Master, please explain!

Now there is a question, if I don’t install the 6.5 matching kernel package, will I get an error? Can someone provide kernel-devel and kernel-header (the kernel version is 2.6.32-431.el6.X86 *64) software package!

Also, that great person has encountered this kind of problem. Can you help me take a look? Is this the solution?

Urgent! Urgent!

怪我咯怪我咯2713 days ago633

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 13:29:18

    The cause of the problem has been found. The main reason is that the driver physical machine (thinkcentre) in centos6.5 cannot be recognized. Just reinstall the 6.9 version!

    reply
    0
  • Cancelreply