The Ethernet connection on my RaspberryPi isn't working. After doing some research on StackExchange and other sites, I found the netmask to be the cause of the problem.
When I run ifup eth0
, it's using the wrong netmask 255.255.255.255
. I want to set it to 255.255.255.0
. I can confirm that this is my setting, because my laptop is using the same netmask.
This question describes the same problem, and the solution to that is to run the command sudo ifconfig eth0 192.168.1.X netmask 255.255.255.0
. I tried running this command but I get the error host name lookup failure
. When I changed the X
in the IP Address to a number, the command completes, but it still didn't work.
So is there any other way to change the netmask so that ifup eth0
uses the correct one?
Thanks!
DHCPDISCOVER is using wrong netmask:
A dhcp client always broadcast on 255.255.255.255a.b.c.255
/etc/network/interfaces
file on pastebin.com? It sounds like the netmask is getting set incorrectly somewhere...