<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
Thank you for the help.<br>
<br>
发送自 Outlook
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> Ben Pfaff &lt;blp@ovn.org&gt;<br>
<b>发送时间:</b> 2019年3月19日 4:32:22<br>
<b>收件人:</b> pei Jikui<br>
<b>抄送:</b> ovs-discuss@openvswitch.org<br>
<b>主题:</b> Re: 回复: [ovs-discuss] a question regarding to tap internal interface</font>
<div>&nbsp;</div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">I think that &quot;tap&quot; is just the name of the interface in that case.&nbsp; I<br>
don't know why it is named &quot;tap&quot;.<br>
<br>
On Sat, Mar 16, 2019 at 11:27:21PM &#43;0000, pei Jikui wrote:<br>
&gt; Ben,<br>
&gt; <br>
&gt; Thanks much for your reply.<br>
&gt; <br>
&gt; My confusion comes from the openstack's official document of <a href="https://docs.openstack.org/liberty/networking-guide/scenario-classic-ovs.html">
https://docs.openstack.org/liberty/networking-guide/scenario-classic-ovs.html</a><br>
&gt; <br>
&gt;&nbsp;&nbsp;&nbsp; As illustrated in the picture, we can see that the interface used to connect ovs and dhcp-netns is a tap interface. While from the output of &quot;ovs-vsctl show&quot;, it indicates that the type of interface is internal.&nbsp; That confuses me much.<br>
&gt; <br>
&gt;&nbsp;&nbsp;&nbsp; I am thinking that the tap interface is for the name of the interface instead of the type of the interface?<br>
&gt; <br>
&gt; Thanks<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; 发送自 Outlook&lt;<a href="http://aka.ms/weboutlook">http://aka.ms/weboutlook</a>&gt;<br>
&gt; <br>
&gt; ________________________________<br>
&gt; 发件人: Ben Pfaff &lt;blp@ovn.org&gt;<br>
&gt; 发送时间: 2019年3月17日 1:44<br>
&gt; 收件人: pei Jikui<br>
&gt; 抄送: ovs-discuss@openvswitch.org<br>
&gt; 主题: Re: [ovs-discuss] a question regarding to tap internal interface<br>
&gt; <br>
&gt; On Sat, Mar 16, 2019 at 11:24:34AM &#43;0000, pei Jikui wrote:<br>
&gt; &gt; hi,<br>
&gt; &gt;<br>
&gt; &gt; 1) From the openstack documents, we know that for the tenant's dhcp functionality, the usage is to connect a dhcp netns to the ovs using a tap interface.<br>
&gt; &gt; At the same time, the ovs-vsctl show that the tap interface is a type of internal interface for OVS.<br>
&gt; <br>
&gt; This is wrong.&nbsp; Tap and internal are different kinds of interfaces.<br>
&gt; What does ovs-vsctl show that makes you confuse the two?<br>
&gt; <br>
&gt; &gt; While I could not add a tap type interface to ovs as an internal type of interface for OVS.<br>
&gt; &gt;<br>
&gt; &gt; The commands I used,<br>
&gt; &gt; a) ip tuntap add dev tap0 mode tap.<br>
&gt; &gt; b) ovs-vsctl add-port ovs0 tap0 -- set inteface tap0 type=internal<br>
&gt; <br>
&gt; These commands are wrong.&nbsp; If you create a tap interface, you must not<br>
&gt; tell ovs-vsctl that it is an internal interface.<br>
&gt; <br>
&gt; What led you to believe that these commands were correct?<br>
&gt; <br>
&gt; &gt; error: &quot;could not add network device tap12 to ofproto (No such device)&quot;<br>
&gt; &gt;<br>
&gt; &gt; 2) My questions are ,<br>
&gt; &gt;&nbsp;&nbsp;&nbsp; a) how to add a tap interface to OVS and set it as internal type of interface of OVS?<br>
&gt; <br>
&gt; You cannot.&nbsp; That is not possible.<br>
<br>
<br>
</div>
</span></font></div>
</body>
</html>