Permutation carte réseaux

Bonjour,

Je voulais savoir si il existait un petit utlitaire qui permettait de permuter entre reseau filaire et reseau sans fil lorsque le syteme s’apercevait que le cable est débranché?
Ou est ce que ca peut fonctionner en créant un bridge entre mes 2 interfaces?

Merci a vous

Ydil

slt,

peut etre une solution, en faisant une requete snmp sur ton server remonter la bonne mib normalement tu doit avoir un “up” pour brancher ou “down” et en rapport avec cette reponse tu code un script sh qui traite la l’etat et agit en consequence.

Ok
Mais je peux faire des requetes snmp sur ma propre machine?
Est ce qu’il n’y a pas une entrée (genre dans /proc) qui définit si un cable est branché comme ca je pourrait tester cette valeur dans un script?

tu connais[code]console@emeraude:~$ apt-cache show ifplugd
Package: ifplugd
Priority: optional
Section: net
Installed-Size: 268
Maintainer: Oliver Kurth oku@debian.org
Architecture: i386
Version: 0.26-2
Depends: libc6 (>= 2.3.2.ds1-4), libdaemon0 (>= 0.7), debconf (>= 1.2.0)
Recommends: ifupdown (>= 0.6.4-4.2)
Filename: pool/main/i/ifplugd/ifplugd_0.26-2_i386.deb
Size: 55928
MD5sum: afed995ce2720e6183d003f22be39068
Description: A configuration daemon for ethernet devices
ifplugd is a daemon which will automatically configure your
ethernet device when a cable is plugged in and automatically
unconfigure it if the cable is pulled. This is useful on laptops with
onboard network adapters, since it will only configure the interface
when a cable is really connected.
.
Some features:

  • May beep when the cable is unplugged, plugged, the interface
    configuration succeeded or failed.
  • Syslog support
  • small
  • Multiple ethernet interface support
  • Support for wireless networking. Whenever an association to an AP
    is detected the network is configured. Have a look on waproamd
    if you need a facility to configure WEP keys before AP
    associations succeed.
  • Compatibility mode for network devices which do not support cable
    detection

console@emeraude:~$ apt-cache policy ifplugd
ifplugd:
Installé : (aucun)
Candidat : 0.26-2
Table de version :
0.26-2 0
97 http://ftp2.fr.debian.org sarge/main Packages
990 http://ftp2.fr.debian.org etch/main Packages
95 http://ftp2.fr.debian.org sid/main Packages[/code]

slt,

Pour ma part je connaissait pas now je connait merci qui mattOtop…

Wahou cool
Je crois que c’est ce que je cherchais
Merci