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

Reply via email to