<div dir="ltr">Hi,<div>I have tried modem manager utility to setup dual stack connection for EM7430 using following steps, seems am able to create a dual stack connection. I have got queries to understand, Can you anyone share the ideas/comments.</div><div><br></div><div><p class="MsoNormal"># mmcli -L 0<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">Found 1 modems:<span></span></p>
<p class="MsoNormal"> /org/freedesktop/ModemManager1/Modem/1
[Sierra Wireless, Incorporated] EM7430<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># mmcli -m 1
--simple-connect="apn=internet,ip-type=ipv4v6"<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">successfully connected the modem<span></span></p>
<p class="MsoNormal"># mmcli -b 0<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">Bearer '/org/freedesktop/ModemManager1/Bearer/0'<span></span></p>
<p class="MsoNormal">
-------------------------<span></span></p>
<p class="MsoNormal"> Status |
connected: 'yes'<span></span></p>
<p class="MsoNormal">
| suspended: 'no'<span></span></p>
<p class="MsoNormal">
| interface: 'wwan0'<span></span></p>
<p class="MsoNormal">
| IP timeout: '20'<span></span></p>
<p class="MsoNormal">
-------------------------<span></span></p>
<p class="MsoNormal"> Properties | apn: 'internet'<span></span></p>
<p class="MsoNormal">
| roaming: 'allowed'<span></span></p>
<p class="MsoNormal">
| IP type: 'ipv4v6'<span></span></p>
<p class="MsoNormal">
| user: 'none'<span></span></p>
<p class="MsoNormal"> | password: 'none'<span></span></p>
<p class="MsoNormal">
| number: 'none'<span></span></p>
<p class="MsoNormal"> |
Rm protocol: 'unknown'<span></span></p>
<p class="MsoNormal">
-------------------------<span></span></p>
<p class="MsoNormal"> IPv4 configuration
| method: 'static'<span></span></p>
<p class="MsoNormal">
| address: '192.168.1.11'<span></span></p>
<p class="MsoNormal"> |
prefix: '29'<span></span></p>
<p class="MsoNormal">
| gateway: '192.168.1.12'<span></span></p>
<p class="MsoNormal">
| DNS: '192.168.1.12',
'192.168.1.12'<span></span></p>
<p class="MsoNormal">
| MTU: '1500'<span></span></p>
<p class="MsoNormal">
-------------------------<span></span></p>
<p class="MsoNormal"> IPv6 configuration
| method: 'static'<span></span></p>
<p class="MsoNormal"> |
address: '2001::2:9153:6c2f:89af:a96d'<span></span></p>
<p class="MsoNormal">
| prefix: '64'<span></span></p>
<p class="MsoNormal">
| gateway:
'2001::2:c0f7:2c41:b231:ae43'<span></span></p>
<p class="MsoNormal">
| DNS: '2001:0:0:2::2'<span></span></p>
<p class="MsoNormal">
| MTU: '1500'<span></span></p>
<p class="MsoNormal">
-------------------------<span></span></p>
<p class="MsoNormal"> Stats | Duration: '0'<span></span></p>
<p class="MsoNormal">
| Bytes received: 'N/A'<span></span></p>
<p class="MsoNormal"> |
Bytes transmitted: 'N/A'<span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># echo Y > /sys/class/net/wwan0/qmi/raw_ip <span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># ifconfig wwan0 up<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># udhcpc -i wwan0<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">udhcpc: started, v1.26.2<span></span></p>
<p class="MsoNormal">udhcpc: sending discover<span></span></p>
<p class="MsoNormal">udhcpc: sending select for 192.168.1.11<span></span></p>
<p class="MsoNormal">udhcpc: lease of 192.168.1.11 obtained, lease time 7200<span></span></p>
<p class="MsoNormal">deleting routers<span></span></p>
<p class="MsoNormal">adding dns 192.168.1.12<span></span></p>
<p class="MsoNormal">adding dns 192.168.1.12<span></span></p>
<p class="MsoNormal">Recorded lease to [/var/run/udhcpc-wwan0.lease]<span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># ifconfig wwan0 2001::2:9153:6c2f:89af:a96d/64<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"># <span></span></p>
<p class="MsoNormal"># ping -I wwan0 -6 2001:0:0:2::2<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal">PING 2001:0:0:2::2(2001:0:0:2::2) 56 data bytes<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=1 ttl=128 time=1.36 ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=6 ttl=128 time=0.517
ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=7 ttl=128 time=0.493
ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=8 ttl=128 time=0.641
ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=9 ttl=128 time=0.765
ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=10 ttl=128 time=0.948
ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=11 ttl=128 time=0.711
ms<span></span></p>
<p class="MsoNormal">64 bytes from 2001:0:0:2::2: icmp_seq=12 ttl=128 time=0.489
ms<span></span></p><p class="MsoNormal"><br></p><p class="MsoNormal"><br></p><p class="MsoNormal">1.Is this the IPV6(2001::2:9153:6c2f:89af:a96d) address assigned through mmcli is dhcp-slaac address? Am only able to assign it statically.</p><p class="MsoNormal"><br></p><p class="MsoNormal">2. if i understand qmilci has the limitation on dual stack connection, is this right?</p><p class="MsoNormal"><br></p><p class="MsoNormal"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 2:38 PM, Aleksander Morgado <span dir="ltr"><<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Apr 12, 2017 at 9:14 PM, Dan Williams <<a href="mailto:dcbw@redhat.com">dcbw@redhat.com</a>> wrote:<br>
>> Have tried both the options but i still get the policy mismatch error<br>
>> when<br>
>> i try to activate for ip-type=6, even the profiles support both IPV4<br>
>> and<br>
>> IPV6, it allows to create a network either one of them.<br>
>><br>
>> It should be like this right, if we don't specify the ip-type option<br>
>> as<br>
>> part of start-network should be able to transmit message using both<br>
>> IPV4<br>
>> and IPV6.<br>
><br>
> Last I checked with Verizon (over a year ago), specifically with<br>
> VZWINTERNET on an MC7750 and UML290, the behavior that you are doing<br>
> was how the Verizon Broadband Access Manager (VZAM) operated to acquire<br>
> an IPv4 and IPv6 address. And yes, the modem had VZWINTERNET with a<br>
> V4V6 PDP context as shown by CGDCONT.<br>
><br>
> 1) create a WDS client<br>
> 2) call StartNetwork with ip-type=v4<br>
> 3) get current settings with client from #1<br>
> 4) create a new WDS client<br>
> 5) call StartNetwork with ip-type=v6<br>
> 6) get current settings with client from #4<br>
><br>
> Both v4 and v6 addresses get configured on the same network interface,<br>
> but are acquired through different WDS clients and StartNetwork<br>
> requests. As far as I know, QMI has no "v4v6" ip-type attribute for<br>
> StartNetwork.<br>
><br>
> Perhaps that's changed, would be nice to verify what VZAM or other QMI-<br>
> based Windows connection managers are doing these days to get a dual-<br>
> stack connection.<br>
<br>
</div></div>In ModemManager the flow is a bit different to request this same<br>
setup. Instead of calling StartNetwork with a given "IP Family<br>
Preference" TLV (as you would have with<br>
--wds-start-network="ip-type=<wbr>X"), we instead call the "WDS Set IP<br>
Family" command before calling "WDS Start Network" and if that<br>
succeeds, we won't add the TLV. Only if the "WDS Set IP Family"<br>
command fails, we do set the TLV.<br>
<br>
We could test this approach if we had a --wds-set-ip-family command in<br>
qmicli, but we don't yet; patches welcome :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</font></span></blockquote></div><br></div>