Dunkit
Posts: 4
Joined: Thu May 16, 2013 12:28 pm

[SOLVED] Pi cannot connect to LAN

Fri Mar 04, 2016 7:24 pm

Hi all,

it seems like my router (a FritzBox) isn't assigning my Pi an IP address any more. Can't really tell why, I just came back from a business trip and cannot reach my Pi any more...

Since I always thought about assigning it a static address, I went ahead and configured /etc/network/interfaces:

Code: Select all

auto lo
iface lo inet loopbac

auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.178.19
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 192.168.178.1
I also disabled dhcpcd on that Pi.

However neither can the Pi reach any other node in the network, nor vice versa.

The thing that's most interesting is that I have another Pi, which gets its IP address via DHCP and everything works fine.
The output of 'ip addr' on that second Pi is

Code: Select all

eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:e8:68:26 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.31/24 brd 192.168.178.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::46ab:8538:fba4:ba96/64 scope link 
       valid_lft forever preferred_lft forever
which is (apart from the IP address) exactly what I'm also getting on the first Pi where it's not working. EDIT: Wait, I just noticed the non-working Pi is missing the two lines concerning inet6... Is that a hint?!

So I assume it's something about the router, but where should I start looking?

Thanks!


EDIT: I just tried a different ethernet cable but didn't have any luck. The LEDs on both the Pi and my switch are blinking like they should though...
Last edited by Dunkit on Fri Mar 04, 2016 8:15 pm, edited 1 time in total.

Dunkit
Posts: 4
Joined: Thu May 16, 2013 12:28 pm

Re: Pi cannot connect to LAN

Fri Mar 04, 2016 8:15 pm

SOLVED: Using a different port on my switch seems to help. Strange...

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: Pi cannot connect to LAN

Fri Mar 04, 2016 8:17 pm

Dunkit wrote:SOLVED: Using a different port on my switch seems to help. Strange...
It isn't wildly impossible that there is a problem with that plug or something electrical inside that only applies to it. I would put tape over that plug and then see if everything works everywhere else. If it turns out the problems resurface on other plugs, you may have a greater problem.

Return to “Troubleshooting”