Earlier today I was ssh'ing into my box and discovered that the internal IP had changed from what it was, I decided I wanted to make this static and found a tutorial (kind of) how to:
nano /etc/network/interfaces
And then changed the contents to this:
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.11
netmask 255.255.255.0
gateway 192.168.0.200
(I wanted my IP to be static at this). Now whenever I try to update, or install "git" using:
sudo apt-get update
I keep getting the error like so:
Err http://archive.raspberrypi.org wheezy InRelease
Err http://mirrordirector.raspbian.org wheezy InRelease
Err http://archive.raspberrypi.org wheezy Release.gpg
Temporary failure resolving 'archive.raspberrypi.org'
Err http://mirrordirector.raspbian.org wheezy Release.gpg
Temporary failure resolving 'mirrordirector.raspbian.org'
Reading package lists... Done
W: Failed to fetch
http://mirrordirector.raspbian.org/raspbian/dists/wheezy/InRelease
W: Failed to fetch
http://archive.raspberrypi.org/debian/dists/wheezy/InRelease
W: Failed to fetch
http://archive.raspberrypi.org/debian/dists/wheezy/Release.gpg Temporary
failure resolving 'archive.raspberrypi.org'
W: Failed to fetch
http://mirrordirector.raspbian.org/raspbian/dists/wheezy/Release.gpg
Temporary failure resolving 'mirrordirector.raspbian.org'
I am connected to the internet, and this only seems to be happening since I updated the particular file.
Hope someone can help
UPDATE:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.0.200 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
eth0 Link encap:Ethernet HWaddr b8:27:eb:87:59:47
inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4707 errors:0 dropped:50 overruns:0 frame:0
TX packets:3488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:334663 (326.8 KiB) TX bytes:390376 (381.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:708 errors:0 dropped:0 overruns:0 frame:0
TX packets:708 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:67655 (66.0 KiB) TX bytes:67655 (66.0 KiB)

netstat -rnandifconfig -a? – Karlson Jan 18 at 18:57