This article shows how to configure the network on the Nexcom NISE50 running Ubuntu 16.04.
To set up an static IP follow this steps
Edit the /etc/network/interfaces file
azeti@Nexcom-Master:~$ sudo vi /etc/network/interfaces |
Set the IP, gateway and DNS for each interface (enp2s0 for Ethernet 1 and enp3s0 for Ethernet 2)
allow-hotplug enp3s0 iface enp3s0 inet static address 10.0.0.1 netmask 255.255.255.0 gateway 10.0.0.100 dns-nameservers 8.8.8.8 8.8.4.4 |
Start the connection
root@Nexcom-Master:~#sudo ifdown enp3s0 ;sudo ifup enp3s0 |
To create a mobile connection, execute this commands with the proper information
The exact command to create a new connection depends on the 3G card model used and the sim card provider. Different cards will use different interfaces (ifname) and different sim providers will use different apn, user an password. To check the port to be used execute the command 'sudo mmcli -m 0' and check the System / Primary Port
|
Create a new connection
Sierra Wireless MC8090
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
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. |
Activate the connection
admin@localhost:~$ nmcli con up TELEKOM_GSMDEMO Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6) |
admin@localhost:~$ nmcli connection edit type gsm con-name TM_QUACTEL ===| nmcli interactive connection editor |=== Adding a new 'gsm' connection Type 'help' or '?' for available commands. Type 'describe [<setting>.<prop>]' for detailed property description. You may edit the following settings: connection, gsm, serial, ppp, ipv4, ipv6 nmcli> print =============================================================================== Connection profile details (TM_QUACTEL) =============================================================================== connection.id: TM_QUACTEL connection.uuid: ca88b4bb-93b7-42b0-8d9a-2e5d6ecae740 connection.interface-name: -- 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.dns-priority: 0 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.dns-priority: 0 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: -- gsm.password: <hidden> gsm.password-flags: 0 (none) gsm.apn: -- 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: -- ------------------------------------------------------------------------------- nmcli> set gsm.apn apn.vodafone.com nmcli> save nmcli> quit |
For openvpn setup follow the procedure explained here:
OpenVPN Client on Ubuntu 16.04
To list the created connections use "network-manager.nmcli con"
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"
Related articles
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|