On Tue, 15 Jun 2004 23:10:11 +0200, Thierry wrote:

> Bonjour � tous,
> J'ai un petit soucis, et il s'appelle : Ignoring unknown interface eth0=.
> 
> Je configure mon reseau de maniere � ne pas avoir � tout refaire �
> chaque fois que je change d'endroit, de lieu de travail.
> 
> Dans un premier temps, dans mon fichier /etc/network/interface :
> 
> 
> auto lo eth0
> iface lo inet loopback
> 
> mapping eth0
>         script /home/toto/map-scheme
>         map 192.168.x.x   00:xx:xx:xx:xx:xx  eth0-dodo
>         map 192.168.x.x 00:xx:xx:xx:xx:xx eth0-boulot
> 
> iface eth0-dhcp inet dhcp
>         hostname mon_ordi
>         leasetime 86400
> 
> iface eth0-dodo inet static
>         address 192.168.0.5
>         netmask 255.255.255.0
>         gateway 192.168.x.x
>         dns 80.10.246.1 80.10.246.132
> 
> iface eth0-boulot inet static
>         address 192.168.0.8
>         netmask 255.255.255.0
>         gateway 192.168.x.x
>         dns 62.211.69.150 212.48.4.15
> 
> iface eth1 inet dhcp
>         hostname mon_ordi
>         wireless-essid ssid
>         wireless-key ***********
> 
> mon script map-scheme:
> 
> 
> #!/bin/sh
> 
> iface="$1"
> which=
> 
> mii-diag $iface | grep -q "not established"
> if [ $? -eq 0 ]; then
>         echo $iface: no link >&2
>         exit 1
> fi
> 
> ifconfig $iface 192.168.0.23 broadcast 192.168.0.255 netmask 255.255.255.
> 
> 0
> 
> while read ip mac scheme; do
>         if [ "$which" ]; then continue; fi
> 
>         echo "Trying $ip ($scheme)" >&2
>         opt=
>         case "$mac" in
>         ??:??:??:??:??:??)
>                 opt="-t $mac";;
>         esac
> 
>         arping -q -c 2 $opt -i $iface $ip
>         if [ $? -eq 0 ]; then
>                 which="$scheme"
>                 echo "Found $ip/$mac ($scheme)" >&2
>         fi
> done
> 
> if [ "$which" ]; then
>         echo $which
> else
>         echo "Trying DHCP" >&2
>         echo $iface-dhcp
> fi
> 
> L'ennui c'est que cela ne fonctionne pas, sauf pour le wifi, mais pour
> l'instant, ce n'est pas ma priorit� .... :(
> 
> merci

Tout �a pour dire que je cherche tjs ...
Lorsque je fais un /etc/init.d/networking STOP/START:

bash-2.05a$ sudo /etc/init.d/networking start
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces: Trying 192.168.x.x (eth0-dodo)
Trying 192.168.x.x (eth0-dodo)
Found 192.168.x.x/00:xx:xx:xx:xx:xx (eth0-boulot)
Ignoring unknown interface eth0=.
done.

Ensuite, je dois faire un sudo ifup eth1 (wifi) pour avoir une adresse ip,
tout en sachant, et l�, j'ai rien compris, qu'en verit�, le flux passe
par eth0 ....

Merci

Répondre à