harrykar ha scritto:
Da 2-3 giorni ho lasciato acceso il PC coll' adapter Dlink incriminato e la connessione viene mantenuta. Buon segnale quindi.
Ok finita la pacchia finora si e' scollegato 3-4 volte. ci risiamo col casuale.
Noto anche che il syslog ha cambiato aspetto per ciò che riguarda il NetworkManager ed altro e il num di messaggi si è notevolmente diminuito. Niente più per esempio l' infinita sfilza di "(wlan0): supplicant connection state change: 0 -> 2" ecc. (guarda
http://pastebin.com/f7b5d66e1). Da stammatina fino ad ora ha prodotto solo le linee che riporto qui giù ....[cut]
Ci risiamo pure con l' infinita sfilza di "(wlan0): supplicant connection state change: 0 -> 2" di syslog (cmq lo fa normalmente allorquando si fa un reboot. Forse passando un certo periodo temporale senza disconnessioni diventa più parsimonioso nel scrivere su syslog )
Prima dell' ormai classico reboot unplug+plug dell' usb adaptor ho dato qualche commando a adaptor non funzionante(dopo una sconnessione e dopo ripetuti tentativi attraverso il network manager purtroppo non riusciti a ricontattare il router) e l' ho confrontata con l' output degli stessi commandi quando l' adaptor funziona. Riporto il tutto nella sez. sottostante sperando che qualcuno possa cavare qualcosa ed aiutarmi ad andare avanti (nono)
Evidenzio le differenze fra i 2 stati di funzionamento
Intanto [glow=red,2,300]quando non funziona[/glow] da wpa supplicant.log ho un continuo periodo di:
Codice: Seleziona tutto
Trying to associate with 00:1d:8b:68:de:c4 (SSID='Alice-xxxxxxxx' freq=2412 MHz)
Authentication with 00:1d:8b:68:de:c4 timed out.
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1d:8b:68:de:c4 (SSID='Alice-xxxxxxxx' freq=2412 MHz)
Authentication with 00:1d:8b:68:de:c4 timed out.
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1d:8b:68:de:c4 (SSID='Alice-xxxxxxxx' freq=2412 MHz)
CTRL-EVENT-SCAN-RESULTS
Authentication with 00:1d:8b:68:de:c4 timed out.
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1d:8b:68:de:c4 (SSID='Alice-xxxxxxxxx' freq=2412 MHz)
Authentication with 00:00:00:00:00:00 timed out.
....ecc.
[glow=red,2,300]quando invece funziona[/glow] ho il seguente periodo di messaggi
Codice: Seleziona tutto
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1d:8b:68:de:c4 (SSID='Alice-xxxxxxxx' freq=2412 MHz)
Associated with 00:1d:8b:68:de:c4
Associated with 00:1d:8b:68:de:c4
Authentication with 00:1d:8b:68:de:c4 timed out.
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:1d:8b:68:de:c4 (SSID='Alice-xxxxxxxxx' freq=2412 MHz)
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
WPA: Key negotiation completed with 00:1d:8b:68:de:c4 [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (reauth) [id=0 id_str=]
Vediamo intanto che raccolto fa il network manager [glow=red,2,300]quando funziona[/glow]
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ nm-tool
NetworkManager Tool
State: connected
- Device: wlan0 ----------------------------------------------------------------
Type: 802.11 WiFi
Driver: ndiswrapper
State: connected
Default: yes
HW Address: 00:11:95:F9:CE:7E
Capabilities:
Supported: yes
Speed: 54 Mb/s
Wireless Settings
WEP Encryption: yes
WPA Encryption: yes
Wireless Access Points(* = Current AP)
*Alice-xxxxxxxx: Infra, 00:1D:8B:68:DE:C4, Freq 2412 MHz, Rate 54 Mb/s, Strength 81 WPA
Wispi-2H: Infra, 00:15:6D:63:75:7C, Freq 2472 MHz, Rate 12 Mb/s, Strength 17 WEP
IPv4 Settings:
Address: 192.168.1.2
Prefix: 24 (255.255.255.0)
Gateway: 192.168.1.1
DNS: 208.67.222.222
DNS: 208.67.220.220
[glow=red,2,300]quando non funziona e quando funziona[/glow]
Identificazione device
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ sudo lsusb
Bus 002 Device 004: ID 059b:007f Iomega Corp.
Bus 002 Device 003: ID 2001:3a02 D-Link Corp. [hex] DWL-G132
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04b4:6830 Cypress Semiconductor Corp. CY7C68300A EZ-USB AT2 USB 2.0 to ATA/ATAPI
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[glow=red,2,300]quando non funziona[/glow]
a)Ok il device name "wlan0"
b)Il driver almeno identifica il dispositivo al kernel come dispositivo wireless ("IEEE 802.11g"). Ok allora
c)Access Point: not associated to router Questo invece è un problema :'(
Nota di striscio: il DWL-G132 potrebbe funzionare fino a 108Mbps se e solo se tutti i device sono Dlink (dal sito dlink)
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ sudo iwconfig
[sudo] password for harrykar:
lo no wireless extensions.
wlan0 IEEE 802.11g ESSID:"Alice-xxxxxxxx"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Bit Rate:108 Mb/s
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pan0 no wireless extensions.
harrykar@harrykar-desktop:~$
[glow=red,2,300]quando invece funziona[/glow]
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ sudo iwconfig
[sudo] password for harrykar:
lo no wireless extensions.
wlan0 IEEE 802.11g ESSID:"Alice-xxxxxxxx"
Mode:Managed Frequency:2.412 GHz Access Point: 00:1D:8B:68:DE:C4
Bit Rate=54 Mb/s
Encryption key:B396-495D-A06C-6E42-D30A-2A31-ED81-B870-E6C3-5E55-3D78-7C1E-71D1-1051-A804-111F Security mode:restricted
Link Quality:76/100 Signal level:-47 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pan0 no wireless extensions.
[glow=red,2,300]quando non funziona[/glow]
a)logical name: wlan0 : Il dispositivo wlan0 è stato riconosciuto
b)"configuration: ...driver=..." indica che il driver è OK
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ sudo lshw -C network
*-network:0
description: Wireless interface
physical id: 1
logical name: wlan0
serial: 00:11:95:f9:ce:7e
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=ndiswrapper+neta5agu driverversion=1.53+D-Link,10/06/2004,1.0.1.41 link=no multicast=yes wireless=IEEE 802.11g
*-network:1 DISABLED
description: Ethernet interface
physical id: 2
logical name: pan0
serial: f6:c0:b1:71:e8:9e
capabilities: ethernet physical
configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A link=yes multicast=yes
harrykar@harrykar-desktop:~$
Per risparmiare righe qui l' unica differenza di 'sto output con quello del dispositivo funzionante è che link=yes quando funziona.
[glow=red,2,300]quando non funziona e quando funziona[/glow]
Check driver: test to make sure driver it's communicating to the kernel.
lsmod reports that the driver is loaded. (and is the same driver name that was listed in the output of lshw,)
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ lsmod | grep ndiswrapper
ndiswrapper 196380 0
usbcore 149360 5 ndiswrapper,usb_storage,libusual,uhci_hcd
harrykar@harrykar-desktop:~$
[glow=red,2,300]quando funziona[/glow]
Shows the driver as communicating and shows that it's probably working as it can complete a wireless interface task
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ sudo iwlist wlan0 scan
[sudo] password for harrykar:
wlan0 Scan completed :
Cell 01 - Address: 00:1D:8B:68:DE:C4
ESSID:"Alice-xxxxxxxx"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality:78/100 Signal level:-46 dBm Noise level:-96 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
Extra:atim=0
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Cell 02 - Address: 00:15:6D:63:75:7C
ESSID:"Wispi-2H"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.472 GHz (Channel 13)
Quality:9/100 Signal level:-90 dBm Noise level:-96 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s
Extra:bcn_int=100
Extra:atim=0
Cell 03 - Address: 00:C0:49:D9:74:4C
ESSID:"USR8054"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:6/100 Signal level:-92 dBm Noise level:-96 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Extra:bcn_int=100
Extra:atim=0
harrykar@harrykar-desktop:~$
Purtroppo non ho fatto l'output quando non funziona (mad)...alla prossima
Now that you have association to the router did you get an ip assigned to the device? Seguuroo

.Già dall' inizio ho assegnato IP statici sui PC(nel router c'è attivo in ogni caso il DHCP server)
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ ifconfig
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:16436 Metric:1
RX packets:613 errors:0 dropped:0 overruns:0 frame:0
TX packets:613 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:43316 (43.3 KB) TX bytes:43316 (43.3 KB)
wlan0 Link encap:Ethernet HWaddr 00:11:95:f9:ce:7e
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:95ff:fef9:ce7e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:68152 errors:0 dropped:0 overruns:0 frame:0
TX packets:58983 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90740246 (90.7 MB) TX bytes:3600223 (3.6 MB)
harrykar@harrykar-desktop:~$ ping -c 4 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=9.54 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=9.40 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=9.25 ms
64 bytes from 192.168.1.1: icmp_seq=4 ttl=64 time=31.0 ms
--- 192.168.1.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3012ms
rtt min/avg/max/mdev = 9.250/14.823/31.092/9.394 ms
harrykar@harrykar-desktop:~$ ping -c 4 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.113 ms
64 bytes from 192.168.1.2: icmp_seq=2 ttl=64 time=0.106 ms
64 bytes from 192.168.1.2: icmp_seq=3 ttl=64 time=0.102 ms
64 bytes from 192.168.1.2: icmp_seq=4 ttl=64 time=0.125 ms
--- 192.168.1.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.102/0.111/0.125/0.013 ms
Il laptop giustamente e' spento adesso. Il ping -c 4 127.0.0.1 invece mi dice che il tcp/ip stack non ha nessun problema. Il cat /etc/resolv.conf mi mostra la modifica dei DNS server da quelli di alice a quelli di opendns(dopo di che pare dico pare che la situazione sia diventata più stabile)
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ ping -c 4 192.168.1.3
PING 192.168.1.3 (192.168.1.3) 56(84) bytes of data.
From 192.168.1.2 icmp_seq=2 Destination Host Unreachable
From 192.168.1.2 icmp_seq=3 Destination Host Unreachable
From 192.168.1.2 icmp_seq=4 Destination Host Unreachable
--- 192.168.1.3 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
, pipe 3
harrykar@harrykar-desktop:~$ ping -c 4 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.120 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.128 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.113 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.113 ms
--- 127.0.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2998ms
rtt min/avg/max/mdev = 0.113/0.118/0.128/0.012 ms
harrykar@harrykar-desktop:~$ cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 208.67.222.222
nameserver 208.67.220.220
TODO
Il problema a quanto pare è il
Router-adapter Connection
1.devo provare il comportamento con open signal ossia senza crypto
2. devo provare a fare il boot con kernel che soddisfa acpi=off o noacpi in ogni caso (qualcuno suggerisca come in Intrepid: dalla schermata di boot appena premuto esc e poi...?)
3. Dal link che ho postato. Ho fatto a meta la 5.1.1 da parte del router ma allora non sono andato oltre perchè settando il canale 11 ho notato una notevole riduzione della potenza del segnale sia da parte di ubuntu che di win XP pro. Devo riprovare. La 5.1.2 invece mi intriga
5.1. Dropped Connections
1. One common problem is channel interference. Cordless phones and other wireless devices can interrupt your wireless connection. If you are having a problem with dropped connections then try using a different channel.
2. Network-Manager; Wifi-radar; and gtk wifi can cause dropped signals every so often as they scan the interfaces, causing the connection to drop. You can try uninstalling these apps to see if your problem goes away, but doing so will remove any GUI tools that you may or may not have been using to configure and monitor your wireless connections. If removing these tools solves your problem, please file a bug report on the product's launchpad page to help improve the app's performance.
4. Purtroppo il firmware del router non lo posso toccare(perderei la garanzia) dipende dal ISP alice (se lo fa lui)
?. ho letto da qualche parte se non ricordo male che potrebbe essere anche la gui del firewall firestarter che io uso ma in 1ma approssimazione credo che sia una "boiata" . Cmq ecco a voi ipfilter
Codice: Seleziona tutto
harrykar@harrykar-desktop:~$ sudo iptables -L
[sudo] password for harrykar:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- resolver1.opendns.com anywhere tcp flags:!FIN,SYN,RST,ACK/SYN
ACCEPT udp -- resolver1.opendns.com anywhere
ACCEPT tcp -- resolver2.opendns.com anywhere tcp flags:!FIN,SYN,RST,ACK/SYN
ACCEPT udp -- resolver2.opendns.com anywhere
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere limit: avg 10/sec burst 5
DROP all -- BASE-ADDRESS.MCAST.NET/8 anywhere
DROP all -- anywhere BASE-ADDRESS.MCAST.NET/8
DROP all -- 255.255.255.255 anywhere
DROP all -- anywhere 0.0.0.0
DROP all -- anywhere anywhere state INVALID
LSI all -f anywhere anywhere limit: avg 10/min burst 5
INBOUND all -- anywhere anywhere
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level info prefix `Unknown Input'
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere limit: avg 10/sec burst 5
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level info prefix `Unknown Forward'
Chain OUTPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- 192.168.1.2 resolver1.opendns.com tcp dpt:domain
ACCEPT udp -- 192.168.1.2 resolver1.opendns.com udp dpt:domain
ACCEPT tcp -- 192.168.1.2 resolver2.opendns.com tcp dpt:domain
ACCEPT udp -- 192.168.1.2 resolver2.opendns.com udp dpt:domain
ACCEPT all -- anywhere anywhere
DROP all -- BASE-ADDRESS.MCAST.NET/8 anywhere
DROP all -- anywhere BASE-ADDRESS.MCAST.NET/8
DROP all -- 255.255.255.255 anywhere
DROP all -- anywhere 0.0.0.0
DROP all -- anywhere anywhere state INVALID
OUTBOUND all -- anywhere anywhere
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere LOG level info prefix `Unknown Output'
Chain INBOUND (1 references)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- 192.168.1.0/24 anywhere
ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpts:netbios-ns:netbios-ssn
ACCEPT udp -- 192.168.1.0/24 anywhere udp dpts:netbios-ns:netbios-ssn
ACCEPT tcp -- 192.168.1.0/24 anywhere tcp dpt:microsoft-ds
ACCEPT udp -- 192.168.1.0/24 anywhere udp dpt:microsoft-ds
LSI all -- anywhere anywhere
Chain LOG_FILTER (5 references)
target prot opt source destination
Chain LSI (2 references)
target prot opt source destination
LOG_FILTER all -- anywhere anywhere
LOG tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 1/sec burst 5 LOG level info prefix `Inbound '
DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5 LOG level info prefix `Inbound '
DROP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/RST
LOG icmp -- anywhere anywhere icmp echo-request limit: avg 1/sec burst 5 LOG level info prefix `Inbound '
DROP icmp -- anywhere anywhere icmp echo-request
LOG all -- anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Inbound '
DROP all -- anywhere anywhere
Chain LSO (0 references)
target prot opt source destination
LOG_FILTER all -- anywhere anywhere
LOG all -- anywhere anywhere limit: avg 5/sec burst 5 LOG level info prefix `Outbound '
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
Chain OUTBOUND (1 references)
target prot opt source destination
ACCEPT icmp -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
harrykar@harrykar-desktop:~$
PS:
Ok lo ammetto ho fatto dei test anche inutili. E già nel scrivere il post si è sconnesso 2 volte la prima c'è l'ha fatta a riprendere il collegamento automaticamente la 2nda sfortunatamente no. Mi tocca fare la tiratella del reboot (previo copy past del post, uplug-plug dell' usb adapter ecc.) non provo neanche a farlo ripartire facendo clik su network manager....eeppure e' una delle rare volte che e' ripartito faccendo clik su nm evviva (b2b)...spetta-spetta l'ha persa di nuovo sta cercando di riccollegarsi mannaggia non ce l' ha fatta. Rifaccio clik ... e ddai bello ... non ce la fa non ce la fa, Riprovo(luce verde fissa lnk , intermittente in Act) niente da fare. Dopo LOL 'sta quasi scontata cronaca in diretta vi saluto con un reboot e alla prossima spero definitiva._
Stay tuned ... To be continued ;)
[/quote]