• Raspberry Pi running Raspbian Jessie with display, mouse, keyboard and power source (see Introduction, steps 1-5)
  • Ethernet cable (Type RJ45, Cat. 5 or higher)
  • only for the Raspberry Pi Zero: USB(micro)-to-Ethernet adapter RJ45
  • a host computer with a running internet connection and a free Ethernet port

If you followed steps 1-5 in the Introduction, setting up the internet connection shouldn’t be difficult. This tutorial assumes that Raspbian Jessie is installed and readily configured. Furthermore, a host computer with a free ethernet port and a running internet connection is required. And you’ll need an ethernet cable (Type RJ45, Cat. 5 or higher):

Ethernet cable

Ethernet cable

For the Raspberry Pi Zero, an additional USB(micro)-to-Ethernet adapter RJ45 is necessary.

Ethernet Internet Connection
Attach all components to the Raspberry Pi and connect the Raspberry Pi to the host computer with the Ethernet cable. Then, power up the Raspberry Pi. Depending on the host configuration, the internet connection could already be up.

Internet connection test
To test the connection, open a terminal and type

If the output is similar to

the internet connection is fine.
Elseway, the Raspberry Pi needs a static IP and maybe the host computer, too.

Setting up a static IP for the Raspberry Pi
Enter in the terminal

This opens the file dhcpcd.conf. At the end of the file, add the lines

Save and exit with CTRL+x, then y. Reboot the Raspi with

and test if the internet connection works by pinging Google like in the step before. If it still doesn’t work, try giving the host computer a static IP.

Setting up a static IP for the host computer
This strongly depends on the operating system! Here are guides for setting up a static IP for Windows, Mac and Ubuntu Linux. After setting this up, reboot both computers and test the internet, again by pinging Google.


Time limit is exhausted. Please reload CAPTCHA.