Я создал в NetworkManager такое подключение:
connection.type: gsm
connection.autoconnect: yes
connection.autoconnect-priority: 100
connection.autoconnect-retries: 0 (forever)
Если запустить его руками
nmcli c up Megafon\ GPRS
Запуск руками:
Nov 25 04:58:07 ct-10 NetworkManager[887]: <info> [1574657887.7442] device (ttyUSB0): Activation: starting connection 'Megafon GPRS' (7291b54f-a21a-4cf2-bcc5-b5fc7b5c6206)
Nov 25 04:58:07 ct-10 NetworkManager[887]: <info> [1574657887.7514] audit: op="connection-activate" uuid="7291b54f-a21a-4cf2-bcc5-b5fc7b5c6206" name="Megafon GPRS" pid=1497 uid=1000 result="success"
Nov 25 04:58:07 ct-10 NetworkManager[887]: <info> [1574657887.7538] device (ttyUSB0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect started...
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (4/8): Wait to get fully enabled
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (5/8): Register
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (6/8): Bearer
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (7/8): Connect
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> connecting)
Nov 25 04:58:07 ct-10 ModemManager[868]: <warn> Couldn't find associated cdc-wdm port for 'net/wwx001e101f0000'
Nov 25 04:58:07 ct-10 NetworkManager[887]: <info> [1574657887.7926] modem["ttyUSB0"]: modem state changed, 'registered' --> 'connecting' (reason: user-requested)
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> registered)
Nov 25 04:58:07 ct-10 NetworkManager[887]: <info> [1574657887.7958] modem["ttyUSB0"]: modem state changed, 'connecting' --> 'registered' (reason: user-requested)
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect started...
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (4/8): Wait to get fully enabled
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (5/8): Register
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (6/8): Bearer
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Simple connect state (7/8): Connect
Nov 25 04:58:07 ct-10 ModemManager[868]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (registered -> connecting)
Nov 25 04:58:07 ct-10 ModemManager[868]: <warn> Couldn't find associated cdc-wdm port for 'net/wwx001e101f0000'
Nov 25 04:58:07 ct-10 NetworkManager[887]: <info> [1574657887.8260] modem["ttyUSB0"]: modem state changed, 'registered' --> 'connecting' (reason: user-requested)
Nov 25 04:58:08 ct-10 ModemManager[868]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> connected)
Nov 25 04:58:08 ct-10 ModemManager[868]: <info> Simple connect state (8/8): All done
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9409] modem["ttyUSB0"]: modem state changed, 'connecting' --> 'connected' (reason: user-requested)
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9616] device (ttyUSB0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9699] device (ttyUSB0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9764] modem["ttyUSB0"]: IPv6 configuration disabled
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9768] modem-broadband[ttyUSB0]: IPv4 static configuration:
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9772] modem-broadband[ttyUSB0]: address XX.XX.XX.XX/29
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9774] modem-broadband[ttyUSB0]: gateway XX.XX.XX.XX
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9776] modem-broadband[ttyUSB0]: DNS XX.XX.XX.XX
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9777] modem-broadband[ttyUSB0]: DNS XX.XX.XX.XX
Nov 25 04:58:08 ct-10 NetworkManager[887]: <info> [1574657888.9946] device (ttyUSB0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Nov 25 04:58:09 ct-10 NetworkManager[887]: <info> [1574657889.0075] device (ttyUSB0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Nov 25 04:58:09 ct-10 NetworkManager[887]: <info> [1574657889.0133] device (ttyUSB0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Nov 25 04:58:09 ct-10 NetworkManager[887]: <info> [1574657889.0971] device (ttyUSB0): Activation: successful, device activated.
При старте системы:
Nov 25 04:39:22 ct-10 ModemManager[516]: <info> Couldn't check support for device '/sys/devices/platform/soc@1c00000/1c12000.mmc/mmc_host/mmc1/mmc1:0001/mmc1:0001:1': not supported by any plugin
Nov 25 04:39:22 ct-10 ModemManager[516]: <info> Couldn't check support for device '/sys/devices/platform/soc@1c00000/1c50000.ethernet': not supported by any plugin
Nov 25 04:39:25 ct-10 NetworkManager[537]: <info> [1574656765.2144] manager: startup complete
Nov 25 04:39:30 ct-10 ModemManager[516]: <info> [device /sys/devices/platform/soc@1c00000/1c1c000.usb/usb2/2-1] creating modem with plugin 'Huawei' and '4' ports
Nov 25 04:39:30 ct-10 ModemManager[516]: <warn> Could not grab port (usbmisc/cdc-wdm0): 'Cannot add port 'usbmisc/cdc-wdm0', unsupported'
Nov 25 04:39:30 ct-10 ModemManager[516]: <info> Modem for device '/sys/devices/platform/soc@1c00000/1c1c000.usb/usb2/2-1' successfully created
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Modem: state changed (unknown -> disabled)
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0427] modem["ttyUSB0"]: modem state changed, 'disabled' --> 'enabling' (reason: user preference)
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0490] manager: (ttyUSB0): new Broadband device (/org/freedesktop/NetworkManager/Devices/5)
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0548] device (ttyUSB0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0609] device (ttyUSB0): modem state 'enabling'
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0687] device (ttyUSB0): state change: unavailable -> disconnected (reason 'none', sys-iface-state: 'managed')
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0776] policy: auto-activating connection 'Megafon GPRS' (7291b54f-a21a-4cf2-bcc5-b5fc7b5c6206)
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0910] device (ttyUSB0): Activation: starting connection 'Megafon GPRS' (7291b54f-a21a-4cf2-bcc5-b5fc7b5c6206)
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.0953] device (ttyUSB0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disabled -> enabling)
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Simple connect started...
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Simple connect state (4/8): Wait to get fully enabled
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabling -> enabled)
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Simple connect state (5/8): Register
Nov 25 04:39:35 ct-10 NetworkManager[537]: <info> [1574656775.9313] modem["ttyUSB0"]: modem state changed, 'enabling' --> 'enabled' (reason: user-requested)
Nov 25 04:39:35 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (unknown -> registering)
Nov 25 04:39:36 ct-10 ModemManager[516]: <info> Simple connect state (6/8): Bearer
Nov 25 04:39:36 ct-10 ModemManager[516]: <info> Simple connect state (7/8): Connect
Nov 25 04:39:36 ct-10 NetworkManager[537]: <info> [1574656776.0204] modem["ttyUSB0"]: modem state changed, 'enabled' --> 'connecting' (reason: user-requested)
Nov 25 04:39:36 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (enabled -> connecting)
Nov 25 04:39:36 ct-10 NetworkManager[537]: <info> [1574656776.0232] modem["ttyUSB0"]: modem state changed, 'connecting' --> 'unknown' (reason: user-requested)
Nov 25 04:39:36 ct-10 ModemManager[516]: <warn> Couldn't find associated cdc-wdm port for 'net/wwx001e101f0000'
Nov 25 04:39:36 ct-10 NetworkManager[537]: <info> [1574656776.0234] device (ttyUSB0): state change: prepare -> disconnected (reason 'user-requested', sys-iface-state: 'managed')
Nov 25 04:39:36 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connecting -> unknown)
Nov 25 04:39:36 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: 3GPP Registration state changed (registering -> home)
Nov 25 04:39:36 ct-10 ModemManager[516]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (unknown -> registered)
Nov 25 04:39:36 ct-10 NetworkManager[537]: <info> [1574656776.0690] modem["ttyUSB0"]: modem state changed, 'unknown' --> 'registered' (reason: unknown)