2017-08-15 63 views
0

我想在ubuntu core 16.04上配置一个带有蜂窝接口的新设备。我运行了NMCLI软件包。在我加入我的连接我检查了接口NMCLI设备不可用

# 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  --  

我说我的连接:

nmcli con add type gsm ifname cdc-wdm0 con-name MyConnection apn myapn.com 

最后我试图把连接通过运行:

nmclil con up MyConnection 
Error: Connection activation failed: No suitable device found for this connection 

而且我已经贴了应用Config的输出:

# 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:     -- 

我的问题是如何启用不可用的设备,为什么它不可用?我可以检查什么来帮助我解决问题。

任何帮助将是伟大的,因为我只是开始在Snappy。

+0

应该补充我使用戴尔网关3002运行Ubuntu核心 – Bart

回答

0

好了,所以我设法解决我自己的问题,是我所采取的步骤如下:

1)检查我的网关调制解调器被Ubuntu核心阅读:

$ sudo mmcli -L 

Found 1 modems: 
    /org/freedesktop/ModemManager1/Modem/0 [Generic] MBIM [1519:0020] 

2 )检查SIM卡正确读取:

$ 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' 

这是我意识到,我的SIM尚未在网关发现,我有一个损坏SIM卡,我已经改变了我的SIM卡,并与输出想出了ABOV即

3)配置新的APN或编辑现有的APN。 (我发现它更容易添加重新连接)

确保您在根(sudo su -

一)删除是失败

#nmcli con delete MyConnection 

b现有连接)创建新的连接

#nmcli con add type gsm ifname cdc-wdm0 con-name MyWorkingConnection apn MyNewApn.com 

4)添加用户名和密码,以新的连接

#nmcli con edit MyWorkingConnection 

此时您将处于nmcli>提示符状态。请输入帮助以获取帮助您编辑连接的命令列表。对我来说,我需要添加用户名和密码,所以我实现了通过键入:

nmcli> set gsm.username data 
nmcli> set gsm.password <passwordgoeshere> 
nmcli> save 
nmcli> quit 

在这一点上我的连接已经建立。我已经找到了命令

#nmcli m 

在另一个会议是检查接口变化的状态有用的开放。

希望这可以帮助一些人!