can't reach the internet
Posted: Fri Jan 10, 2014 9:50 pm
hey guys,
i can't access the internet on my pi via Ethernet cable... but i can ping my router 192.168.1.1
and when i ping 8.8.8.8 i received unreachable
i have used dhcp and static and in vain
it's some about the data i collect from my pi
[/size][/color]
i can't access the internet on my pi via Ethernet cable... but i can ping my router 192.168.1.1
and when i ping 8.8.8.8 i received unreachable
i have used dhcp and static and in vain
it's some about the data i collect from my pi
Code: Select all
pi@raspberrypi ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:43:ce:a8
inet addr:192.168.1.150 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:56083 errors:0 dropped:0 overruns:0 frame:0
TX packets:57145 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7285611 (6.9 MiB) TX bytes:18038635 (17.2 MiB)
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:104216 errors:0 dropped:0 overruns:0 frame:0
TX packets:104216 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:19924628 (19.0 MiB) TX bytes:19924628 (19.0 MiB)
Code: Select all
pi@raspberrypi ~ $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_req=1 ttl=254 time=1.28 ms
64 bytes from 192.168.1.1: icmp_req=2 ttl=254 time=0.788 ms
64 bytes from 192.168.1.1: icmp_req=3 ttl=254 time=0.721 ms
64 bytes from 192.168.1.1: icmp_req=4 ttl=254 time=0.713 ms
64 bytes from 192.168.1.1: icmp_req=5 ttl=254 time=0.665 ms
64 bytes from 192.168.1.1: icmp_req=6 ttl=254 time=0.787 ms
64 bytes from 192.168.1.1: icmp_req=7 ttl=254 time=0.734 ms
^C
--- 192.168.1.1 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6007ms
rtt min/avg/max/mdev = 0.665/0.813/1.284/0.196 ms
Code: Select all
pi@raspberrypi ~ $ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
Code: Select all
pi@raspberrypi ~ $ cat /etc/resolv.conf
nameserver 8.8.8.8
Code: Select all
pi@raspberrypi ~ $ ping 8.8.8.8
connect: Network is unreachable
Code: Select all
pi@raspberrypi ~ $ ping google.com
ping: unknown host google.com
Code: Select all
pi@raspberrypi ~ $ ping 192.168.1.4
PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data.
64 bytes from 192.168.1.4: icmp_req=1 ttl=128 time=2.08 ms
64 bytes from 192.168.1.4: icmp_req=2 ttl=128 time=2.84 ms
64 bytes from 192.168.1.4: icmp_req=3 ttl=128 time=1.29 ms
64 bytes from 192.168.1.4: icmp_req=4 ttl=128 time=1.52 ms
64 bytes from 192.168.1.4: icmp_req=5 ttl=128 time=57.8 ms
64 bytes from 192.168.1.4: icmp_req=6 ttl=128 time=2.44 ms
^C
--- 192.168.1.4 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 1.299/11.339/57.839/20.801 ms