<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="courier new, monospace">Hi,</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="courier new, monospace"><br>

</font></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><font face="courier new, monospace">When you are creating switches for mininet topology you pass the dpid as given below.</font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">

<br></div><div class="gmail_default" style="font-size:small"><pre style="font-size:12px;margin-top:0px;margin-bottom:0px;line-height:18px"><div class="" id="LC33" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">

    <span class="" style>info</span><span class="" style>(</span> <span class="" style="color:rgb(221,17,68)">'*** Add switches</span><span class="" style="color:rgb(221,17,68)">\n</span><span class="" style="color:rgb(221,17,68)">'</span><span class="" style>)</span></div>

<div class="" id="LC34" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">    <span class="" style>s1</span> <span class="" style="font-weight:bold">=</span> <span class="" style>net</span><span class="" style="font-weight:bold">.</span><span class="" style>addSwitch</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">'s1'</span><span class="" style>,</span> <span class="" style>cls</span><span class="" style="font-weight:bold">=</span><span class="" style>OVSKernelSwitch</span><span class="" style>,</span> <span class="" style>dpid</span><span class="" style="font-weight:bold">=</span><span class="" style="color:rgb(221,17,68)">'0000000000000201'</span><span class="" style>)</span></div>

<div class="" id="LC35" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">    <span class="" style>s2</span> <span class="" style="font-weight:bold">=</span> <span class="" style>net</span><span class="" style="font-weight:bold">.</span><span class="" style>addSwitch</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">'s2'</span><span class="" style>,</span> <span class="" style>cls</span><span class="" style="font-weight:bold">=</span><span class="" style>OVSKernelSwitch</span><span class="" style>,</span> <span class="" style>dpid</span><span class="" style="font-weight:bold">=</span><span class="" style="color:rgb(221,17,68)">'0000000000000202'</span><span class="" style>)</span></div>

<div class="" id="LC36" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">    <span class="" style>s3</span> <span class="" style="font-weight:bold">=</span> <span class="" style>net</span><span class="" style="font-weight:bold">.</span><span class="" style>addSwitch</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">'s3'</span><span class="" style>,</span> <span class="" style>cls</span><span class="" style="font-weight:bold">=</span><span class="" style>OVSKernelSwitch</span><span class="" style>,</span> <span class="" style>dpid</span><span class="" style="font-weight:bold">=</span><span class="" style="color:rgb(221,17,68)">'0000000000000203'</span><span class="" style>)</span></div>

<div class="" id="LC37" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">    <span class="" style>s4</span> <span class="" style="font-weight:bold">=</span> <span class="" style>net</span><span class="" style="font-weight:bold">.</span><span class="" style>addSwitch</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">'s4'</span><span class="" style>,</span> <span class="" style>cls</span><span class="" style="font-weight:bold">=</span><span class="" style>OVSKernelSwitch</span><span class="" style>,</span> <span class="" style>dpid</span><span class="" style="font-weight:bold">=</span><span class="" style="color:rgb(221,17,68)">'0000000000000204'</span><span class="" style>)</span></div>

<div class="" id="LC38" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">    <span class="" style>s5</span> <span class="" style="font-weight:bold">=</span> <span class="" style>net</span><span class="" style="font-weight:bold">.</span><span class="" style>addSwitch</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">'s5'</span><span class="" style>,</span> <span class="" style>cls</span><span class="" style="font-weight:bold">=</span><span class="" style>OVSKernelSwitch</span><span class="" style>,</span> <span class="" style>dpid</span><span class="" style="font-weight:bold">=</span><span class="" style="color:rgb(221,17,68)">'0000000000000205'</span><span class="" style>)</span></div>

<div class="" id="LC39" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">    <span class="" style>s6</span> <span class="" style="font-weight:bold">=</span> <span class="" style>net</span><span class="" style="font-weight:bold">.</span><span class="" style>addSwitch</span><span class="" style>(</span><span class="" style="color:rgb(221,17,68)">'s6'</span><span class="" style>,</span> <span class="" style>cls</span><span class="" style="font-weight:bold">=</span><span class="" style>OVSKernelSwitch</span><span class="" style>,</span> <span class="" style>dpid</span><span class="" style="font-weight:bold">=</span><span class="" style="color:rgb(221,17,68)">'0000000000000206'</span><span class="" style>)</span></div>

<div class="" id="LC39" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px"><span style="font-family:'courier new',monospace;color:rgb(0,0,0)"><br>

</span></div><div class="" id="LC39" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px"><span style="font-family:'courier new',monospace;color:rgb(0,0,0)">My question is </span><br>

</div><div class="" id="LC39" style="padding-left:10px;height:18px"><span style="color:rgb(0,0,0);font-family:'courier new',monospace"><br></span></div><div class="" id="LC39" style="padding-left:10px;height:18px">

<span style="color:rgb(0,0,0);font-family:'courier new',monospace">What is dpid? How is it related to MAC addresses for each port of the Ethernet </span></div><div class="" id="LC39" style="padding-left:10px;height:18px">

<span style="color:rgb(0,0,0);font-family:'courier new',monospace">switch.Suppose the switch has 12 ports (for e.g) each of the ports will have a </span></div><div class="" id="LC39" style="padding-left:10px;height:18px">

<span style="color:rgb(0,0,0);font-family:'courier new',monospace">MAC address.(48 -bits long).How come a switch has a single data path identifier?</span></div><div class="" id="LC39" style="padding-left:10px;height:18px">

<span style="color:rgb(0,0,0);font-family:'courier new',monospace">How is related to MAC address?</span></div><div class="" id="LC39" style="padding-left:10px;height:18px"><span style="color:rgb(0,0,0);font-family:'courier new',monospace"><br>

</span></div><div class="" id="LC39" style="padding-left:10px;height:18px"><font color="#000000" face="courier new, monospace">Regards,</font></div><div class="" id="LC39" style="padding-left:10px;height:18px"><font color="#000000" face="courier new, monospace">Karthik.</font></div>

<div class="" id="LC39" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px"><span class="" style><br></span></div><div class="" id="LC39" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;padding-left:10px;height:18px">

<span class="" style><br></span></div></pre></div></div>