Configuring a static IP on Debian Wheezy for Raspberry Pi

$ sudo nano /etc/network/interfaces

Change:

iface eth0 inet dhcp

to

iface eth0 inet static

Below this line enter the following, replacing x where necessary for your network config.

address 192.168.x.x
netmask 255.255.255.0
network 192.168.x.0
broadcast 192.168.x.255
gateway 192.168.x.x

4 Replies to “Configuring a static IP on Debian Wheezy for Raspberry Pi”

  1. Did not work for me. The file at /etc/network/interfaces was a one-byte file with nothing in it. I put my static network information in the file and rebooted the PI. It still used DHCP to configure eth0.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.