Hello, I tried it, it works fine. I tried pox.py forwarding. l2_multi openflow.discovery proto.dhcpd: default
I received in Debug: misc.dhcpd [00-00-00-00-00-07 4] no packet proto.dhcpd [00-00-00-00-00-07 4] no packet DHCP packet data too short to parse: data len 86 Best regards, Amer Sent from my iPhone On ٢٤/١١/٢٠١٣, at ٤:١٨ م, Murphy McCauley <murphy.mccau...@gmail.com> wrote: > 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? > > -- Murphy > > On Nov 24, 2013, at 3:44 AM, Amer <amer7...@hotmail.com> wrote: > >> Dear Murphy >> >> I tried >>> pox.py log.level --DEBUG proto.dhcpd:default >> >> It is OK >> But I do not know what is the problem in previous command >> >> Best regards, >> Amer >> >> On ٢٤/١١/٢٠١٣, at ١:٢٦ ص, Murphy McCauley <murphy.mccau...@gmail.com> >> wrote: >> >>> Have you tried a simple test? >>> pox.py log.level --DEBUG proto.dhcpd:default >>> >>> -- Murphy >>> >>> On Nov 23, 2013, at 2:11 PM, AMER <amer7...@hotmail.com> wrote: >>> >>>> Hello, >>>> >>>> I tried the following: >>>> >>>> pox.py forwarding.l2_multi openflow.discovery proto.dhcpd >>>> --network=10.1.1.0/24 --ip=10.0.0.4 --first=10 >>>> in l2_multi, from pox.lib.packet.dhcp import * >>>> under Switch() class I added >>>> core.DHCPD.addListenerByName('DHCPLease', _H_hate_) >>>> def _H_hate_ (self, event): >>>> macmap[event.connection.dpid] = event.host_mac >>>> print "DHCP" >>>> >>>> in mininet CLI >>>> >h4 dhclient -v >>>> Internet Systems Consortium DHCP Client 4.1-ESV-R4 >>>> Copyright 2004-2011 Internet Systems Consortium. >>>> All rights reserved. >>>> For info, please visit https://www.isc.org/software/dhcp/ >>>> Listening on LPF/h4-eth0/f2:f9:b3:96:ba:0b >>>> Sending on LPF/h4-eth0/f2:f9:b3:96:ba:0b >>>> Sending on Socket/fallback >>>> DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 3 >>>> DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 5 >>>> DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 5 >>>> DHCPDISCOVER on h4-eth0 to 255.255.255.255 port 67 interval 13 >>>> >>>> What is the problem >>>> >>>> Best regards, >>>> >>>> >>>> >>>> >>>> Eng Amer Alghadhban >>>> COE >>>> SANS-GCFW >>>> CEH, SCNP, CCNA >>>> >>>> >>>> From: amer7...@hotmail.com >>>> Date: Sat, 23 Nov 2013 22:03:06 +0300 >>>> To: c.vijaya.du...@gmail.com >>>> CC: pox-dev@lists.noxrepo.org >>>> Subject: Re: [pox-dev] Build MAC list >>>> >>>> Thank you >>>> This means I should ping each host in the network to get the packets. >>>> I want something automatic like openflow discovery to discover the >>>> clients. I have another question: >>>> What does DHCP request message has (i.e., attributes)? In POX not in >>>> general. >>>> >>>> Best regards, >>>> Amer >>>> >>>> Sent from my iPhone >>>> >>>> On ٢٣/١١/٢٠١٣, at ٤:٣٤ م, durga <c.vijaya.du...@gmail.com> wrote: >>>> >>>> Hi Amer, >>>> >>>> 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). >>>> >>>> Cheers! >>>> Durga >>>> >>>> >>>> >>>> On Sat, Nov 23, 2013 at 10:47 PM, Amer <amer7...@hotmail.com> wrote: >>>> Hello, >>>> >>>> I want to collect MAC addresses of each host in the network and switch >>>> they connect to and port number. >>>> I think about DHCP and openflow discovery, but I do not know how to >>>> combine them. >>>> >>>> >>>> Best regards, >>>> Amer >