私はDebian Jessie 8.2を使用しており、3G接続を使用しています。Huawei社MU709ミニPCIe。
3G接続はうまく機能しますが、24時間経過すると接続が切断され、再接続できなくなります。コンピュータを再起動すると、接続は再び機能します。
私の考えでは、私のISPは24時間後に私に新しいIPアドレスを与えましたが、私のシステムはそれを処理できませんでした。
再起動せずに3G接続を再接続するには?
次のコマンドを試しました。
sudo service network-manager restart
そして:
dhclient -r eth0
dhclient eth0
編集1:
journalctl
結果の私の接続名をgrepします(SFR
)。
sept. 22 17:58:19 ark1 NetworkManager[512]: <info> Policy set 'SFR Web / Prepaid 1' (eth0) as default for IPv4 routing and DNS.
sept. 23 18:17:07 ark1 NetworkManager[9446]: <info> new connection /etc/NetworkManager/system-connections/SFR Web * Prepaid 1
sept. 23 18:17:08 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR Web / Prepaid 1'.
sept. 23 18:17:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR Web / Prepaid 1'
sept. 23 18:17:53 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR Web / Prepaid 1'
sept. 23 18:17:53 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR Web / Prepaid 1'.
sept. 23 18:17:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR Web / Prepaid 1'
sept. 23 18:18:03 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR Web / Prepaid 1'
sept. 23 18:18:03 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR Web / Prepaid 1'.
sept. 23 18:18:03 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR Web / Prepaid 1'
sept. 23 18:18:13 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR Web / Prepaid 1'
ご覧sept 22 at time 17:18
のとおり、コンピュータが起動した瞬間です。約24時間経過すると、再接続が不可能になります。
また、コマンドを実行するスクリプトがあることにも言及する必要があります。
sudo service network-manager restart
コンピュータがサーバーに対してpingを実行できない場合、接続は切断されます。
編集2:journalctl
システムが再接続しようとしたときに追加情報を追加します。
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR'.
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR'
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
sept. 23 23:52:53 ark1 ModemManager[518]: <info> Simple connect started...
sept. 23 23:52:53 ark1 ModemManager[518]: <info> Simple connect state (4/8): Wait to get fully enabled
sept. 23 23:52:53 ark1 ModemManager[518]: <info> Simple connect state (5/8): Register
sept. 23 23:52:53 ark1 ModemManager[518]: <info> Simple connect state (6/8): Bearer
sept. 23 23:52:53 ark1 ModemManager[518]: <info> Simple connect state (7/8): Connect
sept. 23 23:52:53 ark1 ModemManager[518]: <info> Simple connect state (8/8): All done
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: prepare -> config (reason 'none') [40 50 0]
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful.
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled.
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete.
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: config -> ip-config (reason 'none') [50 70 0]
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> dhclient started with pid 13212
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete.
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) started...
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
sept. 23 23:52:53 ark1 NetworkManager[9446]: <info> (eth0): DHCPv4 state changed nbi -> preinit
sept. 23 23:52:53 ark1 dhclient[13212]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
sept. 23 23:52:59 ark1 dhclient[13212]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
sept. 23 23:53:09 ark1 dhclient[13212]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
sept. 23 23:53:14 ark1 dhclient[13212]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
sept. 23 23:53:22 ark1 dhclient[13212]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
sept. 23 23:53:32 ark1 dhclient[13212]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
sept. 23 23:53:38 ark1 NetworkManager[9446]: <warn> (eth0): DHCPv4 request timed out.
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> (eth0): canceled DHCP transaction, DHCP client pid 13212
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) started...
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
sept. 23 23:53:38 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR'
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
sept. 23 23:53:38 ark1 avahi-daemon[528]: Withdrawing address record for 169.254.1.156 on eth0.
sept. 23 23:53:38 ark1 avahi-daemon[528]: Leaving mDNS multicast group on interface eth0.IPv4 with address 169.254.1.156.
sept. 23 23:53:38 ark1 avahi-daemon[528]: Interface eth0.IPv4 no longer relevant for mDNS.
sept. 23 23:53:38 ark1 dhclient[11114]: receive_packet failed on eth0: Network is down
sept. 23 23:53:38 ark1 ModemManager[518]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connected -> disconnecting)
sept. 23 23:53:38 ark1 ModemManager[518]: <warn> Couldn't find associated cdc-wdm port for 'net/eth0'
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR'.
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR'
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
sept. 23 23:53:38 ark1 NetworkManager[9446]: <info> (ttyUSB0): modem state changed, 'connected' --> 'disconnecting' (reason: user-requested)
sept. 23 23:53:38 ark1 avahi-autoipd(eth0)[13202]: SIOCSIFFLAGS failed: Operation not permitted
sept. 23 23:53:38 ark1 avahi-autoipd(eth0)[13202]: Callout STOP, address 169.254.1.156 on interface eth0
sept. 23 23:53:39 ark1 ModemManager[518]: <info> Simple connect started...
sept. 23 23:53:39 ark1 ModemManager[518]: <info> Simple connect state (4/8): Wait to get fully enabled
sept. 23 23:53:39 ark1 avahi-autoipd(eth0)[13203]: client: RTNETLINK answers: No such process
sept. 23 23:53:39 ark1 avahi-autoipd(eth0)[13203]: client: RTNETLINK answers: Cannot assign requested address
sept. 23 23:53:39 ark1 avahi-autoipd(eth0)[13203]: Script execution failed with return value 2
sept. 23 23:53:48 ark1 NetworkManager[9446]: <warn> (ttyUSB0) failed to connect modem: Too much time waiting to get to a final state
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: prepare -> failed (reason '(null)') [40 120 1]
sept. 23 23:53:48 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR'
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR'.
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR'
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
sept. 23 23:53:48 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
sept. 23 23:53:48 ark1 ModemManager[518]: <info> Simple connect started...
sept. 23 23:53:48 ark1 ModemManager[518]: <info> Simple connect state (4/8): Wait to get fully enabled
sept. 23 23:53:58 ark1 NetworkManager[9446]: <warn> (ttyUSB0) failed to connect modem: Too much time waiting to get to a final state
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: prepare -> failed (reason '(null)') [40 120 1]
sept. 23 23:53:58 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR'
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR'.
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR'
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
sept. 23 23:53:58 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
sept. 23 23:53:58 ark1 ModemManager[518]: <info> Simple connect started...
sept. 23 23:53:58 ark1 ModemManager[518]: <info> Simple connect state (4/8): Wait to get fully enabled
sept. 23 23:54:08 ark1 NetworkManager[9446]: <warn> (ttyUSB0) failed to connect modem: Too much time waiting to get to a final state
sept. 23 23:54:08 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: prepare -> failed (reason '(null)') [40 120 1]
sept. 23 23:54:08 ark1 NetworkManager[9446]: <info> Disabling autoconnect for connection 'SFR'.
sept. 23 23:54:08 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR'
sept. 23 23:54:08 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
sept. 23 23:54:08 ark1 NetworkManager[9446]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
sept. 23 23:54:39 ark1 ModemManager[518]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (disconnecting -> connected)
sept. 23 23:54:39 ark1 NetworkManager[9446]: <info> (ttyUSB0): modem state changed, 'disconnecting' --> 'connected' (reason: user-requested)
sept. 23 23:55:31 ark1 noip2[1786]: Can't get our visible IP address from ip1.dynupdate.no-ip.com
sept. 23 23:55:50 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
sept. 23 23:55:50 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:55:50 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:55:54 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
sept. 23 23:55:54 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:55:54 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:56:02 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
sept. 23 23:56:02 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:56:02 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:56:13 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
sept. 23 23:56:13 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:56:13 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:56:23 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
sept. 23 23:56:23 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:56:23 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:56:34 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
sept. 23 23:56:34 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:56:34 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:56:43 ark1 dhclient[11114]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
sept. 23 23:56:43 ark1 dhclient[11114]: send_packet: Network is down
sept. 23 23:56:43 ark1 dhclient[11114]: dhclient.c:1966: Failed to send 300 byte long packet over eth0 interface.
sept. 23 23:56:51 ark1 dhclient[11114]: No DHCPOFFERS received.
sept. 23 23:56:51 ark1 dhclient[11114]: No working leases in persistent database - sleeping.
sept. 23 23:56:51 ark1 avahi-autoipd(eth0)[13229]: Found user 'avahi-autoipd' (UID 109) and group 'avahi-autoipd' (GID 118).
sept. 23 23:56:51 ark1 avahi-autoipd(eth0)[13229]: Successfully called chroot().
sept. 23 23:56:51 ark1 avahi-autoipd(eth0)[13229]: Successfully dropped root privileges.
sept. 23 23:56:51 ark1 avahi-autoipd(eth0)[13229]: Starting with address 169.254.1.156
sept. 23 23:56:57 ark1 avahi-autoipd(eth0)[13229]: Callout BIND, address 169.254.1.156 on interface eth0
sept. 23 23:56:57 ark1 avahi-daemon[528]: Joining mDNS multicast group on interface eth0.IPv4 with address 169.254.1.156.
sept. 23 23:56:57 ark1 avahi-daemon[528]: New relevant interface eth0.IPv4 for mDNS.
sept. 23 23:56:57 ark1 avahi-daemon[528]: Registering new address record for 169.254.1.156 on eth0.IPv4.
sept. 23 23:57:01 ark1 avahi-autoipd(eth0)[13229]: Successfully claimed IP address 169.254.1.156
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR'.
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) starting connection 'SFR'
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
sept. 23 23:59:08 ark1 ModemManager[518]: <info> Simple connect started...
sept. 23 23:59:08 ark1 ModemManager[518]: <info> Simple connect state (4/8): Wait to get fully enabled
sept. 23 23:59:08 ark1 ModemManager[518]: <info> Simple connect state (5/8): Register
sept. 23 23:59:08 ark1 ModemManager[518]: <info> Simple connect state (6/8): Bearer
sept. 23 23:59:08 ark1 ModemManager[518]: <info> Simple connect state (7/8): Connect
sept. 23 23:59:08 ark1 ModemManager[518]: <info> Simple connect state (8/8): All done
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: prepare -> config (reason 'none') [40 50 0]
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful.
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled.
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete.
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: config -> ip-config (reason 'none') [50 70 0]
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> dhclient started with pid 13236
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) scheduled...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete.
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) started...
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv6 Configure Timeout) complete.
sept. 23 23:59:08 ark1 NetworkManager[9446]: <info> (eth0): DHCPv4 state changed nbi -> preinit
sept. 23 23:59:09 ark1 dhclient[13236]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
sept. 23 23:59:17 ark1 dhclient[13236]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
sept. 23 23:59:31 ark1 dhclient[13236]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
sept. 23 23:59:34 ark1 dhclient[13236]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
sept. 23 23:59:38 ark1 dhclient[13236]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
sept. 23 23:59:49 ark1 dhclient[13236]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
sept. 23 23:59:53 ark1 NetworkManager[9446]: <warn> (eth0): DHCPv4 request timed out.
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> (eth0): canceled DHCP transaction, DHCP client pid 13236
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) scheduled...
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) started...
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
sept. 23 23:59:53 ark1 NetworkManager[9446]: <warn> Activation (ttyUSB0) failed for connection 'SFR'
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> Activation (ttyUSB0) Stage 4 of 5 (IPv4 Configure Timeout) complete.
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): deactivating device (reason 'none') [0]
sept. 23 23:59:53 ark1 avahi-daemon[528]: Withdrawing address record for 169.254.1.156 on eth0.
sept. 23 23:59:53 ark1 avahi-daemon[528]: Leaving mDNS multicast group on interface eth0.IPv4 with address 169.254.1.156.
sept. 23 23:59:53 ark1 avahi-daemon[528]: Interface eth0.IPv4 no longer relevant for mDNS.
sept. 23 23:59:53 ark1 dhclient[11114]: receive_packet failed on eth0: Network is down
sept. 23 23:59:53 ark1 avahi-autoipd(eth0)[13229]: SIOCSIFFLAGS failed: Operation not permitted
sept. 23 23:59:53 ark1 avahi-autoipd(eth0)[13229]: Callout STOP, address 169.254.1.156 on interface eth0
sept. 23 23:59:53 ark1 ModemManager[518]: <info> Modem /org/freedesktop/ModemManager1/Modem/0: state changed (connected -> disconnecting)
sept. 23 23:59:53 ark1 ModemManager[518]: <warn> Couldn't find associated cdc-wdm port for 'net/eth0'
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> (ttyUSB0): modem state changed, 'connected' --> 'disconnecting' (reason: user-requested)
sept. 23 23:59:53 ark1 NetworkManager[9446]: <info> Auto-activating connection 'SFR'.
私も成功せずにWouter Verhelstの答えを試しました。
systemctl restart ModemManager
編集3:
NetworkManager.conf
文書:
[main] plugins=ifupdown,keyfile
[ifupdown] managed=false
編集4:
$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0b:ab:9d:7c:20 brd ff:ff:ff:ff:ff:ff
3: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0b:ab:9c:29:84 brd ff:ff:ff:ff:ff:ff
4: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 00:0b:ab:9c:29:85 brd ff:ff:ff:ff:ff:ff
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
編集5:
接続が機能している場合:
ps ax | grep 'pppd' | grep -v 'grep'
何も出力しません。
編集6:
~$ mmcli -m 0
/org/freedesktop/ModemManager1/Modem/0 (device id 'cd32f4358dd82cdb976fcc9df44df11737726856')
-------------------------
Hardware | manufacturer: 'Huawei Technologies Co., Ltd.'
| model: 'MU709s-2'
| revision: '11.651.67.00.00'
| supported: 'gsm-umts'
| current: 'gsm-umts'
| equipment id: '864881021266208'
-------------------------
System | device: '/sys/devices/pci0000:00/0000:00:1d.7/usb5/5-6'
| drivers: 'option1, cdc_ether'
| plugin: 'Huawei'
| primary port: 'ttyUSB0'
| ports: 'ttyUSB0 (at), ttyUSB2 (at), ttyUSB3 (at), eth0 (net)'
-------------------------
Numbers | own : 'unknown'
-------------------------
Status | lock: 'none'
| unlock retries: 'sim-pin (3), sim-pin2 (3), sim-puk (10), sim-puk2 (10)'
| state: 'connected'
| power state: 'on'
| access tech: 'umts'
| signal quality: '32' (recent)
-------------------------
Modes | supported: 'allowed: 2g, 3g; preferred: none
| allowed: 2g, 3g; preferred: 2g
| allowed: 2g, 3g; preferred: 3g
| allowed: 2g; preferred: none
| allowed: 3g; preferred: none'
| current: 'allowed: 2g, 3g; preferred: 3g'
-------------------------
Bands | supported: 'unknown'
| current: 'unknown'
-------------------------
IP | supported: 'ipv4'
-------------------------
3GPP | imei: '864881021266208'
| enabled locks: 'none'
| operator id: '20810'
| operator name: 'F SFR'
| subscription: 'unknown'
| registration: 'home'
-------------------------
SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
-------------------------
Bearers | paths: '/org/freedesktop/ModemManager1/Bearer/0'
最後の修正:
私が見つけた唯一の解決策は、MU709モデムをVIA EMIO-2550に変更することでした。 VIAに接続の問題はありません。
答え1
GSM接続でどのインターフェイスを使用しているかわかりますかeth0
?ほとんどの場合、これが真であるか、ppp0
最新のMBIMプロトコルが使用されますwwan0
。モバイルブロードバンドとのインターフェースは非常にまれです。usb0
eth0
あなたのGMSカードは、この/dev/ttyUSB0
インターフェイスを使用して実際のモバイルブロードバンドネットワークに接続し、pppd
このインターフェイスを介してプライベートeth0
DHCPネットワークへの接続を転送するようです。 169.254.xx IP範囲は、単純なDHCP接続を提供するために使用されるリンクローカルアドレスです。
したがって、NetworkManager が pppd 接続を確立できない場合、モバイルブロードバンドは使用できません。
私の経験では、ISPは接続されている場合はIPアドレスを絶対に変更せず、少なくともモバイルブロードバンドの場合は、再接続するたびに常に異なるIPアドレスを提供します。
今何が起こっているのでしょうか(もう一度言うが、私の個人的な経験です)モデムこんにちは、ミニPCIeカードなので、簡単に差し込んだり引き出すことはできません。ここは昔ながらです。存在するコマンドが便利です。
お気に入りのシリアル接続アプリケーションでポートを接続してみてください/dev/ttyUSB0
。Putty
私はオリジナルを使用しています。minicom
cutecom
cu
busybox microcom
busybox microcom
nmcli radio wwan off
sudo busybox microcom -t 10000 /dev/ttyUSB0
ここにATコマンドを入力してください。
ATZ
AT+CFUN=0
10秒間待ちます。そして再接続してください。
sudo busybox microcom -t 10000 /dev/ttyUSB0
AT+CFUN=1
これで終了し、NetworkManagerアプレットを介して再接続してみてください。
モバイルブロードバンド接続が有効な場合は、次のコマンドを実行して質問を更新します。
ps ax | grep 'pppd' | grep -v 'grep'
あなたのGSMカードは素晴らしいですが、多くの高度な機能を備えていますが、残念ながら正常に動作しません。
答え2
NetworkManagerは3Gモデムの処理に関与していますが、ほんのわずかです。モデムと通信する実際のプログラムはModemManagerと呼ばれます。私のラップトップも時々接続が失われることを発見しました。
systemctl restart ModemManager
十分。
答え3
ログ出力では、journalctl
これが起こる原因が何であるかは明確には明らかではありません。以下を順番に実行することをお勧めします。
1)。この場合は、インターフェイスを手動で設定してみてください。
ifconfig eth0 up
または、ifconfig
まだインストールしていない場合は、次のコマンドを使用してインストールできますip
。
ip link set dev eth0 up
2)。それでも役に立たない場合は、/var/log/syslog
関連メッセージを確認してください。
経験に基づいて推測する必要がある場合、これはモデム自体に関連する設定の問題です。 NetworkManager設定ファイル自体を公開し、ここに含まれる可能性のある機密情報を削除できますか?