Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[NetworkManager] conflit avec wpa_supplicant ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Mon May 14, 2007 7:22 pm    Post subject: [NetworkManager] conflit avec wpa_supplicant ? Reply with quote

J'ai installé récemment NetworkManager et il me pose des soucis.

Sans NetworkManager, mon réseau fonctionne parfaitement. J'accroche sans soucis mon wifi en WPA, je chope une adresse IP en DHCP, tout va bien.
Dans /etc/conf.d/net j'ai ça :
Code:
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"


J'ai suivit les indications données ici pour installer NetworkManager : http://gentoo-wiki.com/HOWTO_Gnome_Wifi

Lorsque le lance NetworkManager, le réseau est accroché, j'obtient une adresse IP tout va bien. Mais ça ne dure qu'un instant. NetworkManager me demande ma clé WAP, je la lui donne, il mouline, et pendant ce temps je suis déconnecté. En fin de compte, il ne parvient jamais à ce connecter.

J'ai essayé de modifier /etc/conf.d/net en cela :
Code:
modules=( "!wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"


J'obtient ça :
Code:
hector wpa_supplicant # /etc/init.d/NetworkManager start
 * Caching service dependencies ...                                       [ ok ]
 * Starting wlan0
 *   Configuring wireless network for wlan0
Warning: Driver for device wlan0 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken...

 *   WEP key is not set for "zangdars dongeon" - not connecting
 *   WEP key is not set for "Livebox-1848" - not connecting
 *   WEP key is not set for "freephonie" - not connecting
 *   WEP key is not set for "WANADOO-47A8" - not connecting
 *   WEP key is not set for "Nellyfer" - not connecting
 *   WEP key is not set for "WANADOO-032C" - not connecting
 *   WEP key is not set for "THOMSON" - not connecting
 *   WEP key is not set for "Livebox-7281" - not connecting
 *   Couldn't associate with any access points on wlan0
 *   Failed to configure wireless for wlan0                               [ !! ]
 * ERROR:  cannot start dhcdbd as net.wlan0 could not start
 * ERROR:  cannot start NetworkManager as dhcdbd could not start


J'ai essayé également :
Code:
modules=( "!iwconfig" "!wpa_supplicant" )
wpa_supplicant_wlan0="-Dwext"


et j'obtient ça :
Code:
hector wpa_supplicant # /etc/init.d/NetworkManager start
 * Starting wlan0
 *   Configuration not set for wlan0 - assuming DHCP
 *   Bringing up wlan0
 *     dhcp
 *       Running dhcpcd ...
Error, wlan0: timed out                                                   [ !! ]
 * ERROR:  cannot start dhcdbd as net.wlan0 could not start
 * ERROR:  cannot start NetworkManager as dhcdbd could not start


Je ne comprend pas vraiment où est le problème. Si quelqu'un pouvait m'aidé...
_________________
pititjo.net
Le Mus. Et si c'était vrai ?
Back to top
View user's profile Send private message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Thu May 17, 2007 8:42 am    Post subject: Reply with quote

Bon, après moultes recherches je pense avoir identifier le problème : comme moi au dépar, NetworkManager semble indiquer ndiswrapper comme driver à wpa_supplicant au lieu de wext.

Mais j'ai beau chercher, je ne trouve pas où configurer ça.

Quelqu'un sait ?

EDIT : il y a bien un répertoire /etc/NetworkManager mais il n'y a pas de fichier dedans.
_________________
pititjo.net
Le Mus. Et si c'était vrai ?
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772

PostPosted: Thu May 17, 2007 9:04 am    Post subject: Reply with quote

Quel intérêt d'utiliser Network Manager, alors que t'as déjà wpa_supplicant ?
Avec la GUI QT4 de wpa_supplicant, tu choisi ton network wifi, et avec un /etc/conf.d/net bien configuré pour changer les paramètres IP pour chaque essid, ça marche tout seul :) (et même, tu touche plus jamais à rien si tu configure bien wpa_supplicant avec les paramètres et la priorité pour chaque réseau).
Back to top
View user's profile Send private message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Thu May 17, 2007 9:27 am    Post subject: Reply with quote

Plusieurs raison à l'utilisation de NetworkManager :
* la curiosité : tout le monde en parle, ça a l'air joli mais est-ce que ça peut changer ma vie ?
* la flemme : jamais eu le courage de chercher comment on faisait pour se connecter au réseau sécurisé (TLS) de la fac (Paris 6 si quelqu'un à la conf qui va bien :wink: ), NM semble le faire en quelques clics
* ma copine : le SSID de chez ma copine a un accent qui fait que je n'arrive pas à le configurer donc pas à me brancher dessus, avec un outils graphique peut-être... (son frère m'a déjà prévenu : il changera pas le SSID :( )
* le style : « non mais sérieux ! t'as vu comme tu galère pour te connecté au wifi avec ton windows ? Perso je clic et hop ! » ça le fait plus aujourd'hui que «vim /etc/wpa_supplicant/wpa_supplicant.conf et merde c'est quoi déjà la syntaxe !»

Pour une interface en QT, ben je savais pas qu'il y en avait une mais bon, si ça s'intègre dans mon joli GNOME je dis pas non non plus :roll:

Reste que maintenant que j'ai commencé avec NetworkManager j'aimerais éviter de règler mon probleme en utilisant autre chose :p
_________________
pititjo.net
Le Mus. Et si c'était vrai ?
Back to top
View user's profile Send private message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Sat May 19, 2007 10:14 pm    Post subject: Reply with quote

Pour ceux que ça intéresserait, on peu modifier la configuration de la carte wifi pour NetworkManager en modifiant la configuration au nuveau de Hal. Pour savoir quelle est la config actuelle, il faut utiliser la commande lshal et pour la modifier, la commande hal-set-property.

J'ai réussi à faire comprendre à NetworkManager que le driver était wext. Ça n'a pas l'air de marcher pour autant.
_________________
pititjo.net
Le Mus. Et si c'était vrai ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum