View Single Post
  #1 (permalink)  
Old 04-11-2008, 01:36 PM
Nathan Nathan is offline
Junior Member
 
Join Date: Sep 2007
Posts: 13
Default Loading All NIC Drivers

Ever had to replace a NIC in a Linux box and not had it automagically configured by the system? The first hurdle is to make sure you've got the right drivers loaded. One trick to overcome this is to load every driver available; this can be done with the following one-liner:

Code:
for x in `ls /lib/modules/*/kernel/drivers/net/ | sed s/.ko//g`; do modprobe $x; done
Make sure you get the exact syntax correct. The "`" is the button next to the 1 at the top left corner of the keyboard.

After doing this, commands like "ifup eth0" should work. If they don't, You'll want to take a look at Managing NICs In Linux.
Reply With Quote