Wireless "Connection Failure"

La mia situazione attuale dopo vari passaggi e reinstallazioni è la seguente (ancora peggio di prima):

ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:BF:7A:8C
          inet addr:192.168.1.70  Bcast:192.168.1.255
Mask:255.255.255.0
          inet6 addr: fe80::20e:a6ff:febf:7a8c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6162 errors:0 dropped:0 overruns:0 
frame:0
          TX packets:4697 errors:0 dropped:0 overruns:0 
carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4118023 (3.9 MiB)  TX bytes:900990 (879.8KiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:F1:2F:B3:84
          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:20 Base address:0xc000 Memory:fe8fd000-fe8fdfff

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:1696 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1696 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3841294 (3.6 MiB)  TX bytes:3841294 (3.6 MiB)
iwconfig
lo        no wireless extensions.

eth1      unassociated  ESSID:off/any  Nickname:"SMC"
          Mode:Managed  Channel=0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:16 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management: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

eth0      no wireless extensions.

Mi sembra ci sia qualcosa che non vada
:-o

pronti. via…
1 - controlla che nel file:

gedit /etc/wpa_supplicant.conf

ci siano le righe:
network={
ssid=“SMC”
psk=“password”( in chiaro)
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP TKIP
}

2 - dammi l’output di:

lsmod |grep ipw

ifconfig

iwconfig

virus il mio file wpa_supplicant.conf sta nella cartella /etc/wpa_supplicant
ed è questo:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
ssid="SMC"
psk="password"
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP TKIP
}
lsmod |grep ipw
ipw2100                64497  0
ieee80211              30985  1 ipw2100
ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:BF:7A:8C
          inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:a6ff:febf:7a8c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26770 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18836 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26190729 (24.9 MiB)  TX bytes:3801820 (3.6 MiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:F1:2F:B3:84
          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:20 Base address:0xc000 Memory:fe8fd000-fe8fdfff

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:1696 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1696 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3841294 (3.6 MiB)  TX bytes:3841294 (3.6 MiB)
iwconfig
lo        no wireless extensions.

eth1      unassociated  ESSID:off/any  Nickname:"SMC"
          Mode:Managed  Channel=0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:16 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management: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

eth0      no wireless extensions.

1 - il percorso completo è : /etc/wpa_supplicant/wpa_supplicant.conf esatto?
2 - elimina queste due righe (almeno per il momento) dal file in questione.
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
dammi ricevuto…

Si il percorso è quello.
Eliminate le prime due righe OK

cat wpa_supplicant.conf

network={
ssid="SMC"
psk="password"
key_mgmt=WPA-PSK
proto=WPA
pairwise=CCMP TKIP
}

dai i seguenti comandi:

service NetworkManager stop

service NetworkManagerDispatcher stop

service wpa_supplicant stop

iwconfig eth1 essid “SMC”

iwconfig eth1 mode Managed

iwconfig eth1 ap 00:13:F7:53:CD:4C

ifconfig eth1 192.168.1.71 netmask 255.255.255.0 up

route add default gw 192.168.1.1 dev eth1

wpa_supplicant -Dipw -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd -B

dammi eventuali segnalazione di errore, se non ce ne sono dammi l’output di ifconfig e di iwconfig

[root@localhost wpa_supplicant]# service NetworkManager status
NetworkManager interrotto
[root@localhost wpa_supplicant]# service NetworkManagerDispatcher status
NetworkManagerDispatcher interrotto
[root@localhost wpa_supplicant]# service wpa_supplicant stop
Interruzione di wpa_supplicant:                              OK  ]
[root@localhost wpa_supplicant]# iwconfig eth1 essid "SMC"
[root@localhost wpa_supplicant]# iwconfig eth1 mode Managed
[root@localhost wpa_supplicant]# iwconfig eth1 ap 00:13:F7:53:CD:4C
[root@localhost wpa_supplicant]# ifconfig eth1 192.168.1.71 netmask 255.255.255.0 up
[root@localhost wpa_supplicant]# route add default gw 192.168.1.1 dev eth1
[root@localhost wpa_supplicant]# wpa_supplicant -Dipw -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd -B
Initializing interface 'eth1' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'ipw' ctrl_interface 'N/A' bridge 'N/A'
Unsupported driver 'ipw'.

Failed to add interface eth1
Cancelling scan request
Cancelling authentication timeout

Driver ipw non supportato?

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:BF:7A:8C
          inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:a6ff:febf:7a8c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29161 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20759 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28030072 (26.7 MiB)  TX bytes:4627797 (4.4 MiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:F1:2F:B3:84
          inet addr:192.168.1.71  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:20 Base address:0xc000 Memory:fe8fd000-fe8fdfff

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:1696 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1696 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3841294 (3.6 MiB)  TX bytes:3841294 (3.6 MiB)

# iwconfig
lo        no wireless extensions.

eth1      unassociated  ESSID:"SMC"  Nickname:"SMC"
          Mode:Managed  Channel=0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:16 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management: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

eth0      no wireless extensions.

dammi il responso di ifconfig iwconfig e route

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:BF:7A:8C
          inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:a6ff:febf:7a8c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:29161 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20759 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28030072 (26.7 MiB)  TX bytes:4627797 (4.4 MiB)

eth1      Link encap:Ethernet  HWaddr 00:0C:F1:2F:B3:84
          inet addr:192.168.1.71  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:20 Base address:0xc000 Memory:fe8fd000-fe8fdfff

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:1696 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1696 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3841294 (3.6 MiB)  TX bytes:3841294 (3.6 MiB)

# iwconfig
lo        no wireless extensions.

eth1      unassociated  ESSID:"SMC"  Nickname:"SMC"
          Mode:Managed  Channel=0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power:16 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management: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

eth0      no wireless extensions.

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

ok.
ora :

service wpa_supplicant stop

wpa_supplicant -Dwext-ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd -B

ridammi ifconfig iwconfig route

wpa_supplicant -Dwext-ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd -B
wpa_supplicant v0.5.7
Copyright (c) 2003-2006, Jouni Malinen <[email protected]> and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.

This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/)

usage:
  wpa_supplicant -BddehLqquvwW] -P<pid file>] -g<global ctrl>] \
        -i<ifname> -c<config file> -C<ctrl>] -D<driver>] -p<driver_param>] \
        -b<br_ifname> -N -i<ifname> -c<conf> -C<ctrl>] -D<driver>] \
        -p<driver_param>] -b<br_ifname>] ...] -f] \

drivers:
  wext = Linux wireless extensions (generic)
  hostap = Host AP driver (Intersil Prism2/2.5/3)
  prism54 = Prism54.org driver (Intersil Prism GT/Duette/Indigo)
  madwifi = MADWIFI 802.11 support (Atheros, etc.)
  atmel = ATMEL AT76C5XXx (USB, PCMCIA)
  ndiswrapper = Linux ndiswrapper
  wired = wpa_supplicant wired Ethernet driver
options:
  -b = optional bridge interface name
  -B = run daemon in the background
  -c = Configuration file
  -C = ctrl_interface parameter (only used if -c is not)
  -i = interface name
  -d = increase debugging verbosity (-dd even more)
  -D = driver name
  -f = Log output to /var/log/wpa_supplicant.log
  -g = global ctrl_interface
  -K = include keys (passwords, etc.) in debug output
  -t = include timestamp in debug messages
  -h = show this help text
  -L = show license (GPL and BSD)
  -p = driver parameters
  -P = PID file
  -q = decrease debugging verbosity (-qq even less)
  -u = enable DBus control interface
  -v = show version
  -w = wait for interface to be added, if needed
  -W = wait for a control interface monitor before starting
  -N = start describing new interface
example:
  wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

What’s happened? :-o

errore di battitura:

wpa_supplicant -Dwext -ieth1 -c/etc/wpa_supplicant/wpa_supplicant.conf -dd -B

dammi ifconfig iwconfig route

Ok ecco quello che mi hai chiesto:

[code]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0E:A6:BF:7A:8C
inet addr:192.168.1.70 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:a6ff:febf:7a8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33038 errors:0 dropped:0 overruns:0 frame:0
TX packets:24091 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30809890 (29.3 MiB) TX bytes:6452123 (6.1 MiB)

eth1 Link encap:Ethernet HWaddr 00:0C:F1:2F:B3:84
inet addr:192.168.1.71 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20c:f1ff:fe2f:b384/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:113 (113.0 b) TX bytes:1769 (1.7 KiB)
Interrupt:20 Base address:0xc000 Memory:fe8fd000-fe8fdfff

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:1696 errors:0 dropped:0 overruns:0 frame:0
TX packets:1696 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3841294 (3.6 MiB) TX bytes:3841294 (3.6 MiB)

iwconfig

lo no wireless extensions.

eth1 IEEE 802.11b ESSID:“SMC” Nickname:“SMC”
Mode:Managed Frequency:2.437 GHz Access Point: 00:13:F7:53:CD:4C
Bit Rate=11 Mb/s Tx-Power:16 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:0000-0000-0000-0000-0000-0000-00 Security mode:open
Power Management:off
Link Quality=100/100 Signal level=-47 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[/code]

molto bene. :slight_smile:
ora ci siamo incrocia le dita:

ping -I eth1 192.168.1.1

dammi il responso

:hammer: :hammer: :hammer: :hammer: :hammer:

NIENTE DA FARE

ping -I eth1 192.168.1.1
PING 192.168.1.1 (192.168.1.1) from 192.168.1.71 eth1: 56(84) bytes of data.
From 192.168.1.71 icmp_seq=2 Destination Host Unreachable
From 192.168.1.71 icmp_seq=3 Destination Host Unreachable
From 192.168.1.71 icmp_seq=4 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4999ms
, pipe 3

Scusa Virus ma sta cosa è normale?

eth1 Link encap:Ethernet

:oops:

dammi l’output di:

iwlist eth1 scanning

iwlist eth1 modulation

domanda il tuo access point usa il protocollo:
IEEE 802.11b
o
IEEE 802.11g
?

iwlist eth1 scanning
eth1      Scan completed :
          Cell 01 - Address: 00:13:F7:53:CD:4C
                    ESSID:"SMC"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s
                    Quality:86  Signal level:0  Noise level:0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                       Preauthentication Supported
                    Extra: Last beacon: 210ms ago
          Cell 02 - Address: 00:19:3E:85:B3:4A
                    ESSID:"Alice-62649038"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    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
                    Quality:16  Signal level:0  Noise level:0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    Extra: Last beacon: 14282ms ago

# iwlist eth1 modulation
eth1      unknown modulation information.

Guarda se pingo dal router su questo ip mi da questo

64 bytes of data from 192.168.1.71, seq=0 ttl=64 rtt<10 msec
64 bytes of data from 192.168.1.71, seq=1 ttl=64 rtt<10 msec
64 bytes of data from 192.168.1.71, seq=2 ttl=64 rtt<10 msec
64 bytes of data from 192.168.1.71, seq=3 ttl=64 rtt<10 msec

-------------------- Ping Statistics --------------------
4 packets transmitted, 4 packets received, 0 percent packet loss

Il router utilizza 802.11b