[pox-dev] FW: Build MAC list
AMER
amer7777 at hotmail.com
Sat Nov 23 14:11:12 PST 2013
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 youThis 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/20131123/b8e54d86/attachment-0002.htm>
More information about the pox-dev
mailing list