Below is my example, please refer to it.
root@ubuntu:/mnt/hgfs# mmcli -m 0 -e
successfully enabled the modem
root@ubuntu:/mnt/hgfs# mmcli -m 0
General | dbus path: /org/freedesktop/ModemManager1/Modem/0
| device id: 9cb14927bc4ca3e9548c978fa3fef4950ef44aa6
Hardware | manufacturer: QUALCOMM INCORPORATED
| model: QUECTEL Mobile Broadband Module
| revision: EC25EFAR06A08M4G
| h/w revision: 10000
| supported: gsm-umts, lte
| current: gsm-umts, lte
| equipment id: 864430010001091
System | device: /sys/devices/pci0000:00/0000:00:11.0/0000:02:03.0/usb1/1-1
| drivers: qmi_wwan, option1
| plugin: Quectel
| primary port: cdc-wdm0
| ports: cdc-wdm0 (qmi), ttyUSB0 (qcdm), wws35u1i4 (net),
| ttyUSB2 (at), ttyUSB3 (at)
Status | lock: sim-pin2
| unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
| state: registered
| power state: on
| access tech: lte
| signal quality: 42% (recent)
Modes | supported: allowed: 2g; preferred: none
| allowed: 3g; preferred: none
| allowed: 4g; preferred: none
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 4g; preferred: 4g
| allowed: 2g, 4g; preferred: 2g
| allowed: 3g, 4g; preferred: 3g
| allowed: 3g, 4g; preferred: 4g
| allowed: 2g, 3g, 4g; preferred: 4g
| allowed: 2g, 3g, 4g; preferred: 3g
| allowed: 2g, 3g, 4g; preferred: 2g
| current: allowed: 2g, 3g, 4g; preferred: 4g
Bands | supported: egsm, dcs, utran-1, utran-5, utran-8, eutran-1, eutran-3,
| eutran-5, eutran-7, eutran-8, eutran-20, eutran-38, eutran-40,
| eutran-41
| current: egsm, dcs, utran-1, utran-5, utran-8, eutran-1, eutran-3,
| eutran-5, eutran-7, eutran-8, eutran-20, eutran-38, eutran-40,
| eutran-41
IP | supported: ipv4, ipv6, ipv4v6
3GPP | imei: 864430010001091
| operator id: 46000
| operator name: CMCC
| registration: home
3GPP EPS | ue mode of operation: csps-2
SIM | dbus path: /org/freedesktop/ModemManager1/SIM/0
root@ubuntu:/mnt/hgfs# mmcli -b 0
error: couldn’t find bearer at ‘/org/freedesktop/ModemManager1/Bearer/0’: ‘not found in any modem’
root@ubuntu:/mnt/hgfs# cd …
root@ubuntu:/mnt# cd …
root@ubuntu:/# mmcli -m 0 --simple-connect=“apn=cmnet”
successfully connected the modem
root@ubuntu:/# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.190.139 netmask 255.255.255.0 broadcast 192.168.190.255
inet6 fe80::d:db43:10e6:a440 prefixlen 64 scopeid 0x20
ether 00:0c:29:7d:b0:f9 txqueuelen 1000 (Ethernet)
RX packets 1200 bytes 1279260 (1.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 636 bytes 69610 (69.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 288 bytes 24626 (24.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 288 bytes 24626 (24.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ubuntu:/# mmcli -b 0
General | dbus path: /org/freedesktop/ModemManager1/Bearer/0
| type: default
Status | connected: yes
| suspended: no
| interface: wws35u1i4
| ip timeout: 20
Properties | apn: cmnet
| roaming: allowed
IPv4 configuration | method: static
| address: 10.241.136.45
| prefix: 30
| gateway: 10.241.136.46
| dns: 211.138.180.2, 211.138.180.3
| mtu: 1500
Statistics | duration: 329
root@ubuntu:/# ifconfig -a
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.190.139 netmask 255.255.255.0 broadcast 192.168.190.255
inet6 fe80::d:db43:10e6:a440 prefixlen 64 scopeid 0x20
ether 00:0c:29:7d:b0:f9 txqueuelen 1000 (Ethernet)
RX packets 1251 bytes 1285033 (1.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 695 bytes 74898 (74.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 321 bytes 27423 (27.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 321 bytes 27423 (27.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wws35u1i4: flags=4240<POINTOPOINT,NOARP,MULTICAST> mtu 1500
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ubuntu:/# ifconfig wws35u1i4 10.241.136.45
root@ubuntu:/# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.190.139 netmask 255.255.255.0 broadcast 192.168.190.255
inet6 fe80::d:db43:10e6:a440 prefixlen 64 scopeid 0x20
ether 00:0c:29:7d:b0:f9 txqueuelen 1000 (Ethernet)
RX packets 1253 bytes 1285300 (1.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 697 bytes 75072 (75.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 333 bytes 28395 (28.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 333 bytes 28395 (28.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wws35u1i4: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 10.241.136.45 netmask 255.255.255.255 destination 10.241.136.45
inet6 fe80::b1a1:6bc:c482:2668 prefixlen 64 scopeid 0x20
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 1000 (UNSPEC)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1 bytes 48 (48.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@ubuntu:/# ping -I wws35u1i4 www.baidu.com
PING www.a.shifen.com (14.215.177.38) from 10.241.136.45 wws35u1i4: 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=49 time=255 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=49 time=68.8 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=3 ttl=49 time=84.8 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=4 ttl=49 time=64.7 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=5 ttl=49 time=80.7 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=6 ttl=49 time=106 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=7 ttl=49 time=77.2 ms