DHCP timed out after mbim-network successfull connection

Dan Williams dcbw at redhat.com
Mon May 4 08:17:35 PDT 2015


On Mon, 2015-05-04 at 16:33 +0200, Joe wrote:
> Hi all,
> First of all... I'm not a developer nor a programmer, just a simple user
> which is looking for a way to make an internet dongle working using its
> MBIM interface.
> 
> Hope this is the right place to ask.
> 
> So here the question:
> I've an Olivetti Olicard 300 usb dongle which seems to be properly
> recognized on my Slackware 14.0, after a
> 
> - linux kernel upgrade to 3.19.4
> 
> - libmbim upgrade to 1.12.2
> 
> Now usb-device command return following output:
> 
> ------------------------------------------------------------------
> T:  Bus=02 Lev=02 Prnt=04 Port=00 Cnt=01 Dev#= 10 Spd=480 MxCh= 0
> D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
> P:  Vendor=2020 ProdID=4000 Rev=03.00
> S:  Manufacturer=Network Connect
> S:  Product=MT6225 
> C:  #Ifs= 7 Cfg#= 1 Atr=a0 MxPwr=500mA
> I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim
> I:  If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim
> I:  If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
> I:  If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> I:  If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> I:  If#= 5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=option
> I:  If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
> Driver=usb-storage
> -------------------
> 
> Morever /dev/cdc-wdm* device is created and it is linked to a wwan*
> network interface.
> 
> So, tha idea to estabilish internet connection over wwan* is to launch
> mbim-network script and then bring up wwan interface assigning to it 
> IP obtained by my ISP (IPv4).
> 
> I've configured my APN in /etc/mbim-network.config and have launched:
> 
> -----------------------------------
> # mbim-network /dev/cdc-wdm1 start
> Loading profile...
>     APN: ibox.tim.it
>     Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm1
>     --query-subscriber-ready-status --no-close'...
>     [/dev/cdc-wdm1] Subscriber ready status retrieved: Ready state:
>     'initialized' Subscriber ID: 'xxxxxxxxxxxxxx' SIM ICCID:
>     'xxxxxxxxxxxxxxxxxxx' Ready info: 'unknown' Telephone numbers: (1)
>     'xxxxxxxxx' [/dev/cdc-wdm1] Session not closed: TRID: '3'
>     Saving state... (TRID: 3)
>     Querying registration state 'mbimcli -d /dev/cdc-wdm1
>     --query-registration-state --no-open=3 --no-close'...
>     [/dev/cdc-wdm1] Registration status: Network error: 'unknown'
>     Register state: 'home' Register mode: 'automatic' Available data
>     classes: 'gprs, edge, umts, hsdpa, hsupa' Current cellular class:
>     'gsm' Provider ID: '22201' Provider name: '22201' Roaming text:
>     'unknown' Registration flags: 'packet-service-automatic-attach'
>     [/dev/cdc-wdm1] Session not closed: TRID: '4'
>     Saving state... (TRID: 4)
>     Attaching to packet service with 'mbimcli -d /dev/cdc-wdm1
>     --attach-packet-service --no-open=4 --no-close'...
>     Saving state... (TRID: 5)
>     Starting network with 'mbimcli -d /dev/cdc-wdm1
>     --connect=ibox.tim.it --no-open=5 --no-close'...
>     Network started successfully
>     Saving state... (TRID: 6)
> ------------------------------
> 
> At this point the green led of my dongle begins to blink like when it is
> properly connected to internet.
> Ok, now It should be possible to bring up "wwan1" sleeping interfce by
> call the interfaces init script.
> Following slackware way... I've added the following lines to
> 
> /etc/rc.d/rc.inet1.conf
> 
> -------------------------------
> # Config information for wwan0:
> IFNAME[5]="wwan0"
> IPADDR[5]=""
> NETMASK[5]=""
> USE_DHCP[5]="yes"
> DHCP_HOSTNAME[5]=""
> DHCP_KEEPRESOLV[5]="yes"
> DHCP_KEEPNTP[5]="yes"
> 
> # Config information for wwan1:
> IFNAME[6]="wwan1"
> IPADDR[6]=""
> NETMASK[6]=""
> USE_DHCP[6]="yes"
> DHCP_HOSTNAME[6]=""
> DHCP_KEEPRESOLV[6]="yes"
> DHCP_KEEPNTP[6]="yes"
> ---------------------
> 
> Ok so now I've to just launch:
> 
> /etc/rc.d/rc.inet1 wwan1_start
> 
> And my wwan1 interface should wake up and obtain its ip by my ISP
> through DHCP. Let's see what's happens instead...

MBIM modems don't always support DHCP in the firmware; perhaps the
Olicard one doesn't?  There are some references out there indicating
that DHCP may not work on this device.  Instead, you'd have to use the
mbimcli to read the IP address from the firmware and assign it and the
routing manually.

Dan



More information about the libmbim-devel mailing list