Device : Raspberry-Pi 2 Model B
I upgraded from Wheezy 7.11 to Jessie 8.0
I upgraded using :
apt-get update
apt-get upgrade
apt-get dist-upgrade
I am connected to my eth0
(Wired LAN) when I was upgraded the distribution (Wheezy -> Jessie)
But once I had Jessie installed the same eth0
interface on which I was connected to the Internet started giving this Error:
ping www.google.de
connect: Network is unreachable
I have not configured anything new in my /etc/network/interface
files which I have have kept to the default in Jessie as mentioned in the this Thread on Raspberry Pi StackExchange
Here is my /etc/network/interface
file:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Acquiring IPv4 on Pi
I used the following options:
sudo ifup eth0
and also
sudo dhclient -v eth0
I get the IPv4 address which I can see from ifconfig eth0
eth0 Link encap:Ethernet HWaddr aa:bb:cc:dd:ee:ff
inet addr:10.10.155.187 Bcast:10.10.155.255 Mask:255.255.255.0
inet6 addr: fe80::aabb:ccff:fedd:eeff/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5390 errors:0 dropped:344 overruns:0 frame:0
TX packets:100 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1613922 (1.5 MiB) TX bytes:9856 (9.6 KiB)
I can ping other network devices from my Pi but I cannot connect to the Internet. Why?
dhclient
and disablingdhcpcd
completely. – goldilocks Aug 05 '16 at 17:08systemd
is suppose to make things simple but apparently not!Also I am adding some edits about the
– Shan-Desai Aug 05 '16 at 17:10dhcpcd
thing from my pi can you make something out of it?sudo systemctl list-units | grep dhcp
to see if there is anything along those lines. – goldilocks Aug 05 '16 at 17:46dhcpcd
on the Pi. I checked usingsudo service dhcpcd status
. This shouldn't be a problem, should it? – Shan-Desai Aug 05 '16 at 17:48dhcp
. I think there are a few different daemons that play this same role and they may not end incd
. As implied before, one of the first things I do is remove all this stuff. It dates back a long time to when I couldn't figure it out and found it easier using command-line tools manually, since then it's evolved but I've still never bothered to figure out the "proper" way. It seems to be near the top of the list headache wise for people here and at Unix & Linux SE. – goldilocks Aug 05 '16 at 17:52