nmcli and 3g modem on ubuntu 12.04.1 server

Nataraj incoming-ubuntu at rjl.com
Sun Nov 4 18:08:25 UTC 2012


On 11/04/2012 10:03 AM, Nataraj wrote:
> On 11/04/2012 02:29 AM, Tom H wrote:
>> On Sat, Nov 3, 2012 at 10:32 PM, Nataraj <incoming-ubuntu at rjl.com> wrote:
>>> I have an old sierra wireless 3g modem which works fine on my laptop
>>> running ubuntu 12.04.1 LTS.  I originally set it up using the network
>>> manager applet, but am able to stop and start the modem using:
>>>
>>> nmcli con up id 'AT&T LaptopConnect (data cards)'
>>> nmcli con down id 'AT&T LaptopConnect (data cards)'
>>>
>>> When I first plug it in, it shows up as follows:
>>>
>>> # nmcli dev status
>>> DEVICE     TYPE              STATE
>>> ttyUSB4    gsm               disconnected
>>> eth0       802-3-ethernet    connected
>>> eth1       802-11-wireless   disconnected
>>>
>>> # nmcli con list
>>> NAME                      UUID                                   TYPE              TIMESTAMP-REAL
>>> Wired connection 1        4c06abb6-33a1-479b-9864-0b7c58425c65   802-3-ethernet    Sat 03 Nov 2012 07:19:57 PM PDT
>>> AT&T LaptopConnect (data cards) b153762b-1eb9-4197-90f7-0701c495175a   gsm               Sat 03 Nov 2012 06:05:59 PM PDT
>>> CUSTOMER                  74b7522f-a6e9-4216-b8b1-3af87adf0617   802-11-wireless   never
>>>
>>> I'm trying to configure this modem to run on a small server which has no
>>> GUI installed. When I plug it in the "nmcli dev status' shows the
>>> device, however it does not show up in the "nmcli con list" and cannot
>>> be started. I'm guessing that it is not configured into the network
>>> manager. How do I do this with out the GUI? Is there a config file
>>> somewhere? I have installed hal and added the device entries on the new
>>> server the same as on my laptop.
>> I'm not sure that installing hal is that helpful or useful...
>>
>> You need to set up the connection. I've never used gsm on Linux so
>> this is untested.
>>
>> On the laptop with nm-applet, you should be able to get the settings
>> of the gsm connection with gconftool-2 or gconf-editor.
>>
>> On the server, make sure that "keyfile" is listed as a plugin in
>> "/etc/NetworkManager/NetworkManager.conf".
>>
>> Create a keyfile in "/etc/NetworkManager/system-connections/" using
>> the laptop's gconf settings.
>>
>> Change the owner and mode of the keyfile to "root:root" and "0600".
>>
>> Use nmcli to bring up the connection.
>>
> Thank you.  I was able to do this and then start the connection on the
> new server via the command line.  Unfortunately, I have found that if I
> boot the server with the ethernet cable unplugged, NetworkManager
> crashes.  Also if I unplug the cable after boot and then use nmcli to
> start the 3g connection NetworkManager will crash without starting the
> connection.
>
> Hardly the dynamic reconfigurability that one would like to see from
> running NetworkManager.  I found this bug report and will add comments
> and then file a new report if mine looks like a different bug:
> https://answers.launchpad.net/ubuntu/+question/209013
>
> Nataraj.
>
I meant this bug instead of the link I posted above...
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1053022

Nataraj





More information about the ubuntu-users mailing list