Ir para o final dos metadados
Ir para o início dos metadados


For this guide, the pre-requirement is to have the CentOS 5 install, it can be any version, since it's going to be updated to the most recent version of the CentOS 5.

The root user will be the one always through this installation.

1 - Update the CentOS

For this step, just accept the update listed by the OS.



In case the system isn't booting into the graphical interface and there is a need to use it, just edit the following file:

Change the following line:


2 - Add the RPMforge repository

For this step use the commands below to add the RPMforge repository.

If the command above doesn't work, try this option:


It's possible to verify that the repository was added by install the htop tool.

3 - Install the NetFPGA Base package

3.1 - Add the NetFPGA repository:

If the command above doesn't work, try this option:

3.2 - Install the kernel sources, which are necessary for the compilation of the netfpa-base:


Edit the grub file so as to the system can boot at the latest version of the kernel:

Change the line "default=k" to the one corresponding to the latest version, which is always the first one:

Optional - Only if the server is updated:

Boot at the most recent version of the kernel:

3.3 - Download the sources of the kernel:


Verify the version of the current kernel:


Verify if the directory 'build' exists:


3.4 - Install the netfpa-base package:

3.5 - Verify if the new kernel was installed:

3.6 - Then reboot:


Verify the current kernel:

3.7 - Execute the following script, so as to create the netfpga directory and environment variables:

3.8 - Add to the boot the CPCI reprogram script.

Add at the last line, the following code:

3.9 - Reprogram the NetFPGA:


Execute the selftest.

Connect the network cables at the netfpga in a loopback fashion (port0 at port 1, port 2 at port 3).

Activate all the ports:

Load the bitfile for tests:

Execute the test ( the '-n' parameter doesn't test the satas)

If the test fails use the '-c' parameter, so as to identify the cause of the error:


4 - Install OpenFlow and the OpenFlow bitfiles

4.1 - Install the dependencies:

4.2 - Install autoconf:

4.3 - Download Openflow:

4.4 - Download the bitfile for NetFPGA and the installation of the Openflow with bitfiles:



Realize simple NetFPGA tests with the OpenFlow bitfile.

1 - Initialize the Openflow Controller:

2 - In another terminal:

Screen of the first stage of the test:

Start the switch:

The NetFPGA will work as a "dumb switch" using the OpenFlow protocol. To verify if it's working properly, just do a simple test in which 02 computers will be connect through the NetFPGA, and they need to ping each other.

5 - Initialization script

To use the OpenFlow Switch as a NetFPGA initialization service, save the script below as 'openflow' at the '/etc/init.d'.  Para iniciar o Switch OpenFlow como serviço na inicialização da NetFPGA save o script abaixo com o nome openflow em /etc/init.d/.

Use your Island's network code as a 02 digit hexadecimal (ie.: RNP: 88), the number of your NetFPGA server (1, 2 or 3) and the Flowvisor IP, at the line 5, 6 and 7 respectively.

After that, configure the permissions, so as to make the script executable and configure it as initialization service:


To start, stop or restart the service manually, use the following commands:

6 - Details

After concluding the finishing steps, it may be required to do some few configurations. Below there is a list of guides that should be verified:

  • Nenhum