<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Assuming that you're running on Linux, you could try setting up network namespaces.&nbsp;<br><br><div>--Justin<br></div><div><br></div></div><div><br>On Jan 12, 2017, at 6:36 PM, Raymond Burkholder &lt;<a href="mailto:ray@oneunified.net">ray@oneunified.net</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">Try running VirtualBox, and build two guests with shared networking.&nbsp;&nbsp; That will get you an appropriate simulation of computer to computer vxlan mechanisms.<o:p></o:p></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> <a href="mailto:ovs-discuss-bounces@openvswitch.org">ovs-discuss-bounces@openvswitch.org</a> [<a href="mailto:ovs-discuss-bounces@openvswitch.org">mailto:ovs-discuss-bounces@openvswitch.org</a>] <b>On Behalf Of </b>Shravan S K<br><b>Sent:</b> Thursday, January 12, 2017 22:34<br><b>To:</b> Scott Lowe &lt;<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;<br><b>Cc:</b> <a href="mailto:ovs-discuss@openvswitch.org">ovs-discuss@openvswitch.org</a><br><b>Subject:</b> Re: [ovs-discuss] VXLAN support in OVS 2.5.0<o:p></o:p></span></p></div></div><p class="MsoNormal"><o:p>&nbsp;</o:p></p><p>Because of lack of hardware, I'm trying a vxlan setup on a single computer. <o:p></o:p></p><div><p class="MsoNormal">On 13-Jan-2017 04:47, "Scott Lowe" &lt;<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt; wrote:<o:p></o:p></p><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in"><p class="MsoNormal" style="margin-bottom:12.0pt">Please don't drop the list.<br><br>Before we go down that path, can you help me understand what you're<br>trying to achieve by building a VXLAN tunnel between two VMs on the same<br>host?<br><br><br><br>On 01/12/2017 10:15 AM, Shravan S K wrote:<br>&gt; I am not sure how to do the config for what you said.<br>&gt; Can you please explain how to configure the setup that you're suggesting ?<br>&gt;<br>&gt; Shravan<br>&gt;<br>&gt; On 12 January 2017 at 02:17, Scott Lowe &lt;<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a><br>&gt; &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;On 01/11/2017 03:54 AM, Shravan S K wrote:<br>&gt;&nbsp; &nbsp; &nbsp;&gt; Like this?<br>&gt;&nbsp; &nbsp; &nbsp;&gt; vm01-------------------|<br>&gt;&nbsp; &nbsp; &nbsp;&gt; |------------------vm03<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; br1(vxlanport1)------------br-int1=================br-int2----------(vxlanport2)br2<br>&gt;&nbsp; &nbsp; &nbsp;&gt; vm02-------------------|<br>&gt;&nbsp; &nbsp; &nbsp;&gt; |-------------------vm04<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; What is the need for the bridges br-int1 and br-int2? Why is it not<br>&gt;&nbsp; &nbsp; &nbsp;&gt; possible without them(as the topology shown earlier in this thread)?<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;[SL] No, I don't think this is the configuration you'd want to use. The<br>&gt;&nbsp; &nbsp; &nbsp;"br-int" bridges aren't strictly required; you could use br1 and br2.<br>&gt;&nbsp; &nbsp; &nbsp;The trick here---as you're trying to create a VXLAN tunnel within a<br>&gt;&nbsp; &nbsp; &nbsp;host---would be that you'll need 2 IP endpoints (one for each end of the<br>&gt;&nbsp; &nbsp; &nbsp;tunnel), and you'd need each bridge with a VXLAN port to be associated<br>&gt;&nbsp; &nbsp; &nbsp;with one of those IP endpoints.<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;As I said, though, I haven't tested a configuration like this. Further,<br>&gt;&nbsp; &nbsp; &nbsp;to be honest, I'm not really sure what you're trying to accomplish with<br>&gt;&nbsp; &nbsp; &nbsp;such a configuration.<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; Shravan<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; On 11 January 2017 at 11:59, Scott Lowe &lt;<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a> &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a> &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;&gt;&gt; wrote:<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; Please see my response inline, prefixed with [SL].<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; On 01/10/2017 09:50 PM, Shravan S K wrote:<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; I am asking if that can be done on a single physical host having<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; OVS. Say, as mininet creates bridges which act as switches. Can<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; vxlan be setup using Mininet?<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; [SL] I don't know if it's possible for Mininet to set up VXLAN;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; that's a question best asked on a Mininet-related forum.<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt; As for whether it can be done on a single host, I suppose if you were<br>&gt;&nbsp; &nbsp; &nbsp;&gt; to use 2 separate bridges for physical connectivity along with 2<br>&gt;&nbsp; &nbsp; &nbsp;&gt; separate bridges for the tunnels, it might work. I've never tried it,<br>&gt;&nbsp; &nbsp; &nbsp;&gt; though, so this is just conjecture.<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; Shravan<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; On 10 January 2017 at 23:33, Scott Lowe &lt;<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a> &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a> &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a><br>&gt;&nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt; &lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a><br>&gt;&nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:scott.lowe@scottlowe.org">scott.lowe@scottlowe.org</a>&gt;&gt;&gt;&gt; wrote:<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; Please see my response below.<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; On 01/10/2017 02:26 AM, Shravan S K wrote:<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt; Is it possible to create a VXLAN setup using just bridges created<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt; by OVS? (using ovs-vsctl to create these bridges,ports and vxlan<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt; config)<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt; vm01-------------------|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|------------------vm03<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;br1-------br2<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;&gt; vm02-------------------|&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|-------------------vm04<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; Yes, this is possible. On each hypervisor where OVS is running and<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; where you have VMs you'd like to connect over VXLAN tunnels, create<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; a bridge ("br-tun", for example). Create and configure a VXLAN port<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; appropriately on br-tun on each hypervisor, and then connect your<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; VMs. You should be good to go. My website has an example of doing<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; this with GRE; VXLAN should be nearly identical.<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt;<br>&gt;&nbsp; &nbsp; &nbsp;&gt;&gt; Hope this helps,<br>&gt;<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp;--<br>&gt;&nbsp; &nbsp; &nbsp;Scott<br>&gt;<br>&gt;<br>&gt;<o:p></o:p></p></blockquote></div><p class="MsoNormal"><br>-- <br>This message has been scanned for viruses and <br>dangerous content by <a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is <br>believed to be clean. <o:p></o:p></p></div></div><br>-- 
<br>This message has been scanned for viruses and
<br>dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a>, and is
<br>believed to be clean.

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>discuss mailing list</span><br><span><a href="mailto:discuss@openvswitch.org">discuss@openvswitch.org</a></span><br><span><a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a></span><br></div></blockquote></body></html>