| 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 | |
| 13 | Before 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 | {{{ |
| 15 | rpm -Uhv http://netfpga.org/yum/el5/RPMS/noarch/netfpga-repo-1-1_CentOS5.noarch.rpm |
| 16 | yum install netfpga-base |
| 17 | /usr/local/NF2/lib/scripts/user_account_setup/user_account_setup.pl |
| 18 | }}} |
| 19 | The 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 | {{{ |
| 21 | make |
| 22 | #a bunch of output showing status |
| 23 | make install |
| 24 | #more outputs |
| 25 | reboot |
| 26 | }}} |
| 27 | after the machine has rebooted, check that drivers are loaded. The PID should show up: |
| 28 | {{{ |
| 29 | [root@localhost ~]# /sbin/lsmod | grep nf2 |
| 30 | nf2 22540 0 |
| 31 | }}} |
| 32 | Finally, verify the interfaces with `/sbin/ifconfig -a` at the terminal. This is the output for our setup: |
| 33 | {{{ |
| 34 | eth0 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 |
| 44 | lo 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 | |
| 53 | nf2c0 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 | |
| 61 | nf2c1 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 | |
| 69 | nf2c2 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 | |
| 77 | nf2c3 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 | |
| 85 | sit0 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) == |
| 94 | After successfully installing the drivers, you can install the !OpenFlow switch with the following command: |
| 95 | {{{ |
| 96 | [root@localhost ~]# yum install netfpga-openflow_switch |
| 97 | }}} |