how to re-install/detect NIC

Tags:

I'm running Debian 4 on a server that was dying on me. I took the HD and put it in a new server and everything seems to work except the NIC (they are different NICs entirely). I don't know how to tell Debian how to use the new NIC.

I can do a lspci and get the NIC model, but how to I insert it into modprobe? Or is there another way to do this?

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: how to re-install/detect NIC

In short:

1) Find the NIC model (yes, lspci is a good start)
2) Find the correct driver, look in /lib/modules/[kernel-version]/kernel/drivers/net
3) Use modprobe to insert the driver
4) verify the correct operation of the driver (configure with ifconfig, use ping)
5) When all works, add the module in /etc/modules.conf (the driver will be loaded on reboot)

HTH,

if not, please let me know.

Marcel

Syndicate content