network driver not detecting

Issues related to hardware problems
Post Reply
sureshkumar
Posts: 1
Joined: 2018/10/02 07:55:17

network driver not detecting

Post by sureshkumar » 2018/10/02 08:12:37

Hai,

I installed yesterday Centos 7 on a new HP proliant ML10 gen 9. This Server had a I219-LM ehternet Card.

I installed a Centos 7 Server with GUI, UEFI mode.
It succeeded to install, I get the prompt of centos, can login

how can i install drivers,
when try to run driver instalaltion
its showing like this

[root@localhost e1]# cd e1000e/src
[root@localhost src]# make install
Makefile:46: *** Kernel header files not in any of the expected locations.
Makefile:47: *** Install the appropriate kernel development package, e.g.
Makefile:48: *** kernel-devel, for building kernel modules and try again. Stop.

[root@localhost src]# yum install make
Loaded plugins: langpacks
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7 ... 64&repo=os error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"


One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

1. Contact the upstream for the repository and get them to fix the problem.

2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).

3. Disable the repository, so yum won't use it by default. Yum will then
just ignore the repository until you permanently enable it again or use
--enablerepo for temporary usage:

yum-config-manager --disable <repoid>

4. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:

yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: network driver not detecting

Post by TrevorH » 2018/10/02 14:00:24

That card is almost certainly already supported by the CentOS kernel so you do not need to (and should not) install drivers from source for it. To confirm this, run lspci -nn | grep -i net and get the PCI vendor:device id from that for your card. E.g.

01:00.0 Ethernet controller [0200]: Intel Corporation I350 Gigabit Network Connection [8086:1521] (rev 01)

then take the 8086:1521 from my example (obviously use yours!) and run

grep -i 8086 /lib/modules/3.10.0-862.14.4.el7.x86_64/modules.* | grep -i 1521

and the output from that will show you if there is a driver for it and what it is called. Like so...

/lib/modules/3.10.0-862.14.4.el7.x86_64/modules.alias:alias pci:v00008086d00001521sv*sd*bc*sc*i* igb

So that shows the 'igb' module supports that card.

Are you sure you're not just suffering from the problem described here? https://wiki.centos.org/FAQ/CentOS7#hea ... 15906fa493
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply