mirror of
https://github.com/clockworkpi/DevTerm.git
synced 2025-12-19 21:58:49 +01:00
Created nmcli with gsm (markdown)
parent
81e2c049d3
commit
47c0c6c5aa
123
nmcli-with-gsm.md
Normal file
123
nmcli-with-gsm.md
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
My 4G modem
|
||||||
|
|
||||||
|
```
|
||||||
|
/org/freedesktop/ModemManager1/Modem/1 [QUALCOMM INCORPORATED] SIMCOM_SIM7600G-H
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
How to use nmcli to create a NetworkManager 4G connection (China Unicom for example)
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo nmcli c add type gsm ifname cdc-wdm0 con-name 4GNet apn 3gnet gsm.username uninet
|
||||||
|
```
|
||||||
|
|
||||||
|
then we can see a `4GNet` in NetworkManager (like KDE's network manager UI)
|
||||||
|
|
||||||
|
|
||||||
|
here is reference arguments I've used for nmcli
|
||||||
|
|
||||||
|
```
|
||||||
|
connection.id: Movistar
|
||||||
|
connection.uuid: acab2207-347a-424c-b366-b2c4ef4e4c75
|
||||||
|
connection.stable-id: --
|
||||||
|
connection.type: gsm
|
||||||
|
connection.interface-name: ttyAMA0
|
||||||
|
connection.autoconnect: no
|
||||||
|
connection.autoconnect-priority: 0
|
||||||
|
connection.autoconnect-retries: -1 (default)
|
||||||
|
connection.multi-connect: 0 (default)
|
||||||
|
connection.auth-retries: -1
|
||||||
|
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: default
|
||||||
|
connection.mdns: -1 (default)
|
||||||
|
connection.llmnr: -1 (default)
|
||||||
|
ipv4.method: auto
|
||||||
|
ipv4.dns: --
|
||||||
|
ipv4.dns-search: --
|
||||||
|
ipv4.dns-options: ""
|
||||||
|
ipv4.dns-priority: 0
|
||||||
|
ipv4.addresses: --
|
||||||
|
ipv4.gateway: --
|
||||||
|
ipv4.routes: --
|
||||||
|
ipv4.route-metric: -1
|
||||||
|
ipv4.route-table: 0 (unspec)
|
||||||
|
ipv4.ignore-auto-routes: no
|
||||||
|
ipv4.ignore-auto-dns: no
|
||||||
|
ipv4.dhcp-client-id: --
|
||||||
|
ipv4.dhcp-timeout: 0 (default)
|
||||||
|
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: ""
|
||||||
|
ipv6.dns-priority: 0
|
||||||
|
ipv6.addresses: --
|
||||||
|
ipv6.gateway: --
|
||||||
|
ipv6.routes: --
|
||||||
|
ipv6.route-metric: -1
|
||||||
|
ipv6.route-table: 0 (unspec)
|
||||||
|
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-duid: --
|
||||||
|
ipv6.dhcp-send-hostname: yes
|
||||||
|
ipv6.dhcp-hostname: --
|
||||||
|
ipv6.token: --
|
||||||
|
serial.baud: 115200
|
||||||
|
serial.bits: 8
|
||||||
|
serial.parity: none
|
||||||
|
serial.stopbits: 1
|
||||||
|
serial.send-delay: 0
|
||||||
|
ppp.noauth: yes
|
||||||
|
ppp.refuse-eap: no
|
||||||
|
ppp.refuse-pap: no
|
||||||
|
ppp.refuse-chap: no
|
||||||
|
ppp.refuse-mschap: no
|
||||||
|
ppp.refuse-mschapv2: no
|
||||||
|
ppp.nobsdcomp: no
|
||||||
|
ppp.nodeflate: no
|
||||||
|
ppp.no-vj-comp: no
|
||||||
|
ppp.require-mppe: no
|
||||||
|
ppp.require-mppe-128: no
|
||||||
|
ppp.mppe-stateful: no
|
||||||
|
ppp.crtscts: no
|
||||||
|
ppp.baud: 115200
|
||||||
|
ppp.mru: 0
|
||||||
|
ppp.mtu: auto
|
||||||
|
ppp.lcp-echo-failure: 0
|
||||||
|
ppp.lcp-echo-interval: 0
|
||||||
|
gsm.number: *99#
|
||||||
|
gsm.username: --
|
||||||
|
gsm.password: <hidden>
|
||||||
|
gsm.password-flags: 0 (none)
|
||||||
|
gsm.apn: internet.movistar.com.co
|
||||||
|
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: --
|
||||||
|
gsm.mtu: auto
|
||||||
|
proxy.method: none
|
||||||
|
proxy.browser-only: no
|
||||||
|
proxy.pac-url: --
|
||||||
|
proxy.pac-script: --
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user