最初からLTE接続がない場合、nmcli接続はアクティブのままです。

最初からLTE接続がない場合、nmcli接続はアクティブのままです。

起動時に自動的に接続されるnmcliを介してLTE接続を設定したいと思います。

私の現在の構成は次のとおりです。

# mmcli -m 0
  --------------------------------
  General  |            dbus path: /org/freedesktop/ModemManager1/Modem/0
           |            device id: ****
  --------------------------------
  Hardware |         manufacturer: Sierra Wireless, Incorporated
           |                model: ****
           |             revision: ****
           |            supported: gsm-umts, lte
           |              current: gsm-umts, lte
           |         equipment id: ****
  --------------------------------
  System   |               device: /sys/devices/3530000.xhci/usb1/1-3/1-3.2
           |              drivers: GobiSerial driver, GobiNet
           |               plugin: Generic
           |         primary port: ttyUSB2
           |                ports: ttyUSB0 (qcdm), eth2 (net), eth3 (net), ttyUSB2 (at)
  --------------------------------
  Numbers  |                  own: ****
  --------------------------------
  Status   |       unlock retries: sim-pin (3), sim-puk (10)
           |                state: connected
           |          power state: on
           |          access tech: lte
           |       signal quality: 0% (recent)
  --------------------------------
  Modes    |            supported: allowed: 2g, 3g, 4g; preferred: none
           |              current: allowed: 2g, 3g, 4g; preferred: none
  --------------------------------
  IP       |            supported: ipv4, ipv6, ipv4v6
  --------------------------------
  3GPP     |                 imei: ****
           |          operator id: ****
           |        operator name: ****
           |         registration: home
  --------------------------------
  3GPP EPS | ue mode of operation: csps-2
  --------------------------------
  SIM      |            dbus path: /org/freedesktop/ModemManager1/SIM/0
  --------------------------------
  Bearer   |            dbus path: /org/freedesktop/ModemManager1/Bearer/1
           |                       /org/freedesktop/ModemManager1/Bearer/0

そして

# nmcli c show LTE
connection.id:                          LTE
connection.uuid:                        ****
connection.stable-id:                   --
connection.type:                        gsm
connection.interface-name:              --
connection.autoconnect:                 yes
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.auth-retries:                -1
connection.timestamp:                   1606296274
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)
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-send-hostname:                yes
ipv6.dhcp-hostname:                     --
ipv6.token:                             --
gsm.number:                             *99#
gsm.username:                           --
gsm.password:                           <hidden>
gsm.password-flags:                     0 (none)
gsm.apn:                                --
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:                       --
GENERAL.NAME:                           LTE
GENERAL.UUID:                           ****
GENERAL.DEVICES:                        ttyUSB2
GENERAL.STATE:                          activated
GENERAL.DEFAULT:                        yes
GENERAL.DEFAULT6:                       no
GENERAL.SPEC-OBJECT:                    --
GENERAL.VPN:                            no
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/4
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/Settings/1
GENERAL.ZONE:                           --
GENERAL.MASTER-PATH:                    --
IP4.ADDRESS[1]:                         ****
IP4.GATEWAY:                            ****
IP4.ROUTE[1]:                           ***
IP4.ROUTE[2]:                           ****
IP4.DNS[1]:                             ****
IP4.DNS[2]:                             ****

この設定では、Linuxデバイスが起動したときに実際に接続されている限り、デフォルトではすべてがうまく機能します。

接続がない場合は、mmcli -m 0接続がないことを正しく認識し、接続が可能になるとすぐに接続されます。一方、既存のLTEが接続されているかどうかに関係なく、nmcli c show LTEこの状態を維持します。接続を下にGENERAL.STATE: activating設定して上に設定すると、接続が正しくnmcliなります。nmcli

nmcli引き続き接続を確立せずにLTE接続が確立されたらすぐに設定するにはどうすればよいですか?

ベストアンサー1

おすすめ記事