Configuring a static IP address

This recipe configures a Raspberry Pi so that it has a static IP address.

A static IP address, unlike the dynamic addresses provided by a DHCP (Dynamic Host Configuration Protocol) server, does not change. Network servers on a wired network connection (for example, web servers, wikis, and wireless access points) generally have static IP addresses to provide a consistent telephone-number-like reference for use by its network clients (for example, web browsers, mobile phones, and other Internet devices). Servers that have a static IP address are easier to find.

After completing this recipe, you will be able to configure a static network IP address.

Getting ready


An Initial Setup or Basic Networking setup ...

Get Raspberry Pi Networking Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.