Book Image

Raspberry Pi Server Essentials

By : Piotr J Kula
Book Image

Raspberry Pi Server Essentials

By: Piotr J Kula

Overview of this book

Table of Contents (16 chapters)
Raspberry Pi Server Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Static network address


Some DHCP servers on routers tend to change your private address every now and again. Setting a static private address is a quick way to prevent this from happening, and it is easier to remember what the IP address is.

However, many newer routers have the ability to assign a preferred IP address in the DHCP settings or automatically assign a long term IP to the device based on its MAC address. Long term usually means until the router is reset to factory defaults or if it runs out of IP addresses and replaces the oldest entry in the DHCP list.

The downfall with using static addresses with most home routers is that the router will not know about this device. The reason is because it would have to scan the entire network endlessly, taking up valuable resources. If the DNS service does not advertise the IP address of the Pi, you will not be able to use its host name (by default, raspberry), and instead you have to type in the full IP address. Furthermore, if you want to...