<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">Hello,</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">I tried it, it works fine.</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">I tried pox.py forwarding. l2_multi openflow.discovery proto.dhcpd: default </span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;"><br></span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">I received in Debug:</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">misc.dhcpd [00-00-00-00-00-07 4] no packet</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">proto.dhcpd </span><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto; ">[00-00-00-00-00-07 4] no packet</span></div><div style="text-align: left;direction: ltr; "><br></div><div style="text-align: left;direction: ltr; "><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto;">DHCP packet data too short to parse: data len 86</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto;"><br></span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto;">Best regards,</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto;">Amer</span></div><br><span style="-webkit-text-size-adjust: auto;">Sent from my iPhone</span></div><div style="-webkit-text-size-adjust: auto; "><br>On ٢٤/١١/٢٠١٣, at ٤:١٨ م, Murphy McCauley <<a href="mailto:murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto; "><div><meta http-equiv="Content-Type" content="text/html charset=utf-8">Try to isolate the problem. What if you just run discovery and the DHCP server? Does it work then? Does the log (at DEBUG level) provide any hints?<div><br></div><div>-- Murphy</div><div><br><div><div>On Nov 24, 2013, at 3:44 AM, Amer <<a href="mailto:amer7777@hotmail.com">amer7777@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">Dear Murphy</span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;"><br></span></div><div style="text-align: left;direction: ltr; "><span style="-webkit-text-size-adjust: auto;">I tried</span></div><blockquote type="cite" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); -webkit-text-size-adjust: auto; ">pox.py log.level --DEBUG proto.dhcpd:default</blockquote><div><br></div>It is OK</div><div>But I do not know what is the problem in previous command</div><div><br></div><div>Best regards,</div><div>Amer<br></div><div style="-webkit-text-size-adjust: auto; "><br>On ٢٤/١١/٢٠١٣, at ١:٢٦ ص, Murphy McCauley <<a href="mailto:murphy.mccauley@gmail.com">murphy.mccauley@gmail.com</a>> wrote:<br><br></div><blockquote type="cite" style="-webkit-text-size-adjust: auto; "><meta http-equiv="Content-Type" content="text/html charset=utf-8"><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></blockquote></div></blockquote></div><br></div></div></blockquote></body></html>