<div dir="ltr">Thanks Bjorn for the details, Have tried the option you have mentioned and thats when am getting POlicy mismatch error. I have to try the ModemManager to verify it.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 8, 2017 at 2:57 AM, Bjørn Mork <span dir="ltr"><<a href="mailto:bjorn@mork.no" target="_blank">bjorn@mork.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Balaji Sivakumar <<a href="mailto:shivbalaji1985@gmail.com">shivbalaji1985@gmail.com</a>> writes:<br>
<br>
> Thanks Bjorn for the reply, I got the idea and it works for me well.<br>
><br>
> Do you have any suggestions/ idea on creating dual stack connections on<br>
> single /dev/cdc-wdm device ? we are getting 'Policy Mismatch error'.<br>
<br>
</span>I wonder if that is caused by trying to "convert" a single stack<br>
connection to dual stack?<br>
<br>
QMI is (or was? this might be fixed in newer versions?) weird wrt dual<br>
stack. There is no way to request an IPV4V6 context when connecting,<br>
since you can only specify a single family per connection request. But<br>
only the first connection request will actually create a network<br>
context. The second one, for the second family, will simply return the<br>
family specific data from the existing dual-stack connection. Or fail,<br>
if that connection is single stack.<br>
<br>
One way to make the first connection dual stack is to predefine a dual<br>
stack profile matching the APN. I don't think this is supported in<br>
qmicli yet, but you can use AT commands to do it:<br>
<br>
at+cgdcont=1,"IPV4V6", "yourapn"<br>
<br>
<br>
You should check your list of configured profiles first, to make sure<br>
you don't mess up a profile you want to keep and also make sure you<br>
don't have any other (single family) profile for the same APN. If you<br>
have then that might be selected instead and you end up with a single<br>
family connection.<br>
<br>
Then issue the two family specific connection requests referring to this<br>
apn:<br>
<br>
qmicli -d /dev/cdc-wdm0 --client-no-release-cid --wds-start-network=apn=<wbr>yourapn,ip-type=4<br>
qmicli -d /dev/cdc-wdm0 --client-no-release-cid --wds-start-network=apn=<wbr>yourapn,ip-type=6<br>
<br>
<br>
Don't know if this was what you already tried. It's been a long time<br>
since I did anything like this manually. ModemManager tends to DTRT<br>
nowadays, so I just lean on that. If you are still having problems then<br>
you should study what ModemManager does to initiate a dual stack<br>
connection.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Bjørn<br>
</font></span></blockquote></div><br></div>