<div dir="ltr"><div>I already have the default one configured to use ipv4v6<br><br>+CGDCONT: 1,"IPV4V6","INTERNET","0.0.0.0",0,0<br>+CGDCONT: 2,"IPV4V6","admin","0.0.0.0",0,0<br>+CGDCONT: 3,"IPV4V6","INTERNET","0.0.0.0",0,0                                <br>+CGDCONT: 4,"IPV4V6","app","0.0.0.0",0,0                                     <br>+CGDCONT: 13,"IP","","0.0.0.0",0,0               <br><br>Still the part of configuring the IPv6 using the network manager! does it mean I have to statically configure it? I know the carrier is dynamically allocating the IP's in the PGW.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 4:19 PM, Dan Williams <span dir="ltr"><<a href="mailto:dcbw@redhat.com" target="_blank">dcbw@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 2015-09-24 at 11:42 -0500, Dan Williams wrote:<br>
> On Thu, 2015-09-24 at 18:01 +0200, Aleksander Morgado wrote:<br>
> > Hey,<br>
> ><br>
> > Have you checked this libqmi thread?<br>
> > <a href="http://lists.freedesktop.org/archives/libqmi-devel/2014-December/001036.html" rel="noreferrer" target="_blank">http://lists.freedesktop.org/archives/libqmi-devel/2014-December/001036.html</a><br>
> ><br>
> > There are some good comments there from Bjørn regarding default<br>
> > profiles and the ipv4-or-ipv6 context.<br>
><br>
> To summarize what Bjorn says, most WWAN modem firmware does *not*<br>
> support DHCPv6.  They typically support either static IP configuration<br>
> (via values reported from firmware) or IPv6 SLAAC (eg, router<br>
> advertisements).  Unfortunately some devices don't pass DNS information<br>
> in the RAs, so your only recourse here is to use the static information<br>
> or hardcode the DNS servers.<br>
><br>
> You must also ensure that the context/profile is IPv6 capable, which<br>
> ModemManager currently doesn't do (but really, really should).<br>
> Otherwise the modem may crash (observed with MC7750 and UML290 at least,<br>
> maybe others).<br>
<br>
</span>To follow up on this, I used a Huawei E397 to bring up dual-stack IPV4V6<br>
context successfully with ModemManager and NetworkManager.  First, make<br>
sure the APN you're using is known-good (otherwise you'll get CallFailed<br>
errors) and that the profile in the modem that matches the APN is a V4V6<br>
context.  If it's not, for now you can set that context via AT commands<br>
by:<br>
<br>
AT+CGDCONT?<br>
AT+CGDCONT=<profile number>,"<apn>","IPV4V6"<br>
<br>
and the modem should update.  Then you can connect with either mmcli or<br>
NetworkManager.  If you get the bearer's IP details it'll look like<br>
this:<br>
<br>
Bearer '/org/freedesktop/ModemManager1/Bearer/5'<br>
  -------------------------<br>
  Status             |   connected: 'yes'<br>
                     |   suspended: 'no'<br>
                     |   interface: 'wwp0s20u1i3'<br>
                     |  IP timeout: '20'<br>
  -------------------------<br>
  Properties         |         apn: '<a href="http://epc.tmobile.com" rel="noreferrer" target="_blank">epc.tmobile.com</a>'<br>
                     |     roaming: 'allowed'<br>
                     |     IP type: 'ipv4v6'<br>
                     |        user: 'none'<br>
                     |    password: 'none'<br>
                     |      number: '*99#'<br>
                     | Rm protocol: 'unknown'<br>
  -------------------------<br>
  IPv4 configuration |   method: 'dhcp'<br>
                     |  address: '<a href="tel:30.178.21.152" value="+13017821152">30.178.21.152</a>'<br>
                     |   prefix: '30'<br>
                     |  gateway: '<a href="tel:30.178.21.153" value="+13017821153">30.178.21.153</a>'<br>
                     |      DNS: '10.177.0.34', '10.165.228.68'<br>
                     |      MTU: '1500'<br>
  -------------------------<br>
  IPv6 configuration |   method: 'dhcp'<br>
                     |  address: '2607:fb90:1900:c650:f87f:85a7:cacb:ee86'<br>
                     |   prefix: '64'<br>
                     |  gateway: '2607:fb90:1900:c650:6018:a203:242d:42fd'<br>
                     |      DNS: 'fd00:976a::9'<br>
                     |      MTU: '1500'<br>
<br>
You can either use something like NetworkManager to do the IP<br>
configuration, or do it yourself.  "DHCP" here really just means<br>
"automatic", which for IPv4 would be DHCP and for IPv6 means SLAAC +<br>
DHCP (if the modem requests you to run DHCP via the "O" or "M" flags in<br>
the RA).<br>
<br>
Dan<br>
<div><div class="h5"><br>
> Dan<br>
><br>
> > Also, see some clarifications below about how to use qmicli along with<br>
> > ModemManager, unrelated to your issue.<br>
> ><br>
> > ><br>
> > > root@router:/home# mmcli -L<br>
> > ><br>
> > > Found 1 modems:<br>
> > >     /org/freedesktop/ModemManager1/Modem/0 [Sierra Wireless, Incorporated]<br>
> > > MC7354<br>
> > ><br>
> > > root@router:/home# mmcli -m 0<br>
> > ><br>
> > > /org/freedesktop/ModemManager1/Modem/0 (device id<br>
> > > '08fd8263ec2eb5f680a533bdcded55eef628d7bb')<br>
> > >   -------------------------<br>
> > >   Hardware |   manufacturer: 'Sierra Wireless, Incorporated'<br>
> > >            |          model: 'MC7354'<br>
> > >            |       revision: 'SWI9X15C_05.05.16.03 r22385 carmd-fwbuild1<br>
> > > 2014/06/04 15:01:26'<br>
> > >            |      supported: 'gsm-umts<br>
> > >            |                  cdma-evdo<br>
> > >            |                  lte<br>
> > >            |                  cdma-evdo, gsm-umts<br>
> > >            |                  gsm-umts, lte<br>
> > >            |                  cdma-evdo, lte<br>
> > >            |                  cdma-evdo, gsm-umts, lte'<br>
> > >            |        current: 'lte'<br>
> > >            |   equipment id: '359225052167129'<br>
> > >   -------------------------<br>
> > >   System   |         device: '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1'<br>
> > >            |        drivers: 'qmi_wwan, option1'<br>
> > >            |         plugin: 'Generic'<br>
> > >            |   primary port: 'cdc-wdm2'<br>
> > >            |          ports: 'ttyUSB0 (qcdm), ttyUSB2 (at), wwan0 (net),<br>
> > > wwan1 (net), cdc-wdm2 (qmi), cdc-wdm1 (qmi)'<br>
> > >   -------------------------<br>
> > >   Numbers  |           own : '2019196694'<br>
> > >   -------------------------<br>
> > >   Status   |           lock: 'sim-pin2'<br>
> > >            | unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10),<br>
> > > sim-puk2 (10)'<br>
> > >            |          state: 'disabled'<br>
> > >            |    power state: 'on'<br>
> > >            |    access tech: 'unknown'<br>
> > >            | signal quality: '0' (cached)<br>
> > >   -------------------------<br>
> > >   Modes    |      supported: 'allowed: 4g; preferred: none'<br>
> > >            |        current: 'allowed: 4g; preferred: none'<br>
> > >   -------------------------<br>
> > >   Bands    |      supported: 'cdma-bc0-cellular-800, cdma-bc1-pcs-1900,<br>
> > > cdma-bc10-secondary-800, cdma-bc15-aws, dcs, egsm, pcs, g850, u2100, u1900,<br>
> > > u17iv, u850, u900, eutran-ii, eutran-iv, eutran-v, eutran-xiii, eutran-xvii,<br>
> > > eutran-xxv'<br>
> > >            |        current: 'cdma-bc0-cellular-800, cdma-bc1-pcs-1900,<br>
> > > cdma-bc15-aws, dcs, egsm, pcs, g850, u2100, u1900, u850, u900, eutran-iv,<br>
> > > eutran-xiii'<br>
> > >   -------------------------<br>
> > >   IP       |      supported: 'ipv4, ipv6, ipv4v6'<br>
> > >   -------------------------<br>
> > >   3GPP     |           imei: '359225052167129'<br>
> > >            |  enabled locks: 'none'<br>
> > >            |    operator id: 'unknown'<br>
> > >            |  operator name: 'unknown'<br>
> > >            |   registration: 'unknown'<br>
> > >   -------------------------<br>
> > >   SIM      |           path: '/org/freedesktop/ModemManager1/SIM/0'<br>
> > ><br>
> > ><br>
> > > root@router:/home# qmicli -d /dev/cdc-wdm2 --wds-get-profile-list=3gpp<br>
> > > [24 Sep 2015, 11:09:46] -Warning ** Error reading from istream: Resource<br>
> > > temporarily unavailable<br>
> > > ^Ccancelling the operation...<br>
> > ><br>
> > > error: couldn't create client for the 'wds' service: CID allocation failed<br>
> > > in the CTL client: Transaction aborted<br>
> ><br>
> > You shouldn't try to run any QMI command directly in the same<br>
> > /dev/cdc-wdm port which is using ModemManager (see "primary port"<br>
> > reported above). If you do want to do that, you'll need to add the<br>
> > extra "--device-open-proxy" option to your qmicli command (or shorter,<br>
> > "-p"). See <a href="https://sigquit.wordpress.com/2013/09/13/sharing-a-qmi-port-between-processes/" rel="noreferrer" target="_blank">https://sigquit.wordpress.com/2013/09/13/sharing-a-qmi-port-between-processes/</a><br>
> ><br>
> > > root@router:/home/m2m# qmicli -d /dev/cdc-wdm1 --wds-get-profile-list=3gpp<br>
> > > Profile list retrieved:<br>
> > >     [1] 3gpp - profile1<br>
> > >         APN: 'INTERNET'<br>
> > >         PDP type: 'ipv4-or-ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [2] 3gpp - profile2<br>
> > >         APN: 'admin'<br>
> > >         PDP type: 'ipv4-or-ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [3] 3gpp - profile3<br>
> > >         APN: 'INTERNET'<br>
> > >         PDP type: 'ipv4-or-ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [4] 3gpp - profile4<br>
> > >         APN: 'app'<br>
> > >         PDP type: 'ipv4-or-ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [5] 3gpp - profile5<br>
> > >         APN: '800'<br>
> > >         PDP type: 'ipv4-or-ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [9] 3gpp - profile9<br>
> > >         APN: 'ims'<br>
> > >         PDP type: 'ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [10] 3gpp - profile10<br>
> > >         APN: 'admin'<br>
> > >         PDP type: 'ipv4'<br>
> > >         Auth: 'none'<br>
> > >     [11] 3gpp - profile11<br>
> > >         APN: 'INTERNET'<br>
> > >         PDP type: 'ipv4'<br>
> > >         Auth: 'none'<br>
> > >     [12] 3gpp - profile12<br>
> > >         APN: 'app'<br>
> > >         PDP type: 'ipv4-or-ipv6'<br>
> > >         Auth: 'none'<br>
> > >     [13] 3gpp - profile13<br>
> > >         PDP type: 'ipv4'<br>
> > >         Auth: 'none'<br>
> ><br>
> > In this case it worked without the "--device-open-proxy" option<br>
> > because /dev/cdc-wdm1 wasn't being used by ModemManager.<br>
> ><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> ModemManager-devel mailing list<br>
> <a href="mailto:ModemManager-devel@lists.freedesktop.org">ModemManager-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel</a><br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">---------------------------------------------<br>Regards<br><br><br></div></div>
</div>