On Tuesday, 19 June 2018 14:22:39 BST Ralph Corderoy wrote:
> A laptop running Linux would do as well.

I don't have laptops that run anything else :-)

> ...that you understood.  :-)

No.  I did what most other Raspberry Pi users do; I followed the Tutorial and 
assumed that the author knew what he was doing.  The fact is that he probably 
did, but since he was doing this five years ago and / or didn't have exactly  
the same hardware as me, there is no guarantee that the Tutorial is still 
correct.

If I fully understood this stuff, I'd have 'rolled my own'.  :-)

> > One final question.  If I open a default copy of
> > /etc/network/interface, it says that the file is intended to be used
> > with dhcpcd.conf.  Do I still need to define the static IP address of
> > eth0 in both places or just here?
> 
> Well, in your new `start from scratch' there won't be a DHCP server to
> read dhcpcd.conf.  :-)  You should be telling the server to just listen
> on eth0 rather than its default of all interfaces that are up and can
> broadcast.  I don't see any reason why it would need to be told eth0's
> static address is 192.168.0.9 as it won't be handling a DHCPDISCOVER
> request for that interface as it's statically defined in
> /etc/network/interfaces.

Are you sure about that?  The file dhcpcd.conf is installed by default and all 
the latest instructions (eg 
https://www.raspberrypi.org/learning/networking-lessons/rpi-static-ip-address/) 
tell the users to define a static IP Address 
there.  The interfaces file is not mentioned anywhere.  Clearly, there won't 
be a functioning DHCP Server unless I define a range, but the infrastructure 
is clearly in place and the file must be read by the Pi, otherwise the device 
wouldn't get its IP Address.

My question was really should I define the Static IP Address in dhcpcd.conf 
(as instructed), in /etc/Network/interfaces, or both?

-- 



                Terry Coles



-- 
Next meeting:  Bournemouth, Tuesday, 2018-07-03 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to