User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

[SOLVED] Can't ping from non-Pi computer

Mon Dec 08, 2014 6:54 am

I have a laptop running Mint 17 and Windows 7 and two Pis, a model B connected via a wired ethernet connection and a model A connected wirelessly.

I can ping and SSH into the Model B from any computer on the network, but I can only SSH into the Model A from the Model B! Additionally, the router (which is providing a DHCP address to the Model A) can ping the Model A, and I can try to ping the model A by hostname from the laptop but despite it resolving the IP address it doesn't get a response.

I have tried connecting my laptop to a wired ethernet connection thinking that maybe there was an issue with communicating between two wireless devices on my router, I've tried giving the model A a static IP address. No matter what I do for some reason the Model A will only respond when I communicate from another pi.


Edit: The solution appears to be that either wpa_supplicant or the drives used for my wifi adapter needed to be updated, doing a sudo apt-get update && sudo apt-get upgrade did the trick
Dear forum: Play nice ;-)

User avatar
DougieLawson
Posts: 37111
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Can't ping from non-Pi computer

Mon Dec 08, 2014 9:48 am

What firewall do you have in your router? Is it restricting local machines?
What firewall options do you have on your RPi? iptables -L -n should show what's defined.
What options did you pick for your home network in Windows? Have you defined your home network as a trusted private network?
Control panel --> System & security --> Windows firewall.

Can't ask about Mac/OSX because I've never used it. But, I'd guess it will also have a software firewall.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
aTao
Posts: 1089
Joined: Wed Dec 12, 2012 10:41 am
Location: Howlin Eigg

Re: Can't ping from non-Pi computer

Mon Dec 08, 2014 10:31 am

try tracert, or is it traceroute on Windows.
>)))'><'(((<

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 4:27 am

The firewall on the router only restricts inbound traffic coming in the WAN port

I have the firewall on the windows machine turned off completely

I get the error message

Code: Select all

ERROR: could not insert 'ip_tables': Operation not permitted
iptables v1.4.14: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
when I run iptables -L -n

Mint 17 is a linux distro :lol: I refuse to have an Apple product in my home. :ugeek:
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 4:29 am

aTao wrote:try tracert, or is it traceroute on Windows.
tracert (windows) fails just like ping with no hops

running traceroute (linux) from the pi that can communicate with it does a show a single hop straight to my destination address.
Dear forum: Play nice ;-)

User avatar
rpdom
Posts: 16116
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 7:57 am

At this stage I'd start carefully scrutinising IP addresses and netmasks for typos.

User avatar
aTao
Posts: 1089
Joined: Wed Dec 12, 2012 10:41 am
Location: Howlin Eigg

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 12:09 pm

abishur wrote: running traceroute (linux) from the pi that can communicate with it does a show a single hop straight to my destination address.
Wot no router.


That sounds very wrong. I am surprised there is no router showing in there...
>)))'><'(((<

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 2:32 pm

rpdom wrote:At this stage I'd start carefully scrutinising IP addresses and netmasks for typos.
I can guarantee that the netmasks and IP addresses in use are correct, they were provided with dhcp (I have also tried making the IP addresses static and yes the netmask and address were correct then also).
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 2:33 pm

aTao wrote:
abishur wrote: running traceroute (linux) from the pi that can communicate with it does a show a single hop straight to my destination address.
Wot no router.


That sounds very wrong. I am surprised there is no router showing in there...
I'm using an Actiontec MI424WR router, not sure why it doesn't show the router in the middle, it is the one providing IP addresses.
Dear forum: Play nice ;-)

User avatar
rpdom
Posts: 16116
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 3:58 pm

If the systems are all on the same subnet then there is no routing involved. The router will be acting as a switch and be invisible at the IP level.

It will only show as a "hop" if routing outside the subnet.

Or have I got it wrong and these systems are on different subnets?

User avatar
aTao
Posts: 1089
Joined: Wed Dec 12, 2012 10:41 am
Location: Howlin Eigg

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 4:47 pm

rpdom wrote:If the systems are all on the same subnet then there is no routing involved. The router will be acting as a switch and be invisible at the IP level.

It will only show as a "hop" if routing outside the subnet.

Or have I got it wrong and these systems are on different subnets?
My bad. Router dosent show up.
>)))'><'(((<

User avatar
aTao
Posts: 1089
Joined: Wed Dec 12, 2012 10:41 am
Location: Howlin Eigg

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 4:56 pm

things to try.

plug your RPi B in as the RPI A was (ie WiFi). ping from PC
replace network as was.
get a fresh copy of rasbian on the RPi A do as little as possible to get it connected via WiFi
from RPi A ping RPi B and PC
>)))'><'(((<

Dutch_Master
Posts: 362
Joined: Sat Jul 27, 2013 11:36 am

Re: Can't ping from non-Pi computer

Wed Dec 10, 2014 5:13 pm

One advantage of the RPi is that it's easy to swap OS's. Swap the SD card of the Model A with the one of Model B, then see if you can connect to either from the laptop. Report your findings :)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Sat Dec 13, 2014 7:32 pm

Okay, I tried to swap pis and the problem persisted. I'll try a fresh install and see if that clears things up. I'm starting to wonder if it's the Wi-Fi adapter I'm using....
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Sat Dec 13, 2014 8:27 pm

I did a fresh install of raspbian and I'm still having the same problem. The router can ping the model A, the Model B can ping the Model A, but no other device on the network can ping the model A!

I've also removed the wireless adapter as a possible failure point, I've previously used this adapter on a pi and was able to remote into it without any problems, though I suppose a driver update in a more recent version of raspbian could be causing issues? :?:
Dear forum: Play nice ;-)

User avatar
DougieLawson
Posts: 37111
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Can't ping from non-Pi computer

Sat Dec 13, 2014 8:35 pm

What are the other devices running (Windows, linux, OSX, somethng else)? What software firewalls are running on them?
Have you configured your LAN network as "private & trusted" on Windows?

Does your router/switch/hub/access point have any controls for ICMP packets?
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Sat Dec 13, 2014 8:40 pm

DougieLawson wrote:What are the other devices running (Windows, linux, OSX, somethng else)? What software firewalls are running on them?
Have you configured your LAN network as "private & trusted" on Windows?

Does your router/switch/hub/access point have any controls for ICMP packets?
I've tried using window and linux firewalls disabled in both of them. Router does not control ICMP packets.
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Sat Dec 13, 2014 8:46 pm

Additional network information

my interfaces file

Code: Select all

  GNU nano 2.2.6         File: /etc/network/interfaces                          

auto lo

iface lo inet loopback
#iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

iface home inet dhcp
my wpa_supplicant file (with some redaction ;) )

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
ssid="nope"
psk="yeahRight!"
proto=RSN
key_mgmt=WPA-PSK
pairwise=TKIP
id_str="home"
auth_alg=OPEN
}
Dear forum: Play nice ;-)

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Can't ping from non-Pi computer

Sat Dec 13, 2014 8:54 pm

I think it just got solved! After installing it fresh I just did the apt-get update/upgrade and during the process I noticed it did an upgrade to wpa_conf. As soon as it was done, lo and behold I was able to ping the pi directly.

Which makes sense, back when I previously used this wifi adapter with the pi, I didn't bother using WPA supplicant and just had all my info right there in the interfaces file.

Edit: Just noticed it also did an update to BRCM80211 which I believe covers the chipset being used by my wifi adatper. Regardless I'm now happily communicating with the pi, thanks guys!
Dear forum: Play nice ;-)

Return to “Troubleshooting”