...
Create a new connection
Sierra Wireless MC8090
Code Block language bash root@Nexcom-Master:~# nmcli con add type gsm ifname ttyUSB3 con-name TELEKOM_GSMDEMO apn internet.t-mobile user t-mobile password tm Connection 'TELEKOM_GSMDEMO' (e2321f56-3d77-46c0-8e52-a7dcda87b0d8) successfully added.
Quectel UC20GB
Code Block language bash root@Nexcom-Master:~# nmcli con add type gsm ifname cdc-wdm0 con-name TELEKOM_QUACTEL apn internet.t-mobile user t-mobile password tm Connection 'TELEKOM_QUACTEL' (2f98d139-2442-4f51-b554-b13da3216a3c) successfully added.
Quectel UC20GB
Activate the connection
Code Block language bash admin@localhost:~$ nmcli con up TELEKOM_GSMDEMO Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)
OpenVPN
For openvpn setup follow the procedure explained here:
OpenVPN Client on Ubuntu 16.04
Troubleshooting
- To check the assigned IP used "ifconfig"
To list the created connections use "network-manager.nmcli con"
Code Block language bash root@Nexcom-Master:~$ nmcli con NAME UUID TYPE DEVICE TELEKOM_GSMDEMO d472ed41-113a-4a37-972c-6517e335f3cf gsm ttyACM3
To check the configuration of each connection use the command "nmcli con show connection-name"
...