1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
5 | <meta http-equiv="Content-Style-Type" content="text/css" /> |
---|
6 | <meta name="generator" content="pandoc" /> |
---|
7 | <title>SDN / OpenFlow tutorial</title> |
---|
8 | <style type="text/css">code{white-space: pre;}</style> |
---|
9 | <link rel="stylesheet" href="./style.css" type="text/css" /> |
---|
10 | </head> |
---|
11 | <body> |
---|
12 | <div id="header"> |
---|
13 | <h1 class="title">SDN / OpenFlow tutorial</h1> |
---|
14 | <h3 class="date">Installing RouteFlow</h3> |
---|
15 | </div> |
---|
16 | <h1 id="introduction">Introduction</h1> |
---|
17 | <p>In this lab we will install routeflow and configure a distributed route fabric</p> |
---|
18 | <h1 id="goals">Goals</h1> |
---|
19 | <ul> |
---|
20 | <li>Install RouteFlow</li> |
---|
21 | <li>Configure distribute route fabric</li> |
---|
22 | </ul> |
---|
23 | <h1 id="notes">Notes</h1> |
---|
24 | <ul> |
---|
25 | <li>Commands preceded with "$" imply that you should execute the command as a general user - not as root.</li> |
---|
26 | <li>Commands preceded with "#" imply that you should be working as root.</li> |
---|
27 | <li>Commands with more specific command lines (e.g. "RTR-GW>" or "mysql>") imply that you are executing commands on remote equipment, or within another program.</li> |
---|
28 | </ul> |
---|
29 | <h1 id="installation">Installation</h1> |
---|
30 | <p>Become root on the controller</p> |
---|
31 | <pre><code>$ sudo bash</code></pre> |
---|
32 | <p>Ensure that the linux kernel headers are present on the system</p> |
---|
33 | <pre><code># apt-get install linux-headers-3.2.0-56-virtual</code></pre> |
---|
34 | <p>Fetch and checkout the appropriate version of RouteFlow</p> |
---|
35 | <pre><code># git clone https://github.com/routeflow/RouteFlow.git |
---|
36 | # cd RouteFlow |
---|
37 | # git checkout vandervecken</code></pre> |
---|
38 | <p>Fetch and checkout the appropriate version of Ryu-RFProxy</p> |
---|
39 | <pre><code># git clone https://github.com/routeflow/ryu-rfproxy.git |
---|
40 | # cd ryu-rfproxy |
---|
41 | # git checkout vandervecken |
---|
42 | # cd .. </code></pre> |
---|
43 | <p>Set off the automated build script</p> |
---|
44 | <pre><code># ./build.sh -c -z ryu</code></pre> |
---|
45 | <p>Eventually the following will appear</p> |
---|
46 | <pre><code>make[1]: Leaving directory `/home/sysadm/RouteFlow/rfclient' |
---|
47 | done. |
---|
48 | Finishing up... |
---|
49 | |
---|
50 | |
---|
51 | # apt-get install lxc |
---|
52 | # vi /etc/default/lxc</code></pre> |
---|
53 | <p>Make sure that the following line appears near the top of the file</p> |
---|
54 | <pre><code>MIRROR="http://apt.ws.nsrc.org:3142/archive.ubuntu.com/ubuntu"</code></pre> |
---|
55 | <p>Make the RouteFlow test environment</p> |
---|
56 | <pre><code># cd rftest |
---|
57 | # ./create</code></pre> |
---|
58 | <p>Copy in the one lib that we still need</p> |
---|
59 | <pre><code># cp /usr/local/lib/libzmq.so.3 /var/lib/lxc/rfvm1/rootfs/usr/local/lib/ |
---|
60 | |
---|
61 | # cd ~ |
---|
62 | # wget http://noc.ws.nsrc.org/rfstart |
---|
63 | # chmod 700 rfstart</code></pre> |
---|
64 | <p>Run the RouteFlow environment</p> |
---|
65 | <pre><code># ./rfstart</code></pre> |
---|
66 | <p>Connect to your datapath element, run the daemons and connect to the controller</p> |
---|
67 | <pre><code>$ /root/bootovs-rb532.sh |
---|
68 | $ /root/monitor_flows.sh</code></pre> |
---|
69 | <p>--End</p> |
---|
70 | </body> |
---|
71 | </html> |
---|