Code: Select all
pi@raspberrypi:~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:d2:45:bd
inet6 addr: fe80::bcb6:38e0:3854:980/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:196 errors:0 dropped:0 overruns:0 frame:0
TX packets:196 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:15792 (15.4 KiB) TX bytes:15792 (15.4 KiB)
wlan0 Link encap:Ethernet HWaddr b8:27:eb:87:10:e8
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ed4f:3ca0:4404:45ea/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3610 errors:0 dropped:923 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:620510 (605.9 KiB) TX bytes:19071 (18.6 KiB)
pi@raspberrypi:~ $ ip route
192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.3 metric 303
pi@raspberrypi:~ $ ping -c3 $(ip route | awk'/default/ {print $3}')
bash: awk/default/ {print $3}: No such file or directory
Usage: ping [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
[-w deadline] [-W timeout] [hop1 ...] destination
pi@raspberrypi:~ $ pig -c3 8.8.8.8
bash: pig: command not found
pi@raspberrypi:~ $ ping -c3 8.8.8.8
connect: Network is unreachable
pi@raspberrypi:~ $ cat/etc/resolv.conf
bash: cat/etc/resolv.conf: No such file or directory
pi@raspberrypi:~ $ ping -c3 google.com
ping: unknown host google.com
pi@raspberrypi:~ $
Code: Select all
Default Gateway . . . . . . . . . : 192.168.1.xxxI had the same issue with a new RpI 3B. WiFi internet just quit. WiFi was fine just no internet. After Doug's fix it worked ???DougieLawson wrote:What's the gateway router for your 192.168.1.0/24 network?
Then you need to look at your home router/switch/access point to see why it's not working properly and why it's not handing out the gateway address on the DHCPOFFER packet for your RPi.
DougieLawson wrote: ↑Sun Jun 26, 2016 6:03 pmWhat's the gateway router for your 192.168.1.0/24 network?
Take a look on your Windows machine by running ipconfig in a command window and looking for the lineThen set that address as the gateway on your RPi withCode: Select all
Default Gateway . . . . . . . . . : 192.168.1.xxx
sudo ip route add default via 192.168.1.xxx # using the result from Windows.
Then you need to look at your home router/switch/access point to see why it's not working properly and why it's not handing out the gateway address on the DHCPOFFER packet for your RPi.