<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm still missing a lot of details.<div><br></div><div>Are the IPs all in the same subnet?</div><div><br></div><div>The IPs change on the host.  Both at the same time?  At the controller, how do you know that the change has happened?</div><div><br></div><div>It might help if I understood why this was going on.  A pcap trace might also help, though the time I personally have available to look is limited until the end of the week.</div><div><br></div><div>-- Murphy</div><div><br><div><div>On Jul 16, 2013, at 1:14 AM, Silvia Fichera wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I can explain it better.<div>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.</div>
<div><br></div><div>At the beginning it catches the if condition:</div><div><br></div><div>if prt==inport</div><div><br></div><div>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. </div>
<div>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.</div><div>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.</div>
<div>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.</div><div>So, h1 continues to send packets but it does not recive answers anymore.</div>
<div>Maybe it's just something related to ICMP...<br><div>There is a way to uderstand what really happen?</div></div><div><br></div><div>Thanks</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2013/7/16 Murphy McCauley <span dir="ltr"><<a href="mailto:murphy.mccauley@gmail.com" target="_blank">murphy.mccauley@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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).<br>

<br>
Hope that helps.  If not, maybe you can explain further exactly what you're doing/trying to do.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Murphy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Jul 15, 2013, at 8:01 AM, Silvia Fichera wrote:<br>
<br>
> Hi all,<br>
> 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?<br>

><br>
> Thanks<br>
><br>
> --<br>
> Silvia Fichera<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Silvia Fichera
</div>
</blockquote></div><br></div></body></html>