Saturday, November 19, 2016

Solving no network for my pi

On a reboot I was able to ssh into the device but not the internet.

What was effected was both the gateway and DNS server settings

Tested gateway issue through trying to ping google

ping 74.125.29.138 Google

Gateway resolution 

The solution was to add a default gateway which was missing from the routing table

sudo route add default gw 192.168.1.1
With the internet established I was still unable to intstall packages or

apt-get update

This was caused by being unable to resolve the address

mirrordirector.raspbian.org/raspbian

DNS Resolution

Edited the file /etc/resolv.conf

to add the google name servers

done by

sudo nano /etc/resolv.conf

added the following two lines

nameserver 8.8.8.8

nameserver 8.8.4.4


Then we we good to go

No comments:

Post a Comment