/dev/cdc-wdm1: Linux device node for a Qualcomm-based 4G/5G modem. Used to send commands to modem (See QMI).wwan0: Network interface on Linux for a cellular modem that uses 4G/5G.
$ # Connect the dongle with the pin code already disabled
$ mmcli -L # List the connected modems. modem-code: number at the end
$ mmcli -m <modem-code> # Show state of modem
$ mmcli -m <modem-code> --create-bearer='apn=orange,user=orange,password=orange' # Create bearer (connection session). bearer-code: number at the end
$ mmcli -m <modem-code> -b <bearer-code> --connect # Connect to given bearer
$ mmcli -m <modem-code> # Look for "state: connected (in green)"
$ sudo udhcpc -i wwan0 -f -qn # Request an ip address
$ ip address # Check that the interface wwan0 has been assigned an IPv6 address
$ sudo systemctl status ModemManager.service # Shows the last logs from mmcli
$ sudo systemctl status NetworkManager # Shows the last logs from the network manager (incl. network interfaces like wwan0)
- The idea to request the IP address found in this article.
Go to System Settings > Network > Connections, and create a new mobile broadband connection.