ubuntu - NMCLI device unavailable -
i trying configure new unit cellular interface on ubuntu core 16.04. have nmcli package running on it. before added connection checked interfaces
# nmcli dev device type state connection eth1 ethernet connected wired connection 1 wlan0 wifi disconnected -- eth0 ethernet unavailable -- cdc-wdm0 gsm unavailable -- lo loopback unmanaged -- i added connection:
nmcli con add type gsm ifname cdc-wdm0 con-name myconnection apn myapn.com finally have tried bringing connection running:
nmclil con myconnection error: connection activation failed: no suitable device found connection also have pasted output of config applied:
# nmcli -p con show myconnection connection profile details (myconnection) connection.id: myconnection connection.uuid: 25dc3eec-ca8a-4861-bfcc-089d558972d4 connection.interface-name: cdc-wdm0 connection.type: gsm connection.autoconnect: yes connection.autoconnect-priority: 0 connection.timestamp: 0 connection.read-only: no connection.permissions: connection.zone: -- connection.master: -- connection.slave-type: -- connection.autoconnect-slaves: -1 (default) connection.secondaries: connection.gateway-ping-timeout: 0 connection.metered: unknown connection.lldp: -1 (default) ipv4.method: auto ipv4.dns: ipv4.dns-search: ipv4.dns-options: (default) ipv4.addresses: ipv4.gateway: -- ipv4.routes: ipv4.route-metric: -1 ipv4.ignore-auto-routes: no ipv4.ignore-auto-dns: no ipv4.dhcp-client-id: -- ipv4.dhcp-timeout: 0 ipv4.dhcp-send-hostname: yes ipv4.dhcp-hostname: -- ipv4.dhcp-fqdn: -- ipv4.never-default: no ipv4.may-fail: yes ipv4.dad-timeout: -1 (default) ipv6.method: auto ipv6.dns: ipv6.dns-search: ipv6.dns-options: (default) ipv6.addresses: ipv6.gateway: -- ipv6.routes: ipv6.route-metric: -1 ipv6.ignore-auto-routes: no ipv6.ignore-auto-dns: no ipv6.never-default: no ipv6.may-fail: yes ipv6.ip6-privacy: -1 (unknown) ipv6.addr-gen-mode: stable-privacy ipv6.dhcp-send-hostname: yes ipv6.dhcp-hostname: -- gsm.number: *99# gsm.username: <hidden> gsm.password: <hidden> gsm.password-flags: 0 (none) gsm.apn: myapn.com gsm.network-id: -- gsm.pin: <hidden> gsm.pin-flags: 0 (none) gsm.home-only: no gsm.device-id: -- gsm.sim-id: -- gsm.sim-operator-id: -- my question how enable unavailable device , why unavailable? can check me resolve issue.
any great starting on snappy.
ok, managed resolve own problem, steps took follows:
1) check modem on gateway read ubuntu core:
$ sudo mmcli -l found 1 modems: /org/freedesktop/modemmanager1/modem/0 [generic] mbim [1519:0020] 2) check sim read correctly:
$ sudo mmcli -m 0 /org/freedesktop/modemmanager1/modem/0 (device id 'd8b328efa783ca35a022d6b44b878981e67a5903') ------------------------- hardware | manufacturer: 'generic' | model: 'mbim [1519:0020]' | revision: 'mod_6260_v05.1412.00_r07_vctcx' | supported: 'gsm-umts' | current: 'gsm-umts' | equipment id: '014752000020933' ------------------------- system | device: '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-3' | drivers: 'cdc_acm, cdc_mbim' | plugin: 'generic' | primary port: 'cdc-wdm0' | ports: 'cdc-wdm0 (mbim), wwan0 (net), ttyacm0 (at)' ------------------------- numbers | own : 'unknown' ------------------------- status | lock: 'none' | unlock retries: 'sim-pin (3)' | state: 'connected' | power state: 'on' | access tech: 'gprs' | signal quality: '67' (cached) ------------------------- modes | supported: 'allowed: 2g, 3g; preferred: none' | current: 'allowed: 2g, 3g; preferred: none' ------------------------- bands | supported: 'unknown' | current: 'unknown' ------------------------- ip | supported: 'ipv4, ipv6, ipv4v6' ------------------------- 3gpp | imei: '<censored>' | enabled locks: 'fixed-dialing' | operator id: '27203' | operator name: 'irl - meteor' | subscription: 'unknown' | registration: 'home' ------------------------- sim | path: '/org/freedesktop/modemmanager1/sim/0' ------------------------- bearers | paths: '/org/freedesktop/modemmanager1/bearer/0' this realised sim has not been found in gateway , have damaged sim, have changed sim card , came output above.
3) configure new apn or edit existing one. (i found easier add connection anew)
make sure in root (sudo su -)
a)delete existing connection failing
#nmcli con delete myconnection b)create new connection
#nmcli con add type gsm ifname cdc-wdm0 con-name myworkingconnection apn mynewapn.com 4) add username , password new connection
#nmcli con edit myworkingconnection at point in nmcli> prompt. type in help list of commands edit connection. me needed add username , password achieved typing in:
nmcli> set gsm.username data nmcli> set gsm.password <passwordgoeshere> nmcli> save nmcli> quit at point connection has established. have found command
#nmcli m open in session being useful check state of interface changing.
hope helps people!
Comments
Post a Comment