Problème de DHCP avec Wifi

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problème de DHCP avec Wifi

Pierre Mavro
Bonjour à tous,

Voilà, j'ai un problème qui traine et qui commence à m'énerver. Et je ne
trouves malheureusement pas de solution.
J'ai donc une Soekris sous OpenBSD qui sert de passerelle, firewall et
de serveur DHCP. J'ai également une Fonera dont le firmware a été
modifiée en DD-WRT branchée sur la Soekris et qui sert donc de point
d'accès wifi.

Le problème que je rencontre se situe apparement au niveau du serveur
DHCP uniquement pour le wifi. J'arrives à obtenir une IP sur une courte
période mais passé par exemple 2h après la mise en route, impossible
d'obtenir une IP, parcontre en IP fixe, la connection Wifi fonctionne.

J'ai donc essayer de redémarrer le service DHCP, reloader la conf de
PF...rien à faire. Parcontre, si je redémarre la Soekris, là ça
fonctionne. Mais encore une fois que sur une courte durée.

Pour vérifier que ça ne vient pas la Fonera, je l'ai branchée sur ma
Freebox et je ne rencontre aucuns problèmes sur 7 jours d'utilisation.
De même, le serveur DHCP fonctionne très bien sur les autres interfaces.

Bref, le problème semble vraiment venir d'OpenBSD, mais je ne vois
vraiment pas ce qui pourrait poser problème. J'ai également vérifié si
ça ne venanit pas de ma machine, mais le problème est le même sur iPhone
ou d'autres machines, peut importe l'OS, c'est exactement le même problème.

Pour ce qui est des logs, voici ce que je récupère sur ma Ubuntu (client) :
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
starting connection 'Auto Wifi_a_bibi'
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 3 -> 4
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 1 of 5 (Device Prepare) scheduled...
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 1 of 5 (Device Prepare) started...
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 2 of 5 (Device Configure) scheduled...
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 1 of 5 (Device Prepare) complete.
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 2 of 5 (Device Configure) starting...
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 4 -> 5
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation
(wlan0/wireless): access point 'Auto Wifi_a_bibi' has security, but
secrets are required.
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 5 -> 6
Jul 30 22:32:53 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 2 of 5 (Device Configure) complete.
Jul 30 22:32:54 pm-laptop NetworkManager: <info>  (wlan0): supplicant
connection state:  scanning -> inactive
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 1 of 5 (Device Prepare) scheduled...
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 1 of 5 (Device Prepare) started...
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 6 -> 4
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 2 of 5 (Device Configure) scheduled...
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 1 of 5 (Device Prepare) complete.
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 2 of 5 (Device Configure) starting...
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 4 -> 5
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation
(wlan0/wireless): connection 'Auto Wifi_a_bibi' has security, and
secrets exist.  No new secrets needed.
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Config: added 'ssid'
value 'Wifi_a_bibi'
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Config: added
'scan_ssid' value '1'
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Config: added
'key_mgmt' value 'WPA-PSK'
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Config: added 'psk'
value '<omitted>'
Jul 30 22:32:55 pm-laptop NetworkManager:
nm_setting_802_1x_get_pkcs11_engine_path: assertion
`NM_IS_SETTING_802_1X (setting)' failed
Jul 30 22:32:55 pm-laptop NetworkManager:
nm_setting_802_1x_get_pkcs11_module_path: assertion
`NM_IS_SETTING_802_1X (setting)' failed
Jul 30 22:32:55 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 2 of 5 (Device Configure) complete.
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  (wlan0): supplicant
connection state:  scanning -> associating
Jul 30 22:33:28 pm-laptop kernel: [12212.250739] wlan0: direct probe to
AP 00:18:84:23:ff:b1 try 1
Jul 30 22:33:28 pm-laptop kernel: [12212.253576] wlan0 direct probe
responded
Jul 30 22:33:28 pm-laptop kernel: [12212.253584] wlan0: authenticate
with AP 00:18:84:23:ff:b1
Jul 30 22:33:28 pm-laptop kernel: [12212.264906] wlan0: authenticated
Jul 30 22:33:28 pm-laptop kernel: [12212.264915] wlan0: associate with
AP 00:18:84:23:ff:b1
Jul 30 22:33:28 pm-laptop kernel: [12212.268828] wlan0: RX AssocResp
from 00:18:84:23:ff:b1 (capab=0x411 status=0 aid=1)
Jul 30 22:33:28 pm-laptop kernel: [12212.268834] wlan0: associated
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  (wlan0): supplicant
connection state:  associating -> associated
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  (wlan0): supplicant
connection state:  associated -> 4-way handshake
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  (wlan0): supplicant
connection state:  4-way handshake -> group handshake
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  (wlan0): supplicant
connection state:  group handshake -> completed
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  Activation
(wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected
to wireless network 'Wifi_a_bibi'.
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 3 of 5 (IP Configure Start) scheduled.
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 3 of 5 (IP Configure Start) started...
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 5 -> 7
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  Activation (wlan0)
Beginning DHCP transaction.
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  dhclient started with
pid 31634
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 3 of 5 (IP Configure Start) complete.
Jul 30 22:33:28 pm-laptop dhclient: Internet Systems Consortium DHCP
Client V3.1.1
Jul 30 22:33:28 pm-laptop dhclient: Copyright 2004-2008 Internet Systems
Consortium.
Jul 30 22:33:28 pm-laptop dhclient: All rights reserved.
Jul 30 22:33:28 pm-laptop dhclient: For info, please visit
http://www.isc.org/sw/dhcp/
Jul 30 22:33:28 pm-laptop dhclient:
Jul 30 22:33:28 pm-laptop dhclient: wmaster0: unknown hardware address
type 801
Jul 30 22:33:28 pm-laptop NetworkManager: <info>  DHCP: device wlan0
state changed (null) -> preinit
Jul 30 22:33:28 pm-laptop dhclient: wmaster0: unknown hardware address
type 801
Jul 30 22:33:28 pm-laptop dhclient: Listening on LPF/wlan0/00:21:6a:56:b0:70
Jul 30 22:33:28 pm-laptop dhclient: Sending on   LPF/wlan0/00:21:6a:56:b0:70
Jul 30 22:33:28 pm-laptop dhclient: Sending on   Socket/fallback
Jul 30 22:33:30 pm-laptop dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 8
Jul 30 22:33:38 pm-laptop dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 7
Jul 30 22:33:45 pm-laptop dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 7
Jul 30 22:33:52 pm-laptop dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 13
Jul 30 22:34:05 pm-laptop dhclient: DHCPDISCOVER on wlan0 to
255.255.255.255 port 67 interval 12
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Device 'wlan0' DHCP
transaction took too long (>45s), stopping it.
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  wlan0: canceled DHCP
transaction, dhcp client pid 31634
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 4 of 5 (IP Configure Timeout) scheduled...
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 4 of 5 (IP Configure Timeout) started...
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 7 -> 9
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Activation (wlan0)
failed for access point (Wifi_a_bibi)
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Marking connection
'Auto Wifi_a_bibi' invalid.
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Activation (wlan0) failed.
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Activation (wlan0)
Stage 4 of 5 (IP Configure Timeout) complete.
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  (wlan0): device state
change: 9 -> 3
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  (wlan0): deactivating
device (reason: 0).
Jul 30 22:34:13 pm-laptop kernel: [12257.392824] wlan0: disassociating
by local choice (reason=3)
Jul 30 22:34:13 pm-laptop NetworkManager: <info>  Policy set 'Auto eth0'
(eth0) as default for routing and DNS.

Et sur le serveur :
Rien, sauf si je redémarre la Soekris, le serveur se comporte normalement.

J'espère que quelqu'un aura une idée pour m'éclairer. Merci d'avance

________________________________
French OpenBSD mailing list
[hidden email]
http://www.openbsd-france.org/ml