Page 1 of 1
Internet access on RPi
Posted: Tue Jul 15, 2014 11:46 am
by tadejkkk
Hi. I'm using my RPi via SHH. I'm on a laptop with wifi internet connection. In wireless connection network i've set to allow network sharing. Because of that i get my static IPv4 adress on local area network 192.168.137.1. So i changed the ip of my RPi on 192.168.137.9 and when i try to ping it from my laptop i get a lot of traffic, but when i try to ping my laptop from RPi i get nothing. I also can't access the internet on RPi. Anyone know the problem?
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 12:00 pm
by FLYFISH TECHNOLOGIES
Hi,
Provide output of sudo ifconfig command executed on RasPi.
Best wishes, Ivan Zilic.
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 12:56 pm
by tadejkkk
Code: Select all
sudo ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:1a:ce:c0
inet addr:192.168.137.9 Bcast:192.168.137.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7640 errors:0 dropped:0 overruns:0 frame:0
TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:429344 (419.2 KiB) TX bytes:44511 (43.4 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1344 (1.3 KiB) TX bytes:1344 (1.3 KiB)
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 1:03 pm
by FLYFISH TECHNOLOGIES
Hi,
This seems normal... Next idea: check firewall settings on the laptop.
Best wishes, Ivan Zilic.
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 1:31 pm
by tadejkkk
If i turn off the firewall i can ping my laptop from RPi, but the internet connection still doesn't work.
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 1:47 pm
by FLYFISH TECHNOLOGIES
Hi,
tadejkkk wrote:If i turn off the firewall i can ping my laptop from RPi, but the internet connection still doesn't work.
Make sure that the laptop's IP (192.168.137.x) is defined as a gateway on RasPi.
Best wishes, Ivan Zilic.
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 2:07 pm
by drgeoff
FLYFISH TECHNOLOGIES wrote:Hi,
tadejkkk wrote:If i turn off the firewall i can ping my laptop from RPi, but the internet connection still doesn't work.
Make sure that the laptop's IP (192.168.137.x) is defined as a gateway on RasPi.
Best wishes, Ivan Zilic.
Probably want to set a DNS server as well

.
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 2:29 pm
by FLYFISH TECHNOLOGIES
Hi,
drgeoff wrote:Probably want to set a DNS server as well

.
We're not there yet...
Best wishes, Ivan Zilic.
Re: Internet access on RPi
Posted: Tue Jul 15, 2014 3:21 pm
by tadejkkk
Yes it works now. Thank you very much for your replies!