<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello,<BR> <BR>I tried the following:<BR> <BR><em>pox.py forwarding.l2_multi openflow.discovery proto.dhcpd --network=10.1.1.0/24 --ip=10.0.0.4 --first=10
</em><BR><em>in l2_multi, from pox.lib.packet.dhcp import *</em><BR>under Switch() class I added<BR><div class="line number5 index4 alt2"><code class="python plain">core.DHCPD.addListenerByName(</code><code class="python string">'DHCPLease'</code><code class="python plain">, _H_hate_)</code></div>def _H_hate_ (self, event):<BR> macmap[event.connection.dpid] = event.host_mac<BR> print "DHCP"<BR> <BR>in mininet CLI<BR>>h4 dhclient -v<BR>Internet Systems Consortium DHCP Client 4.1-ESV-R4<br>Copyright 2004-2011 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit <a href="https://www.isc.org/software/dhcp/">https://www.isc.org/software/dhcp/</a><BR>Listening on LPF/h4-eth0/f2:f9:b3:96:ba:0b<br>Sending on LPF/h4-eth0/f2:f9:b3:96:ba:0b<br>Sending on Socket/fallback<br>DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 3<br>DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 5<br>DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 5<br>DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 13<br><BR>What is the problem<BR> <BR>Best regards,<BR> <BR> <BR><br><br><font color="#800000" face="Lucida Handwriting, Cursive"><strong>Eng Amer Alghadhban</strong></font><br>
<font color="#800000" face="Lucida Handwriting"><strong>COE</strong></font><br>
<font color="#800000" face="Lucida Handwriting"><strong>SANS-GCFW</strong></font><br>
<strong><font color="#800000"><font face="Lucida Handwriting">CEH, </font><font face="Lucida Handwriting">SCNP, </font><font face="Lucida Handwriting">CCNA</font></font></strong><br><br> <BR><div><hr id="stopSpelling">From: amer7777@hotmail.com<br>Date: Sat, 23 Nov 2013 22:03:06 +0300<br>To: c.vijaya.durga@gmail.com<br>CC: pox-dev@lists.noxrepo.org<br>Subject: Re: [pox-dev] Build MAC list<br><br><div>Thank you</div><div>This means I should ping each host in the network to get the packets.</div><div>I want something automatic like openflow discovery to discover the clients. I have another question:</div><div>What does DHCP request message has (i.e., attributes)? In POX not in general.</div><div><br></div><div>Best regards,</div><div>Amer<br><br>Sent from my iPhone</div><div><br>On ٢٣/١١/٢٠١٣, at ٤:٣٤ م, durga <<a href="mailto:c.vijaya.durga@gmail.com">c.vijaya.durga@gmail.com</a>> wrote:<br><br></div><blockquote><div><div dir="ltr"><div class="ecxgmail_default" style="color: rgb(153, 51, 0); font-family: tahoma,sans-serif; font-size: small;">Hi Amer,</div><div class="ecxgmail_default" style="color: rgb(153, 51, 0); font-family: tahoma,sans-serif; font-size: small;"><br>
</div><div class="ecxgmail_default" style="color: rgb(153, 51, 0); font-family: tahoma,sans-serif; font-size: small;">I am not too sure if I understand your question,but to my current learning, all the above fields can be collected as in_port.src (mac ID), event.dpid (switch connection) and event.port( inport).</div>
</div><div class="ecxgmail_extra"><br clear="all"><div>Cheers!<br>Durga<br><br></div>
<br><br><div class="ecxgmail_quote">On Sat, Nov 23, 2013 at 10:47 PM, Amer <span dir="ltr"><<a href="mailto:amer7777@hotmail.com" target="_blank">amer7777@hotmail.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">
Hello,<br>
<br>
I want to collect MAC addresses of each host in the network and switch they connect to and port number.<br>
I think about DHCP and openflow discovery, but I do not know how to combine them.<br>
<br>
<br>
Best regards,<br>
Amer<br>
</blockquote></div><br></div>
</div></blockquote></div> </div></body>
</html>