From e821e4a5e8f8531cec4bbd332514ccceb733872d Mon Sep 17 00:00:00 2001 From: GNU Date: Mon, 5 Dec 2022 21:23:08 +0800 Subject: [PATCH] Updated nmcli with gsm (markdown) --- nmcli-with-gsm.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nmcli-with-gsm.md b/nmcli-with-gsm.md index e1ccdfe..1025f45 100644 --- a/nmcli-with-gsm.md +++ b/nmcli-with-gsm.md @@ -1,16 +1,18 @@ My 4G modem +## List modem ``` mmcli -L -/org/freedesktop/ModemManager1/Modem/0 [QUALCOMM INCORPORATED] SIMCOM_SIM7600G-H ``` +/org/freedesktop/ModemManager1/Modem/0 [QUALCOMM INCORPORATED] SIMCOM_SIM7600G-H + ## Enable modem ``` sudo mmcli -m 0 - e ``` -How to use nmcli to create a NetworkManager 4G connection +## How to use nmcli to create a NetworkManager 4G connection ``` sudo nmcli c add type gsm ifname cdc-wdm0 con-name 4GNet apn yourapn gsm.username gsmusername @@ -25,7 +27,7 @@ I got the cdc-wdm0 from mmcli -m 0 | grep "primary port" ``` -Now we can use **nmtui** to connect 4GNet +Now we can use **nmtui** to connect 4GNet or ``` sudo nmcli connection up 4GNet