- Accueil
- » Forum
- » WiFi
- » connection wifi
Pages : 1
#1 Le 26/08/2017, à 18:44
- sebo83910
connection wifi
Bonjour tout le monde,
J'ai un petit soucis de configuration réseau que je ne comprends pas.
J'ai un système linux embarqué avec lequel je développe depuis une distro ubuntu.
Ce système embarqué est relié à mon PC par une interface eth0 local (IP statique).
J'ai ajouté un dongle wifi qui fonctionne (RTL8192CU) et l'interface wlan0 est configurée en dhcp.
Mon problème est que l'interaction avec l'interface wlan0 s'active pas immédiatement. Je dois "bricoler" avec les commandes ifup/ifdown sur les deux interfaces (eth0 & wlan0) du système avant que cela daigne répondre à un ping ou accepter une connexion ssh...
Je ne pige pas.
voici mon fichier /etc/network/interfaces
root@zynqberry:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 10 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
root@zynqberry:~#
root@zynqberry:~#
root@zynqberry:~# cat /etc/network/interfaces
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wireless interfaces
auto wlan0
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
#auto wlan0
#iface wlan0 inet dhcp
# address 10.0.0.1
# network 10.0.0.0
# netmask 255.255.255.0
# broadcast 10.0.0.255
# iface atml0 inet dhcp
# Wired interfaces
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
iface eth1 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
# Bluetooth networking
iface bnep0 inet dhcp
root@zynqberry:~#
et la commande route -n donne ceci:
root@zynqberry:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 10 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
ifconfig donne ceci:
root@zynqberry:~# ifconfig
eth0 Link encap:Ethernet HWaddr f6:4c:bd:60:6e:85
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::f44c:bdff:fe60:6e85/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:526 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33408 (32.6 KiB) TX bytes:712 (712.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:13:ef:60:1f:a1
inet addr:192.168.1.43 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 2a01:e34:ec3a:91a0:213:efff:fe60:1fa1/64 Scope:Global
inet6 addr: fe80::213:efff:fe60:1fa1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:776 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:152211 (148.6 KiB) TX bytes:5819 (5.6 KiB)
Merci pour les suggestions.
Sébastien
Hors ligne
#2 Le 26/08/2017, à 19:41
- xubu1957
Re : connection wifi
Bonjour,
Pour le réseau, je ne peux répondre, mais pour la clé wifi regarde cette Doc : Installation des clés avec chipset rtl8192CU
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#3 Le 26/08/2017, à 20:47
- sebo83910
Re : connection wifi
Merci pour ta réponse. La clé est correctement installée. Je ne pense pas que mon soucis vienne de là.
A+
Sébastien.
Hors ligne
#4 Le 26/08/2017, à 21:05
- sebo83910
Re : connection wifi
voici ce que j'ai comme trace de temps en temps sur un ifup wlan0:
root@zynqberry:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 10 0 0 wlan0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
root@zynqberry:~# ifup wlan0
Successfully initialized wpa_supplicant
rtl8192cu: MAC auto ON okay!
rtl8192cu: Tx queue select: 0x05
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
udhcpc (v1.24.1) started
Sending discover...
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 2/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 3/3)
wlan0: authentication with 14:5d:76:b3:a3:32 timed out
Sending discover...
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: aborting authentication with 14:5d:76:b3:a3:32 by local choice (Reason: 3=DEAUTH_LEAVING)
Sending discover...
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 2/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 3/3)
wlan0: authentication with 14:5d:76:b3:a3:32 timed out
No lease, forking to background
root@zynqberry:~# wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: aborting authentication with 14:5d:76:b3:a3:32 by local choice (Reason: 3=DEAUTH_LEAVING)
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 2/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 3/3)
wlan0: authentication with 14:5d:76:b3:a3:32 timed out
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 2/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 3/3)
wlan0: authentication with 14:5d:76:b3:a3:32 timed out
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: aborting authentication with 14:5d:76:b3:a3:32 by local choice (Reason: 3=DEAUTH_LEAVING)
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 2/3)
wlan0: send auth to 14:5d:76:b3:a3:32 (try 3/3)
wlan0: authentication with 14:5d:76:b3:a3:32 timed out
wlan0: authenticate with 14:5d:76:b3:a3:32
wlan0: send auth to 14:5d:76:b3:a3:32 (try 1/3)
wlan0: aborting authentication with 14:5d:76:b3:a3:32 by local choice (Reason: 3=DEAUTH_LEAVING)
root@zynqberry:~#
Dans ce cas précis, il n'y a pas d'adresse ip attribuée évidemment...
Dernière modification par sebo83910 (Le 26/08/2017, à 21:07)
Hors ligne
#5 Le 27/08/2017, à 10:25
- xubu1957
Re : connection wifi
Bonjour,
En cherchant à partir de :
aborting authentication by local choice (Reason: 3=DEAUTH_LEAVING)
J'ai ce fil récent > ubuntu-17-04-x64-desktop-can-not-connect-wifi-ap
Donne le noyau utilisé :
uname -r -m
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#6 Le 27/08/2017, à 20:44
- sebo83910
Re : connection wifi
Bonjour,
Je vais regarder le lien.
voici le résultat de la commande:
Linux zynqberry 4.4.0-xilinx #2 SMP PREEMPT Mon Apr 24 20:44:04 CEST 2017 armv7l armv7l armv7l GNU/Linux
Hors ligne
#7 Le 30/08/2017, à 22:33
- ricou33
Re : connection wifi
Bonjour,
J'avais le même problème, il a été résolu en appliquant le correction donnée dans le lien de xubu1957, que je remercie en passant
Hors ligne
Pages : 1
- Forum
- » WiFi
- » connection wifi