<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">> Many thanks for the tips, I confirmed to you that this works correctly!<br>> But, a question as sooon as I got the IP Configuration it seems that the<br>> connection breaks, I have no time to put the IP address to the<br>> interface...<br>><br>> I will try to script it, but I am still not sure the reason why the<br>> connection stops working as soon as I request the ip configuration.<br>><br>> PLease don't hesitate if you have any idea :)<br><br><div>This is just a wild guess based on what I've experienced</div><div>when using Verizon LTE. I don't know enough to prove </div><div>that this is really what happens in my case, so this may not</div><div>be correct at all.<br></div><div><br></div><div>If I connect to the network, get the assigned IP address, and </div><div>then configure it on the wwan interface & configure a default </div><div>route to send all outgoing traffic over the wwan interface, then </div><div>everything is OK. Data will then start to be sent over the </div><div>wwan interface tagged with the expected source IP address.<br></div><div><br></div><div>However, if the network changes the assigned IP address </div><div>*before* my script detects that it has changed (which will </div><div>cause it to remove the old IP, and add the new IP to</div><div>the wwan interface), then an attempt might be made to </div><div>send packets out the wwan using the *old* IP address. </div><div>It seems to me that the network (at least Verizon) detects </div><div>this as an error and drops the connection.</div><div><br></div><div>Therefore, when my script detects that the assigned IP </div><div>address has changed (it polls qmicli every few seconds), </div><div>then it does something like this:</div><br><div>1. Remove the default route & old IP address for the wwan</div><div>interface.<br></div><div><br></div><div>2. Sleep for a few seconds in case previous traffic was </div><div>in process of being sent & the connection is again being</div><div>dropped and reestablished with yet another IP address.</div><div><br></div><div>3. Get the newly assigned IP address, add it to the wwan</div><div>interface, and then re-add the default route.</div><div><br></div><div>This seems to make things much more stable.</div><div><br></div><div>Maybe someone else will know more or have other ideas.<br></div><br></div></body></html>