Wednesday, May 7, 2008

eth0: unknown interface: No such device

0) Check if you see any eth* entry in one of the following files:

/etc/modprobe.conf (kernel 2.6)

/etc/modules.conf (kernel 2.4)

(or for older systems: /etc/conf.modules)

In my working case, there is

alias eth0 tg3

However, none was found in my problem Linux, if this is your case, the following steps might work for you. The network module for your network card is not loaded and the following are steps are how to add it back:

1) Find out which module does you NIC need

For me, it is a Broadcom NetXtreme and it works with tg3 module and it already exists in my system under:


2) Add the module

/sbin/modprobe tg3

3) Check the tg3 actually get loaded

/sbin/lsmod |grep tg3

4) ifconfig to see if it is working

5) The module will not be loaded in next reboot. To permanently add this module update the /etc/modprobe.conf with line like for each NIC:

alias eth0 tg3
alias eth1 tg3