My raspbian box have to ping other box first then other host can see my box
I am having a problem with my raspberry pi (running raspbian - Linux raspi 3.6.11+ #506 PREEMPT BST 2013 armv6l GNU/Linux), I cannot ping my pi from any other host in the LAN, unless the pi ping that host first. But my pi doesn't have any problem connecting to the network, and it is still connected to the LAN all the time (I can access pi from the internet, both its ssh and webserver).
So apparently the pi is still connected to the network, only no other hosts could see it (unless other host being pinged first). **lsusb of the pi:** Code:
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. **ifconfig of the pi:** Code:
eth0 Link encap:Ethernet HWaddr b8:27:eb:b7:26:0e Code:
[Sat Aug 3 06:55:13 2013] wlan0: deauthenticated from c8:d7:19:b0:e3:ac (Reason: 7) Why does it kept getting disauthenticated (It happened several time, I just cut the dmesg output). the weird is the pi have ping another host first, if the other host want to ping (let alone connect) to the pi. Have any one had similiar issues? any suggestion? Any help would be appreciated, Thank You before. |
Sounds like a case for running tcpdump oir wireshark on that network.
When you are on the lan but not seen, it's a routing issue usually. Is there a route to your local lan on the raspbian? Something like (presuming your network is 192.169.1.0) Quote:
|
here are the route command output. Is it okay? the router is 192.168.0.1, so I guess the first line is true, but idk where did 192.168.0.0 came from, should I delete it? while the last line is the command you just mention earlier, with a slight change on the ip.
Code:
Kernel IP routing table idk how to put your network on /etc/host/, so I did it this way. Code:
192.168.0/24 milleniumfalcon #milleniumfalcon is the name of the essid |
Here's myrouting table
Code:
bash-4.2$ route -v [CODE]/etc/hosts ... ## hostname_1 IP_1 or URL_1 e.g. mule 192.168.0.1 #My server BSOD 192,168.0.4 #Windows box You can then ping BSOD or mule and get the translation. That holds for http://www type addresses also, or did anyhow back in 1974. Have you fixed IPs or DHCP? |
I didn't need to adjust the routing table to get my Pi working. I suspect this may be a problem with the wifi adapter. Is it plugged into one of the Pi's USB sockets, or a powered USB hub?
Sometimes people have problems with wifi if the wifi adapter isn't getting enough power. The Pi's USB sockets can't supply enough current, so you need to use a powered USB hub. The other problem I've seen is that some times when you reboot your Pi, you also need to power cycle your hub as well. |
I have a pi and you have a 100mA limit on the usb, and often not enough poke in the 5V.
Often the wifi adapter takes over 100mA. Go figure. |
Quote:
Quote:
I am going to try for wireshark if the problem occur again, then I am going to try dnsmasq and report back afterward, but until then any kind of suggestion is aprreciated. Thank You. |
Quote:
|
Ok,
1. Dnsmasq didn't help (I thought it would,dang!).... 2. wireshark shows arp request, but no answer from the raspi, but any other arp request to any other hosts worked just fine. So i tried arping on the first host while tcpdump on the raspberry pi (and another host at the same time - ubuntulaptop), filtering arp request. no arp packet reach the raspi, but the ubuntulaptop receive the packet. arp request are broadcast message right? so is the problem is on the router (linksys E1200)? The E1200 also have the raspi on static ip (while other on dynamic IP). or is it because I port forward some traffic to raspi? and one more thing, this problem happen randomly (or is it?), if it is the router, why would it happen randomly? thank you before |
You've got me now.
Agreed on the diagnosis of the router. All the other boxes are ok on the dhcp server, but whatever you have done with the raspberry pi is not ok. How does it know there's a dhcp server & network out there at all? Maybe a route to the dhcp network would be good, and here we hope you haven't made this messy with your choice of IPs for the raspi |
Quote:
Code:
Kernel IP routing table thank you before. |
All times are GMT -5. The time now is 11:34 AM. |