Changes between Version 2 and Version 3 of Internal/OpenFlow/HostSetup


Ignore:
Timestamp:
Sep 18, 2009, 10:28:36 PM (15 years ago)
Author:
akoshibe
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/HostSetup

    v2 v3  
    22
    33= Setting up the host for the NetFPGA =
    4 Here we provide the links and directions followed to set up a working NetFPGA host.
    5 == Some useful links ==
    6  * Directions for setting up a NetFPGA system : http://netfpga.org/netfpgawiki/index.php/Guide
    7  * Network installation of CentOS : http://www.tonybhimani.com/2007/12/20/centos-51-network-install-instructions/
    8   * CentOS mirrors : http://isoredirect.centos.org/centos/5/os/i386/
     4Here we provide the links and directions followed to set up a working NetFPGA host. The directions can be found on the following site: http://netfpga.org/netfpgawiki/index.php/Guide
     5
    96== Installing CentOS ==
    10 CentOS is the recommended OS for use with NetFPGA. The most current version is 5.3, which is not listed as a version of CentOS that works with NetFPGA.
     7CentOS is the recommended OS for use with NetFPGA. The most current version is 5.3, which is not listed as a version of CentOS that works with NetFPGA, but was used anyways.
    118
    129For the installation, the net install iso was chosen because of its small size. This can be found on any mirror site.
     10 * CentOS mirrors : http://isoredirect.centos.org/centos/5/os/i386/
     11 * Network installation of CentOS : http://www.tonybhimani.com/2007/12/20/centos-51-network-install-instructions/
     12 
     13Before installing the netFPGA base package, make sure to update the kernel, since the dependencies for NetFPGA software require a newer version of the kernel than the one for 5.3. To install the basic drivers, install teh yum repository and GPG key, followed by the netFPGA base package.
     14{{{
     15rpm -Uhv http://netfpga.org/yum/el5/RPMS/noarch/netfpga-repo-1-1_CentOS5.noarch.rpm
     16yum install netfpga-base
     17/usr/local/NF2/lib/scripts/user_account_setup/user_account_setup.pl
     18}}}
     19The directions then go over installing CAD tools, but since we are just trying to make the FPGA into an !OPenFlow switch, we skip over that section of the guide. cd into the NetFPGA directory, then make, make install, and reboot.
     20{{{
     21make
     22#a bunch of output showing status
     23make install
     24#more outputs
     25reboot
     26}}}
     27after the machine has rebooted, check that drivers are loaded. The PID should show up:
     28{{{
     29[root@localhost ~]# /sbin/lsmod | grep nf2
     30nf2                    22540  0
     31}}}
     32Finally, verify the interfaces with `/sbin/ifconfig -a` at the terminal. This is the output for our setup:
     33{{{
     34eth0      Link encap:Ethernet  HWaddr 00:1C:C0:B4:EC:D4 
     35          inet addr:192.168.202.102  Bcast:192.168.203.255  Mask:255.255.252.0
     36          inet6 addr: fe80::21c:c0ff:feb4:ecd4/64 Scope:Link
     37          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     38          RX packets:825 errors:0 dropped:0 overruns:0 frame:0
     39          TX packets:212 errors:0 dropped:0 overruns:0 carrier:0
     40          collisions:0 txqueuelen:1000
     41          RX bytes:76080 (74.2 KiB)  TX bytes:21489 (20.9 KiB)
     42          Interrupt:50 Base address:0xa000
    1343
     44lo        Link encap:Local Loopback 
     45          inet addr:127.0.0.1  Mask:255.0.0.0
     46          inet6 addr: ::1/128 Scope:Host
     47          UP LOOPBACK RUNNING  MTU:16436  Metric:1
     48          RX packets:1162 errors:0 dropped:0 overruns:0 frame:0
     49          TX packets:1162 errors:0 dropped:0 overruns:0 carrier:0
     50          collisions:0 txqueuelen:0
     51          RX bytes:2004680 (1.9 MiB)  TX bytes:2004680 (1.9 MiB)
     52
     53nf2c0     Link encap:Ethernet  HWaddr 00:4E:46:32:43:00 
     54          BROADCAST MULTICAST  MTU:1986  Metric:1
     55          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     56          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     57          collisions:0 txqueuelen:1000
     58          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
     59          Interrupt:58
     60
     61nf2c1     Link encap:Ethernet  HWaddr 00:4E:46:32:43:01 
     62          BROADCAST MULTICAST  MTU:1986  Metric:1
     63          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     64          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     65          collisions:0 txqueuelen:1000
     66          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
     67          Interrupt:58
     68
     69nf2c2     Link encap:Ethernet  HWaddr 00:4E:46:32:43:02 
     70          BROADCAST MULTICAST  MTU:1986  Metric:1
     71          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     72          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     73          collisions:0 txqueuelen:1000
     74          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
     75          Interrupt:58
     76
     77nf2c3     Link encap:Ethernet  HWaddr 00:4E:46:32:43:03 
     78          BROADCAST MULTICAST  MTU:1986  Metric:1
     79          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     80          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     81          collisions:0 txqueuelen:1000
     82          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
     83          Interrupt:58
     84
     85sit0      Link encap:IPv6-in-IPv4 
     86          NOARP  MTU:1480  Metric:1
     87          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     88          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
     89          collisions:0 txqueuelen:0
     90          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
     91}}} 
     92
     93== Installing the !OpenFlow implementation (!OpenFlow-NetFPGA-090) ==   
     94After successfully installing the drivers, you can install the !OpenFlow switch with the following command:
     95{{{
     96[root@localhost ~]# yum install netfpga-openflow_switch
     97}}}