How to get IP address
Tony
tony.makkiel at daqri.com
Tue Nov 24 09:38:10 PST 2015
Hi,
I have managed to connect to EE network. But how do I get an IP
address. I am using mmcli to make the connection. Most of the time it
fails to make the connection.
--------------------------------------------------------------
mmcli -m 0 --simple-connect="apn=everywhere" --timeout=600
error: couldn't connect the modem:
'GDBus.Error:org.freedesktop.ModemManager1.Error.MobileEquipment.GprsUnknown:
Unknown error (256)'
------------------------------------------------------------------------------
Or
------------------------------------------------------------------------------------
mmcli -m 0 --simple-connect="apn=everywhere" --timeout=600
error: couldn't connect the modem:
'GDBus.Error:org.freedesktop.libmbim.Error.Status.Failure: Failure'
----------------------------------------------------------------------------------
But when it connects
-----------------------------------------------------------------
mmcli -m 0 --simple-connect="apn=everywhere" --timeout=600
successfully connected the modem
mmcli -m 0
/org/freedesktop/ModemManager1/Modem/0 (device id
'ca3bb301f9abd2a39125f61329c9616d15d21e0f')
-------------------------
Hardware | manufacturer: 'Generic'
| model: 'MBIM [8087:0911]'
| revision: 'M27260_V2.3_WW_01.1530.102'
| supported: 'gsm-umts, lte'
| current: 'gsm-umts, lte'
| equipment id: '3564040x0000xxx'
-------------------------
System | device:
'/sys/devices/pci0000:00/0000:00:14.0/usb1/1-5'
| drivers: 'cdc_mbim, cdc_acm'
| plugin: 'Generic'
| primary port: 'cdc-wdm0'
| ports: 'cdc-wdm0 (mbim), wwan0 (net), ttyACM0
(at), ttyACM2 (at)'
-------------------------
Numbers | own : '0044795748xxxx'
-------------------------
Status | lock: 'none'
| unlock retries: 'sim-pin2 (3)'
| state: 'connected'
| power state: 'on'
| access tech: 'hsdpa, hsupa'
| signal quality: '19' (recent)
-------------------------
Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none'
| current: 'allowed: 2g, 3g, 4g; preferred: none'
-------------------------
Bands | supported: 'unknown'
| current: 'unknown'
-------------------------
IP | supported: 'ipv4, ipv6, ipv4v6'
-------------------------
3GPP | imei: '3564040x0000xxx'
| enabled locks: 'fixed-dialing'
| operator id: '23433'
| operator name: 'EE'
| subscription: 'unknown'
| registration: 'home'
-------------------------
SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
-------------------------
Bearers | paths: '/org/freedesktop/ModemManager1/Bearer/0'
-------
mmcli -m 0 --simple-status
/org/freedesktop/ModemManager1/Modem/0
-------------------------
Status | state: 'connected'
| signal quality: '22' (recent)
| bands: 'unknown'
| access tech: 'hsdpa, hsupa'
-------------------------
3GPP | registration: 'home'
| operator code: '23433'
| operator name: 'EE'
| subscription: 'unknown'
------------------------------------------------------------------------------------
I do not have an ip address. I tried to manually bring the interface up
and get an ip address, without much luck.
sudo ifconfig wwan0 up
sudo dhclient -d wwan0
It keeps on sending DHCPDISCOVER on wwan0. Can somebody please advise
what I am doing wrong?
Many Thanks,
Tony
More information about the ModemManager-devel
mailing list