Le Lundi, 31 Janvier 2005 22:43, Fran�ois TOURDE a �crit�: Merci beaucoup �a marche ;-) J'ai utilis� guessnet et voici ma nouvelle config
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
mapping eth0
# Too bad there's no way to pass commandline options to script
# (see ifupdown bug #139383)
script /usr/sbin/guessnet-ifupdown
map eth0-disconnected
map eth0-dhcp
map default: eth0-dhcp
map timeout: 3
map verbose: true
# If there is no link detected, don't try DHCP
#
# Here it would be useful to have 'fail' method for iface that just
# keeps the interface down (see ifupdown bug #275326)
# In the meantime, we have to specify some random configuration data:
iface eth0-disconnected inet static
address 10.0.0.1
netmask 255.255.255.0
test missing-cable
# By default, perform DHCP
iface eth0-dhcp inet dhcp
# The WLAN 802.11g network interface
auto ra0
mapping ra0
script /usr/sbin/guessnet-ifupdown
map ra0-home
map ra0-work
map ra0-disconnected
map default: ra0-disconnected
map timeout: 3
map verbose: true
iface ra0-work inet dhcp
pre-up \
/sbin/iwconfig ra0 mode Managed && \
/sbin/iwconfig ra0 enc open && \
/sbin/iwconfig ra0 key XXXXXXXXXXXXXXXXXXXX && \
/sbin/iwconfig ra0 essid work && \
/sbin/iwconfig ra0 ap any && \
/sbin/iwconfig ra0 rate auto
test wireless essid work
iface ra0-home inet dhcp
pre-up \
/sbin/iwconfig ra0 mode Managed && \
/sbin/iwconfig ra0 enc open && \
/sbin/iwconfig ra0 key XXXXXXXXXXXXXXXXXXXX && \
/sbin/iwconfig ra0 essid home && \
/sbin/iwconfig ra0 ap any && \
/sbin/iwconfig ra0 rate auto
test wireless essid home
iface ra0-disconnected inet static
address 10.0.0.1
netmask 255.255.255.0
> Le 12814i�me jour apr�s Epoch,
> St�phane Brunner �crivait:
>
> > Hello !
> >
> > J'ai une carte WIFI avec laquelle je me connecte r�guli�rement sur 2
> > r�seaux,j'ai donc 2 configuration diff�rente.
> > Actuellement chaque fois que je passe d'un r�seau � l'autre je
> > commente une configuration et en d�commente une autre.
> > Y a-t-il un moyen plus simple de g�rer ces 2 configurations.
>
> Tu peux essayer des outils comme whereami, par exemple, et regarder
> dans les archives de la liste un thread parlant de "un portable,
> plusieurs r�seaux" ou quelque chose comme �a. Il y a un excellent
> comparatif des outils de configuration automagique du r�seau.
>
> Par exemple:
>
> http://lists.debian.org/debian-user-french/2004/08/msg00100.html
>
> Perso, j'utilise ifupdown et whereami, et �a marche assez bien. J'ai
> quand m�me eu pas mal de difficult�s � me fabriquer un param�trage de
> whereami qui tienne la route, mais maintenant �a va ;)
>
--
St�phane Brunner - [EMAIL PROTECTED]
http://fr.wikipedia.org/wiki/Utilisateur:Sbrunner
--------------------------------------
http://mozilla-europe.org - navigateur internet / Client de messagerie
http://framasoft.net - Annuaire de logiciel libre (gratuit)
http://jeuxlibres.net - Jeux Libres (gratuit)
http://debian.org - Distribution Linux
-------------------------------------
pgpgcwfMEFbrP.pgp
Description: PGP signature

