Quote:
Originally Posted by netjack
Code:
$ sudo ifdown eth0 && sudo ifup eth0
|
Quote:
Originally Posted by netjack
Code:
ifdown: interface eth0 not configured
Ignoring unknown interface eth0=eth0.
|
Quote:
Originally Posted by gcordoba
About the eth0 confiuration, I found that in my interfaces, the lines
eth0 auto
iface eth0 inet dhcp
were comented. Once I delete the comment the eth0 was not longer reported as "not configured".
|
gcordoba got this right. "Ignoring unknown interface" error has nothing to do with drivers or if you have the device, etc and also you should never configure your Ethernet device in /etc/rc.local. ifup and ifdown, as the manual says, is entirely based on the configuration of /etc/network/interfaces. If ifup says "Ignoring unknown interface eth0=eth0." Then that is because the device is not configured in /etc/network/interfaces, essentially ifup doesn't know how it should start eth0 (Is it DHCP? Is it static? If so what is the address? etc).
/etc/network/interfaces should be the only place where you edit your networking configuration on Debian, Ubuntu or pretty much any Debian based distro.
TO quote the DESCRIPTION[sic] right at the top of the man page for ifup:
The ifup and ifdown commands may be used to configure (or, respectively, deconfigure) network interfaces based on interface definitions in the file /etc/network/interfaces.
To learn more about how ifup works and how to properly setup /etc/network/interfaces, run the commands
man ifup and
man interfaces.
If you are running any recent enough version of Ubuntu (and I don't think it has to be that recent either) then there is also a nm-applet icon in the system tray which is linked to /etc/init.d/network-manager (or /etc/init/network-manager.conf if you have a recent enough edition to use upstart, 10.04+ I think) which allows you to setup /etc/network/interfaces through the GUI, activated in real time, without needing to understand ifup, interfaces or any of the other command-line/console options.