<div dir="ltr"><div><div>Hello Yilun,<br><br></div>I think that you can use OVS pretty much as you could use on any other Linux distro.<br></div><div><br></div><div>We don't have any specific tutorials for OVS on OpenWRT.<br>There are a few blogs that reference something like that:<br><a href="http://voices.canonical.com/zhengpeng.hou/11/">http://voices.canonical.com/zhengpeng.hou/11/</a><br><a href="http://vishalshahane.blogspot.ro/2014/04/configuring-tp-link-wr1043nd-v21-as.html">http://vishalshahane.blogspot.ro/2014/04/configuring-tp-link-wr1043nd-v21-as.html</a><br><br></div><div>What is important regarding OVS on OpenWRT is to read about the /etc/config/network format.<br></div><div>That's on the OpenWRT here: <a href="http://wiki.openwrt.org/doc/uci/network">http://wiki.openwrt.org/doc/uci/network</a><br></div><div><br></div><div>Looks like you need to configure OVS to setup bridges/flows via ovs-vsctl + ovs-ofctl commands and then in /etc/config/network you need to setup your IP addresses and other stuff.<br></div><div><br></div><div>FYI: OVS is officially supported in the latest OpenWRT trunk.<br></div><div>It's here in the package feeds: <a href="https://github.com/openwrt/packages/tree/master/net/openvswitch">https://github.com/openwrt/packages/tree/master/net/openvswitch</a><br></div><div></div><div><br></div><div>Thanks<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 17, 2014 at 2:14 AM, Yilun Zhou <span dir="ltr"><<a href="mailto:yilun.zhou@duke.edu" target="_blank">yilun.zhou@duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif">Hi, </font><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif">I am experimenting with OpenVSwitch on OpenWRT. My goal is to use Floodlight controller to do routing on OVS with Openflow
1.0 protocol. My router is NETGEAR WNDR3800. I have installed OpenWRT Attitude and OVS on it so that I can see a list of utilities such as: </font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">appctl
</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">dpctl </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">tcpundump </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovsdb</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">server</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">benchmark </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">ofctl </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">vlan</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">test
</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovsdb</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">tool</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">brcompatd </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">parse</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">leaks
</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">vsctl</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">bugtool </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">pcap </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">vswitchd</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">controller </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovs</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">pki </span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)"><br>
ovsdb</span></font><font color="#666600" face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">-</span></font><font face="monospace" size="1"><span style="font-size:13px;background-color:rgb(250,250,250)">client</span></font><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif">I looked at this tutorial (<a href="http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL;hb=HEAD" target="_blank">http://git.openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL;hb=HEAD</a>) but
it uses a PC Linux distribution, which has different filesystem, etc. that makes me not able to proceed as directed. Could anyone tell me how to specifically use OVS on OpenWRT or point me to a resource about it? </font><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif">Here is my post on Floodlight group that may provide more information (<a href="https://groups.google.com/a/openflowhub.org/d/msg/floodlight-dev/C6RAY-TYXdI/tHE8vt9tz9wJ" target="_blank">https://groups.google.com/a/openflowhub.org/d/msg/floodlight-dev/C6RAY-TYXdI/tHE8vt9tz9wJ</a>). </font><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif">Thanks, </font><font face="Calibri,Arial,Helvetica,sans-serif"><br>
</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;margin-top:0px;margin-bottom:0px">
<font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif">Yilun</font></span></font></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"></span></font></div>
<div><font face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:16px"><br>
</span></font></div>
<p><br>
</p>
</div>
</div>
</div>
<br>_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
<br></blockquote></div><br></div>