Skip to content

BananaPi

Carlos Vega edited this page Jul 25, 2018 · 16 revisions

Banana Pi configuration


It is really important to configure correctly the Banana Pi residential gateway. In Banana Pi, we use USB-Ethernet adapters in order to have more Network Interface Cards and to avoid problems with the internal switch that it has.

You have to download the Bananian OS and install the required things following these steps:

  • Erase MicroSD using dd command (be careful) or application disks (http://wiki.lemaker.org/BananaPro/Pi:Making_a_bootable_.img_image_file)
  • Download Bnanian latest OS: wget https://dl.bananian.org/releases/bananian-latest.zip
  • Install Bananian with dd comand in Banana Pi's microSD (be careful): sudo dd if=bananian-latest.zip.2 of=/dev/rdiskNUMBER bs=1M
  • Resize the partition of the device to all the space available in microSD with GParted.
  • Insert microSD in Banana Pi (root-pi) and configure Internet connection. To configure Internet connection you can change /etc/network/interfaces to add a new interface and do service networking restart. One you have finish these steps, comment the lines you have added. Connect the LAN wire in port 3.
  • Download Project's repository: git clone https://github.com/carlosv5/GREDOS
  • Run configuration script ./GREDOS/openstack_scenario/scripts/bananapi/configuration.sh (Aprox 40 min)
  • Once here you only have to connect two adapters to the Banana Pi, eth1 must be the connection with WAN network, and eth2 the connection with clients. So, you must be careful to connect correctly the scenario.
  • Run network configuration script to configure the system with a traffic VLAN ID and OpenFlow VLAN ID: python /root/config_bananapi.py
  • Reboot the Banana Pi reboot (root-xxxx)

When Pox controller is used, the network configuration of Banana Pi is the following:

When floodlight controller is used, the network configuration of Banana Pi is the following:

The main difference between them is that with Pox controller SDN, you have to manage the Traffic VLAN ID in Banana Pi OVS. With Floodlight, the controller teaches the OVS how to do it by itself.

In both of them, there is a backup pox controller running in Banana Pi to avoid the possiliby of losing connection between client's systems if the connection with controller is down.

Clone this wiki locally