I'm trying to get rpi to connect to the Internet via wifi (wlan0) - it will connect to a mobile hotspot. It also has to have wired connection (eth0) to a router that is not connected to the Internet.
My desktop PC is also connected to the router. I'm doing this so that I can access a web application running on rpi from my desktop pc, while rpi has its own wifi connection to the Internet.
I understand that this is a bit strange, but this is the only way that I can run local web applications in my office without hopefully breaking any security policies.
I've followed the instructions on this post. My rpi can only ping www.google.com but not my router 192.168.1.1.
I've been tinkering around for over two hours now but I still can't have it so that rpi will respond when I ping from my desktop pc, and at the same time google will respond when I ping www.google.com from rpi.
I'd really appreciate it if someone could give me a hand on this...
ping -I eth0 192.168.1.1
? <-- that is a capital i and not a lowercase l before eth0...What IP address does eth0 have ? – Lawrence Sep 26 '13 at 05:45netstat -r
show? – HeatfanJohn Sep 26 '13 at 13:40ping -I eth0 192.168.1.1
gives me the following response: "from 192.168.1.42 icmp_seq=1 Destination Host Unreachable" – Ji Park Sep 27 '13 at 01:46route
output ? – Lawrence Sep 27 '13 at 02:01netstat -r
shows http://imgur.com/19g4KAs – Ji Park Sep 27 '13 at 02:07route
outputs the same thing thatnetstat -r
outputs. http://imgur.com/19g4KAs – Ji Park Sep 27 '13 at 02:08