<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Have you tried a simple test?</div><div>pox.py log.level --DEBUG proto.dhcpd:default</div><div><br></div><div>-- Murphy</div><div><br></div>On Nov 23, 2013, at 2:11 PM, AMER <<a href="mailto:amer7777@hotmail.com">amer7777@hotmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><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<span class="Apple-converted-space"> </span></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<span class="Apple-converted-space"> </span><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,<span class="Apple-converted-space"> </span></font><font face="Lucida Handwriting">SCNP,<span class="Apple-converted-space"> </span></font><font face="Lucida Handwriting">CCNA</font></font></strong><br><br> <br><div><hr id="stopSpelling">From: <a href="mailto:amer7777@hotmail.com">amer7777@hotmail.com</a><br>Date: Sat, 23 Nov 2013 22:03:06 +0300<br>To: <a href="mailto:c.vijaya.durga@gmail.com">c.vijaya.durga@gmail.com</a><br>CC: <a href="mailto:pox-dev@lists.noxrepo.org">pox-dev@lists.noxrepo.org</a><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 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 class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:amer7777@hotmail.com" target="_blank">amer7777@hotmail.com</a>></span><span class="Apple-converted-space"> </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</blockquote></div></div></blockquote></div></div></div></blockquote></div><br></body></html>