PDA

View Full Version : suse 10.1 e portatile acer ferrari 4002


cicvsalba
17-09-2006, 22:25
Ciao a tutti. Ho suse linux 10.1 32bit. Ho seguito alla lettera l'how to di ndiswrapper e ho fatto rilevare la scheda wireless con i driver win. La luce si accende e facendo iwlist scanning mi trova il router. Ora mi chiedo, cosa manca ancora per navigare visto che non va? In yast ancora non me la rileva (la scheda lan eth0 è configurata e funziona perfettamente).

iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"DLINK_WIRELESS"
Mode:Managed Frequency:2.437 GHz Access Point: 00:15:E9:CA:75:2E
Bit Rate:36 Mb/s Tx-Power:25 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key: (è riportata quella giusta! n.d.r) Security mode:restricted
Power Management:off
Link Quality:100/100 Signal level:-71 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

sit0 no wireless extensions.


ifconfig

eth0 Link encap:Ethernet HWaddr 00:C0:9F:D3:29:F7
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:225

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:298 errors:0 dropped:0 overruns:0 frame:0
TX packets:298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26231 (25.6 Kb) TX bytes:26231 (25.6 Kb)

wlan0 Link encap:Ethernet HWaddr 00:14:A4:3D:6F:30
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:a4ff:fe3d:6f30/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2343 (2.2 Kb) TX bytes:4370 (4.2 Kb)
Interrupt:169 Memory:c0304000-c0306000


iwlist scanning

lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wlan0 Scan completed :
Cell 01 - Address: 00:15:E9:CA:75:2E
ESSID:"DLINK_WIRELESS"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-72 dBm Noise level:-256 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=200
Extra:atim=0

sit0 Interface doesn't support scanning.

route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.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
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

Ora l'how to dice: setta correttamente i parametri della wlan0. Questo dipende dalle varie distribuzioni. Dando ifconfig wlan0 192.168.1.8 (non uso dhcp) up, me la mette... ma non riesco a pingare il router. Ho dato modprobe ndiswrapper ma non ancora ndiswrapper -m xkè la guida dice di farlo quando va tutto bene... la mia domanda è: come fa la scheda wireless a connettersi al router senza particolari comandi? Cosa manca per farla funzionare?

cicvsalba
18-09-2006, 22:26
Ora riesco a pingare in router e dal browser a loggarmi con esso, ma non a navigare nè con il nome nè con gli indirizzi ip.

merut82
19-09-2006, 11:42
Ora riesco a pingare in router e dal browser a loggarmi con esso, ma non a navigare nè con il nome nè con gli indirizzi ip.
Hai impostato i DNS?

cicvsalba
19-09-2006, 14:23
si e penso sia universale perchè con l'eth0 navigo senza problemi, sono impostati in /etc/resolv.conf

cicvsalba
20-09-2006, 09:53
Scrivo meglio alcuni comandi e stranezze che ho rilevato

# iwlist scanning:

lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wlan0 Scan completed :
Cell 01 - Address: 00:15:E9:CA:75:2E
ESSID:"DLINK_WIRELESS"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-72 dBm Noise level:-256 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:bcn_int=200
Extra:atim=0

sit0 Interface doesn't support scanning.

# iwconfig wlan0 essid DLINK WIRELESS
# iwconfig wlan0 key restricted (chiave WEP)
# iwconfig:

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"DLINK_WIRELESS"
Mode:Managed Frequency:2.437 GHz Access Point: 00:15:E9:CA:75:2E
Bit Rate:36 Mb/s Tx-Power:25 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key: (è riportata quella giusta! n.d.r) Security mode:restricted
Power Management:off
Link Quality:100/100 Signal level:-71 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

sit0 no wireless extensions.

# route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

# ifconfig wlan0 192.168.1.8 up
# ifconfig

eth0 Link encap:Ethernet HWaddr 00:C0:9F:D3:29:F7
inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:225

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:298 errors:0 dropped:0 overruns:0 frame:0
TX packets:298 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:26231 (25.6 Kb) TX bytes:26231 (25.6 Kb)

wlan0 Link encap:Ethernet HWaddr 00:14:A4:3D:6F:30
inet addr:192.168.1.8 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::214:a4ff:fe3d:6f30/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:44 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2343 (2.2 Kb) TX bytes:4370 (4.2 Kb)
Interrupt:169 Memory:c0304000-c0306000

# route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.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
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

# ping -I 192.168.1.8 192.168.1.1
From 192.168.1.8 icmp_seq=1 Destination Host Unreachable

# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 wlan0 (solo digitando questo poi mi releva il router, ad accedervi tramite browser e a pingare il pc desktop.)

# route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0 wlan0
192.168.1.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
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

# ping -I 192.168.1.8 192.168.1.1
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=6.20 ms

Però è strano perchè se do ping -I 192.168.1.7 192.168.1.1 che è il cavo eth0 mi dice che lo raggiunge lo stesso.
Pingando 66.249.85.99 (dovrebbe essere google) non lo raggiunge. Il firewall ho detto di distattivarlo da yast e di non caricarlo all'avvio.
Se spengo il wifi e attacco il cavo, navigo in internet ma:
ping -I 192.168.1.8 192.168.1.1
ping -I 192.168.1.7 192.168.1.1
falliscono entrambi. Invece ha successo ping www.google.com.
Inizio a pensare ci sia un casino nel routing.
Poi se accendo ancora il wifi devo reimpostare con iwconfig l'essid e la chiave wep.

Appena accendo il pc (visto che il wifi non si configura in automatico) tutti i comandi funzionano correttamente:

# ping -I 192.168.1.7 192.168.1.1
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=6.20 ms

Lo stesso per google.com.
Inoltre:
# ping -I 192.168.1.8 192.168.1.1
bind: Cannot assign requested address.

I DNS sono impostati correttamente nel file /etc/resolv.conf perchè col cavo navigo senza problemi. Qualcuno ha idea di cosa manchi per navigare dai browser?

cicvsalba
20-09-2006, 17:10
Ho risolto! Prima di tutto si installa ndiswrapper e si fa tutto quello che c'è scritto sull'howto.
Sono andato in yast, dispositivi di rete, scheda di rete, aggiungi, tipo dispositivo: wireless, nome di configurazione: 0 (o quello che si vuole), nome di configurazione hardware: static-1, e qui viene il bello! nome del modulo: ndiswrapper. Poi si configurano tutti i parametri normalmente. E ora naviga! :D

cicvsalba
22-09-2006, 15:28
Che stranezza! Nel modo che ho descritto naviga per due pagine poi no n ne carica più! Invece aggiungendo anche il comando
# route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 wlan0

Sembra navigare correttamente.

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0 wlan0
192.168.1.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
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0

Le righe wlan0 sono state aggiunte da Yast, tranne la prima che è il risultato del comando. Qualcuno ci capisce qualcosa del modo che ha Yast di configurare il routing? Mi confonde le idee, non mi è chiaro! Soprattutto il perchè di fare due righe con eth0 e wlan0. Non ne basta una con tutti i parametri settati come la prima riga?