[NetworkManager] Impossible de se connecter

Applications, problèmes de configuration réseau
Phyks
Hankyu
Messages : 43
Inscription : jeu. 23 août 2012, 14:04

[NetworkManager] Impossible de se connecter

Message par Phyks »

Bonjour,

Je suis en train d'installer ma première Arch sur mon portable. Je suis sous Gnome + GDM. Tout se passe bien, sauf NetworkManager qui refuse de fonctionner.

J'ai installé les paquets nécessaires (et l'applet pour Gnome) et je me suis ajouté dans les groupes, en suivant cette documentation https://wiki.archlinux.org/index.php/Network_manager .

Je peux me connecter en filaire sans problème en ligne de commande (pas testé en wifi). Par contre, en passant par NetworkManager, j'ai un échec de la connexion et je ne peux me connecter (en wifi comme en filaire).

Voici ce que j'ai trouvé dans les logs :

Code : Tout sélectionner

Aug 23 15:58:02 localhost NetworkManager[655]: <info> WiFi now enabled by radio killswitch
Aug 23 15:58:02 localhost NetworkManager[655]: <info> (wlan0): bringing up device.
Aug 23 15:58:02 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: starting -> ready
Aug 23 15:58:02 localhost NetworkManager[655]: <info> (wlan0): device state change: unavailable -> disconnected (reason 'supplicant-available') [20 30 42]
Aug 23 15:58:02 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: ready -> inactive
Aug 23 15:58:02 localhost NetworkManager[655]: <warn> Trying to remove a non-existant call id.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Auto-activating connection 'Auto SFR WiFi FON'.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) starting connection 'Auto SFR WiFi FON'
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0/wireless): connection 'Auto SFR WiFi FON' requires no security.  No secrets needed.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Config: added 'ssid' value 'SFR WiFi FON'
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Config: added 'scan_ssid' value '1'
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Config: added 'key_mgmt' value 'NONE'
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Config: set interface ap_scan to 1
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: inactive -> scanning
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: scanning -> authenticating
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: authenticating -> associating
Aug 23 15:58:03 localhost dhcpcd[488]: wlan0: carrier acquired
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: associating -> completed
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'SFR WiFi FON'.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Aug 23 15:58:03 localhost NetworkManager[655]: <info> dhcpcd started with pid 1436
Aug 23 15:58:03 localhost dhcpcd[1436]: sending commands to master dhcpcd process
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Beginning IP6 addrconf.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Aug 23 15:58:03 localhost NetworkManager[655]: <info> (wlan0): DHCPv4 client pid 1436 exited with status 0
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) started...
Aug 23 15:58:03 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
Aug 23 15:58:03 localhost dhcpcd[488]: wlan0: sending IPv6 Router Solicitation
Aug 23 15:58:03 localhost dhcpcd[488]: wlan0: sendmsg: Cannot assign requested address
Aug 23 15:58:03 localhost dhcpcd[488]: wlan0: rebinding lease of 192.168.2.80
Aug 23 15:58:03 localhost dhcpcd[488]: control command: /sbin/dhcpcd -B -K -L -G -c /usr/lib/networkmanager/nm-dhcp-client.action wlan0
Aug 23 15:58:03 localhost dhcpcd[488]: wlan0: acknowledged 192.168.2.80 from 192.168.2.1
Aug 23 15:58:03 localhost dhcpcd[488]: wlan0: checking for 192.168.2.80
Aug 23 15:58:07 localhost dhcpcd[488]: wlan0: sending IPv6 Router Solicitation
Aug 23 15:58:08 localhost dhcpcd[488]: wlan0: leased 192.168.2.80 for 1200 seconds
Aug 23 15:58:11 localhost dhcpcd[488]: wlan0: sending IPv6 Router Solicitation
Aug 23 15:58:15 localhost dhcpcd[488]: wlan0: sending IPv6 Router Solicitation
Aug 23 15:58:15 localhost dhcpcd[488]: wlan0: no IPv6 Routers available
Aug 23 15:58:23 localhost NetworkManager[655]: <info> (wlan0): IP6 addrconf timed out or failed.
Aug 23 15:58:23 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
Aug 23 15:58:23 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) started...
Aug 23 15:58:23 localhost NetworkManager[655]: <info> (wlan0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
Aug 23 15:58:23 localhost NetworkManager[655]: <warn> Activation (wlan0) failed for access point (SFR WiFi FON)
Aug 23 15:58:23 localhost NetworkManager[655]: <warn> Activation (wlan0) failed.
Aug 23 15:58:23 localhost NetworkManager[655]: <info> Activation (wlan0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
Aug 23 15:58:23 localhost NetworkManager[655]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Aug 23 15:58:23 localhost NetworkManager[655]: <info> (wlan0): deactivating device (reason 'none') [0]
Aug 23 15:58:23 localhost dhcpcd[488]: wlan0: carrier lost
Aug 23 15:58:23 localhost NetworkManager[655]: <info> (wlan0): supplicant interface state: completed -> disconnected
Aug 23 15:58:25 localhost NetworkManager[655]: <info> WiFi now disabled by radio killswitch
Aug 23 15:58:25 localhost NetworkManager[655]: <info> (wlan0): device state change: disconnected -> unavailable (reason 'none') [30 20 0]
Aug 23 15:58:25 localhost NetworkManager[655]: <info> (wlan0): deactivating device (reason 'none') [0]
Et à un autre endroit

Code : Tout sélectionner

dhcp cannot assign requested address
au même moment que "checking for 192.168.1.20"

Comment résoudre ce problème ?

Merci

EDIT : Le PC reçoit bien le bail DHCP (lease 1200 seconds) mais NetworkManager ne le comprend pas... Le plus étrange étant que je suis connecté au réseau pendant que NetworkManager essaye de se connecter (j'ai accès à Internet). Puis, pour une raison inconnue, NetworkManager n'établit pas la connexion et déconnecte tout...


EDIT 2 : J'ai réussi à résoudre le problème (à moitié...) : j'ai choisi "lien local uniquement" dans les paramètres ipv6.
Y a-t-il moyen de trouver une solution plus propre ?
Merci
Avatar de l’utilisateur
lekaf974
yeomen
Messages : 205
Inscription : dim. 15 juil. 2012, 01:02

Re: [NetworkManager] Impossible de se connecter

Message par lekaf974 »

Salut,
Tu as vu ce passage sur le wiki https://wiki.archlinux.org/index.php/Ne ... P_problems
"Keep it Simple, Stupid"
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [NetworkManager] Impossible de se connecter

Message par FoolEcho »

Phyks a écrit :Le plus étrange étant que je suis connecté au réseau pendant que NetworkManager essaye de se connecter (j'ai accès à Internet)
Si tu veux dire que tu as un gestionnaire de connexion en plus, il ne faut pas.
«The following statement is not true. The previous statement is true.» :nage:
Phyks
Hankyu
Messages : 43
Inscription : jeu. 23 août 2012, 14:04

Re: [NetworkManager] Impossible de se connecter

Message par Phyks »

J'avais déjà essayé le passage sur les problèmes DHCP dans le wiki, sans succès.

La seule solution que j'ai trouvé pour l'instant est de systématiquement mettre ipv6 en lien local pour les connexions.


@FoolEcho : Je ne suis pas sûr d'avoir bien compris ta remarque...
Pour l'instant, j'utilise GDM et Gnome. J'ai installé NetworkManager pour configurer le réseau.
Quand je vais sur l'icône de Network Manager et que je sélectionne un réseau pour me connecter, il lance la connexion (jusque là, rien d'anormal). Puis, pendant qu'il essaye encore de se connecter, si je lance Firefox (par exemple), j'ai bien accès à Internet. Puis NetworkManager me retourne son erreur de connexion au réseau impossible et je n'ai plus rien. Mais le fait que je puisse naviguer avec Firefox pendant ce court laps de temps montre que la connexion était bien établie à ce moment. Puis, pour une raison inconnue, NetworkManager la quitte.

La résolution en mettant dans les paramètres d'ipv6 "lien local" montre que ça doit être un problème lié à ipv6...

Merci
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [NetworkManager] Impossible de se connecter

Message par FoolEcho »

Tu peux désactiver l'ipv6 Desactiver_IPv6.
Phyks a écrit :@FoolEcho : Je ne suis pas sûr d'avoir bien compris ta remarque...
C'était si tu avais autre chose à côté en plus (en trop): network, netcfg, wicd.
«The following statement is not true. The previous statement is true.» :nage:
Phyks
Hankyu
Messages : 43
Inscription : jeu. 23 août 2012, 14:04

Re: [NetworkManager] Impossible de se connecter

Message par Phyks »

J'ai regardé le wiki officiel et j'ai vu ceci (n'ayant pas de module ipv6 listé dans lsmod) :
Note: As of version 3.2.6-2, the Arch kernel has IPv6 support built in directly; therefore, the old ipv6 kernel module no longer exists. Blacklisting the module does not work anymore, but below method of disabling the IPv6-stack works.
Il est écrit de rajouter ipv6.disable=1 au chargement du noyau (je l'ai ajouté à la ligne GRUB_CMDLINE_DEFAULT de /etc/default/grub après quiet). Mais pour le coup, la connexion réseau ne marche plus du tout, quelque soit le choix dans les paramètres ipv6 de networkmanager et même avec le tweak pour dcpcd donné dans le wiki !
Phyks
Hankyu
Messages : 43
Inscription : jeu. 23 août 2012, 14:04

Re: [NetworkManager] Impossible de se connecter

Message par Phyks »

En suivant les indications trouvées ici pour désactiver l'ipv6 : http://www.isalo.org/wiki.debian-fr/ind ... r_l%27IPv6 (pour Debian, mais ce paramètre doit fonctionner de la même façon sous Arch ?),

je n'ai plus aucune possibilité de connexion via NetworkManager, et ce quelque soit le réglage choisi dans les paramètres ipv6.

Quelqu'un saurait pourquoi ?

Merci
Répondre