Reader small image

You're reading from  Banana Pi Cookbook

Product typeBook
Published inJun 2015
Publisher
ISBN-139781783552443
Edition1st Edition
Right arrow
Author (1)
Ryad El-Dajani
Ryad El-Dajani
author image
Ryad El-Dajani

Ryad El-Dajani is a software engineer and passionate technology enthusiast. He developed an interest in computers when he was 10 years old. Soon thereafter, he began to learn his first programming languages. After he had completed his training as an IT specialist, he worked on several e-commerce Internet projects. Currently, he is studying business computing and works for a big IT company in Germany, realizing various IT projects based on Java or .NET technologies. Besides the classic application development, he has professional experience in realizing projects based on web frameworks such as Spring, Play, Symfony, eZ Publish, and Magento. Moreover, he has been excited about all kinds of Unix-like embedded systems since the revolutionary SheevaPlug.
Read more about Ryad El-Dajani

Right arrow

Determining the IP address and hostname


To connect to your Banana Pi via your local area network, you will need to know the IP address or the hostname of your device.

This recipe shows you how to find out the IP address and hostname of your Banana Pi.

Getting ready

The following components are required for this recipe:

  • A Banana Pi running a Linux system connected to your local network

  • A configured SD card containing a Linux distribution

  • A keyboard, mouse, and display attached to your Banana Pi

How to do it…

Perform the following steps to determine the IP address:

  1. Initiate the booting of your Banana Pi and wait for the desktop to appear.

  2. Start a terminal application such as LXTerminal.

  3. Type in the following ifconfig command:

    $ ifconfig eth0
    

    This will output all the information of your Ethernet device (eth0), including the IP address, subnet mask, MAC address, and some additional information. The IP address is the value after inet addr:XXX.XXX.XXX.XXX (for example, 192.168.0.2).

    Note

    Do not confuse inet...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Banana Pi Cookbook
Published in: Jun 2015Publisher: ISBN-13: 9781783552443

Author (1)

author image
Ryad El-Dajani

Ryad El-Dajani is a software engineer and passionate technology enthusiast. He developed an interest in computers when he was 10 years old. Soon thereafter, he began to learn his first programming languages. After he had completed his training as an IT specialist, he worked on several e-commerce Internet projects. Currently, he is studying business computing and works for a big IT company in Germany, realizing various IT projects based on Java or .NET technologies. Besides the classic application development, he has professional experience in realizing projects based on web frameworks such as Spring, Play, Symfony, eZ Publish, and Magento. Moreover, he has been excited about all kinds of Unix-like embedded systems since the revolutionary SheevaPlug.
Read more about Ryad El-Dajani