We are now going to install the open source software on the Pi to get ourselves a functioning switch.
The software we are going to use is one which I've been involved with for about 18 months which is the LINC OpenFlow switch. This switch is written in Erlang and can be downloaded for free from flowforwarding.org
First we need to install Erlang on our Raspberry Pi. I have assumed your Pi is running Raspbian - if not you'll need to download the image onto a new SD card.
First you need a command prompt on your Pi as we need to edit some files
pi@raspberrypi ~ $ sudo vi /etc/apt/sources.list
Insert into this file:
deb http://binaries.erlang-solutions.com/debian wheezy contrib
Then at the command prompt type
pi@raspberrypi ~ $ wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc |sudo apt-key add -
pi@raspberrypi ~ $ sudo apt-get update
pi@raspberrypi ~ $ sudo apt-get install esl-erlang
Assuming there were no problems, you should now have Erlang installed on your Pi.
We now need to install LINC.
First we need to install a few more libraries
pi@raspberrypi ~ $ sudo apt-get install git-core bridge-utils libpcap0.8 libpcap-dev libcap2-bin uml-utilities
Now we need to clone the LINC switch
pi@raspberrypi ~ $ sudo git clone https://github.com/FlowForwarding/LINC-Switch/
pi@raspberrypi ~ $ cd LINC_Switch
Now we need to compile the switch software
pi@raspberrypi ~ $ sudo make
We now have a LINC OpenFlow switch installed on our Raspberry Pi hardware.
In the next blog I will cover how to configure it and start it up