SPRING SALE up to 20% OFF! (excludes trade customers)   •   FREE Standard Delivery for orders over £35 (ex VAT)
Knowledge Base

The AB Electronics UK Knowledge Base provides support solutions, tutorials and troubleshooting guides.

Knowledge Base

Set a static IP Address on Raspberry Pi OS Wheezy

Static Network IP Address Setup on the Raspberry Pi

Created 30/10/2023 | Last Updated: 15/06/2025

This page details how to set up a static network IP address on the Ethernet connection on the Raspberry Pi OS Wheezy image, released September 2013, from https://www.raspberrypi.com/software/operating-systems/.

We will give the Raspberry Pi a static IP address of 10.0.0.220.  The router/gateway address will be set at 10.0.0.1, and the DNS server will also be set to 10.0.0.1

Step 1: Find the name of the network device using the command ifconfig

ifconfig

A list of the available network devices will be shown. The ethernet port is typically called eth0.

Step 2: Now we need to create a file in /etc/network/interfaces.d/ called eth0

sudo nano /etc/network/interfaces.d/eth0

Step 3:  Add the following text into nano. Change the address, network, netmask and gateway to match your network. If necessary, change eth0 to the name of your network interface.

allow-hotplug eth0
iface eth0 inet static
address 10.0.0.220
network 10.0.0.0
netmask 255.255.255.0
gateway 10.0.0.1

Step 4: Reboot to apply the changes:

sudo reboot

Your Raspberry Pi will restart and be accessible on the new IP address

Also useful for your Raspberry Pi project

Temperature & Sensing

1 Wire Pi Plus

Connect dozens of 1-Wire sensors - temperature, iButtons, EEPROMs - via a single GPIO pin. Stacks directly on the 40-pin header.

£9.59 ex VAT

Analogue I/O

ADC Pi

Read up to 8 analogue inputs - perfect for pairing with your temperature sensors or other analogue-output devices.

£14.39 ex VAT

All-in-one

Expander Pi

Combines ADC, DAC, 32 GPIO ports and a real-time clock on one board. The most versatile board for complex Raspberry Pi projects.

£15.99 ex VAT

Order these Boards

All boards are designed & manufactured in the UK with RoHS-compliant components.