[pox-dev] Build MAC list
Amer
amer7777 at hotmail.com
Sun Nov 24 03:44:25 PST 2013
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.mccauley at 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 <amer7777 at 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: amer7777 at hotmail.com
>> Date: Sat, 23 Nov 2013 22:03:06 +0300
>> To: c.vijaya.durga at gmail.com
>> CC: pox-dev at 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.durga at 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 <amer7777 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131124/5605f26c/attachment-0001.htm>
More information about the pox-dev
mailing list