Primary Navigation

Configure Network Settings on Raspberry Pi Hardware

You can resolve network connectivity issues by inspecting and editing the IP configuration of the Raspberry Pi™ Ethernet port.

You may need to reconfigure the IP settings if your board:

Has unknown IP settings

Is unreachable using a network connection

Is being moved to a network or direct Ethernet connection that uses static IP settings

Is being moved from a network that used static IP settings to one that uses DHCP services

There are several conditions under which networks use DHCP or static IP settings:

Use DHCP services — If your board is connected to a network with DHCP services, such as an office LAN or a home network connected to the Internet. DHCP is a network service that automatically configures the IP settings of Ethernet devices connected to a network.

Use static IP settings — If your board is directly connected to an Ethernet port on your computer or connected to an isolated network without DHCP services.

To configure the board to use DHCP or static IP settings:

You can use a terminal window after accessing the Linux desktop.

Display the contents of the /etc/network/interfaces file.
Enter:

cat /etc/network/interfaces

If the board is configured to use DHCP services (the default configuration), dhcp appears at the end of the following line:

iface eth0 inet dhcp

If the board is configured to use static IP settings, static appears at the end of the following line: