fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Cannot ping local network (Wifi only)

Mon Oct 15, 2012 12:34 am

I have setup Wifi using a USB dongle.

I can SSH into my Pi now that's not connected via ethernet to prove that Wifi works.

Pinging Google works just fine and I can surf the web, check email, etc.

The problem is that I can't PING the IP address of devices connected to the same Wifi network.

The problem is that if I'm connected via Wifi I can't PING my iPhone that's connected to the same Wifi network.

iPhone (Wifi): 192.168.10.66 - Destination Host Unreachable.
Other Desktop (Ethernet): 192.168.10.94 - Working just fine.

This is my current /etc/network/interface:

Code: Select all

# The ethernet interface.
auto lo

iface lo inet loopback
iface eth0 inet dhcp

# The wireless interface.
allow-hotplug wlan0
auto wlan0

iface default inet dhcp
iface wlan0 inet dhcp

wpa-ssid "HOME-WACCESS"
wpa-psk "FOOBAR"

fulvio
Posts: 17
Joined: Tue Sep 25, 2012 5:29 am

Re: Cannot ping local network (Wifi only)

Mon Oct 15, 2012 2:17 am

UPDATE:

This is my Wifi "ifconfig":

Code: Select all

pi@raspberrypi:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:d9:1b:40
          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)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:717 errors:0 dropped:0 overruns:0 frame:0
          TX packets:717 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:80304 (78.4 KiB)  TX bytes:80304 (78.4 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:0b:81:85:76:d1
          inet addr:192.168.10.95  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:53541 errors:0 dropped:54344 overruns:0 frame:0
          TX packets:1544 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:50415385 (48.0 MiB)  TX bytes:196911 (192.2 KiB)
This is the Ethernet "ifconfig":

Code: Select all

pi@raspberrypi:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:d9:1b:40
          inet addr:192.168.10.126  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:180 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19331 (18.8 KiB)  TX bytes:10456 (10.2 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:717 errors:0 dropped:0 overruns:0 frame:0
          TX packets:717 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:80304 (78.4 KiB)  TX bytes:80304 (78.4 KiB)

Humble_Pi
Posts: 4
Joined: Wed Jun 13, 2012 10:25 pm

Re: Cannot ping local network (Wifi only)

Sun Nov 11, 2012 11:09 pm

I have the same problem, however it seems to be specific to my wireless router at home, if I connect to a Wifi hotspot created by my phone I can ping other devices connected to this WLAN and the PI responds to pings. If I'm connected to my Home WLAN I can only ping my router and my Ubuntu PC all other devices do not respond. The PI itself is un-pingable and will not respond to SSH, but can ping and http to devices on the Internet.

tbgun12
Posts: 1
Joined: Sat Dec 08, 2012 5:05 pm

Re: Cannot ping local network (Wifi only)

Sat Dec 08, 2012 5:06 pm

I have the same issue (everything works on ethernet, but cannot ping or ssh into the pi over wifi). The pi itself can ping out and browse the internet over wifi just fine. Any solutions?

jamiesk
Posts: 95
Joined: Mon Nov 26, 2012 8:48 pm
Location: Ipswich, Suffolk, England, UK.

Re: Cannot ping local network (Wifi only)

Sat Dec 08, 2012 7:41 pm

Some access points do not allow things on the wifi to talk to each other. Its like an internet cafe setting to stop someone hacking your laptop from theirs. Have a look on your access point or ADSL router for its wireless settings.
Pi1 (Nov 2012 loft)= 1KW immersion controller for Solar panel
Pi2 (Jan 2013 living room)=Play thing
Pi3 (Feb 2013 mobile)= Play thing with Tandy Ladder board,breakout board,Nokia display
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=28193

Return to “Troubleshooting”