[pox-dev] Change IP address in arp
Silvia Fichera
fichera.sil at gmail.com
Tue Jul 16 01:14:35 PDT 2013
I can explain it better.
I have my network. Host h1 send a ping to h2. While they're communicating
their ip address changes. All new ip assigned are in a list so i can check
if they are valid or not.
At the beginning it catches the if condition:
if prt==inport
but i've added another condition (check if the new dstip is a valid ip from
the list of all new ip) and i've duplicated the code of installing flows
addind the function I've already posted to change ip in the packet.
If I check dstaddr and srcadd I have new addresses but if I monitor traffic
with wireshak I see packet from h1 new ip to h2 hold ip.
Controller messages about arp tell me the same thing. In a first moment the
controller does the arp between the two new addresses, than it does it
between new source ip and old destination ip.
I've noticed in wireshark is in the interface of host h2 that when i change
ip addresses there is a particular ICMP packet with the information of
redirecting.
So, h1 continues to send packets but it does not recive answers anymore.
Maybe it's just something related to ICMP...
There is a way to uderstand what really happen?
Thanks
2013/7/16 Murphy McCauley <murphy.mccauley at gmail.com>
> I'm not sure I understand what you're doing here. But if you have an ARP
> packet object at the controller, you can just change the IP addresses
> before sending it (if I recall correctly, ARPs in l3_learning are *always*
> sent to the controller).
>
> Hope that helps. If not, maybe you can explain further exactly what
> you're doing/trying to do.
>
> -- Murphy
>
> On Jul 15, 2013, at 8:01 AM, Silvia Fichera wrote:
>
> > Hi all,
> > I'm using l3_learning. I've created a fuction to change randomly hosts's
> ip addresses. I've insert the action to change the dstip but, if I start a
> ping and than chenge the IP it is locked in arp because it look for old
> destination ip address. Ho to set new destination also in the arp packet?
> >
> > Thanks
> >
> > --
> > Silvia Fichera
>
>
--
Silvia Fichera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20130716/747aa81f/attachment-0002.htm>
More information about the pox-dev
mailing list