Page 1 of 1

4G connection conflict with ethernet

Posted: 2024-11-29 11:13
by TomSuede
Hello everyone,

I have a problem with a conflict between a 4G connection and an ethernet connection.
When I use only the 4G connection, everything is fine, but as soon as I active the ethernet link, my 4G connection keeps disconnecting/reconnecting until it does not reconnect anymore.
I have been on that subject for days, so any help/idea would be very much appreciated.

Here is my log from journalctl (that sequence is repeated about every minute) :

Code: Select all

nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.3004] manager: NetworkManager state is now CONNECTED_GLOBAL
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2999] device (cdc-wdm0): Activation: successful, device activated.
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2996] manager: NetworkManager state is now CONNECTED_SITE
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2993] device (cdc-wdm0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'manag>
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2991] device (cdc-wdm0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'manage>
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2971] device (cdc-wdm0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2828] policy: set '4G' (wwan0) as default for IPv4 routing and DNS
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2826] modem-broadband[cdc-wdm0]:   MTU 1500
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2826] modem-broadband[cdc-wdm0]:   DNS 62.201.159.99
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2826] modem-broadband[cdc-wdm0]:   DNS 62.201.129.99
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2825] modem-broadband[cdc-wdm0]:   gateway 212.195.112.197
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2825] modem-broadband[cdc-wdm0]:   address 212.195.112.198/30 brd* 212.195.112.199 lft forever pref for>
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2825] modem-broadband[cdc-wdm0]: IPv4 static configuration:
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2820] device (cdc-wdm0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
nov. 28 13:06:13 station-parking NetworkManager[612]: <info>  [1732795573.2817] device (cdc-wdm0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0] simple connect state (10/10): all done
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0] state changed (registered -> connected)
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1] reloading stats is supported by the device
nov. 28 13:06:13 station-parking ovpn-ubl[780]: write UDPv4 []: Network is unreachable (fd=5,code=101)
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1]        MTU: 1500
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1]     DNS #2: 62.201.159.99
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1]     DNS #1: 62.201.129.99
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1]     gateway: 212.195.112.197
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1]     address: 212.195.112.198/30
nov. 28 13:06:13 station-parking ModemManager[596]: <info>  [modem0/bearer1] QMI IPv4 Settings:
nov. 28 13:06:13 station-parking ntpd[660]: IO: Deleting interface #16 wwan0, 212.195.112.198#123, interface stats: received=0, sent=0, dropped=0, active_time=38 secs
nov. 28 13:06:13 station-parking ovpn-ubl[780]: write UDPv4 []: Network is unreachable (fd=5,code=101)
nov. 28 13:06:12 station-parking ovpn-ubl[780]: write UDPv4 []: Network is unreachable (fd=5,code=101)
nov. 28 13:06:12 station-parking ovpn-ubl[780]: write UDPv4 []: Network is unreachable (fd=5,code=101)
nov. 28 13:06:12 station-parking ovpn-ubl[780]: write UDPv4 []: Network is unreachable (fd=5,code=101)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] state changed (connecting -> registered)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] state changed (registered -> connecting)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] simple connect state (9/10): connect
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] simple connect state (8/10): bearer
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] 3GPP registration state changed (registering -> home)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] 3GPP registration state changed (home -> registering)
nov. 28 13:06:12 station-parking ovpn-ubl[780]: write UDPv4 []: Network is unreachable (fd=5,code=101)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] simple connect state (7/10): wait to get packet service state attached
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] simple connect state (6/10): register
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] simple connect started...
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.1762] manager: NetworkManager state is now CONNECTING
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.1760] device (cdc-wdm0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'manage>
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.1759] device (cdc-wdm0): Activation: starting connection '4G' (a4599b1d-5be5-42da-a58a-d62f24d87849)
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.1755] policy: auto-activating connection '4G' (a4599b1d-5be5-42da-a58a-d62f24d87849)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] 3GPP registration state changed (registering -> home)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] 3GPP registration state changed (home -> registering)
nov. 28 13:06:12 station-parking systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
nov. 28 13:06:12 station-parking dbus-daemon[575]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
nov. 28 13:06:12 station-parking systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.0980] device (cdc-wdm0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed>
nov. 28 13:06:12 station-parking dbus-daemon[575]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service>
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.0974] manager: NetworkManager state is now CONNECTED_LOCAL
nov. 28 13:06:12 station-parking NetworkManager[612]: <warn>  [1732795572.0970] device (cdc-wdm0): Activation: failed for connection '4G'
nov. 28 13:06:12 station-parking NetworkManager[612]: <info>  [1732795572.0960] device (cdc-wdm0): state change: activated -> failed (reason 'modem-no-carrier', sys-iface-state:>
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0/bearer1] connection #41 finished: duration 38s, tx: 444504 bytes, rx: 123047 bytes
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0] state changed (connected -> registered)
nov. 28 13:06:12 station-parking ModemManager[596]: <info>  [modem0/bearer1] verbose call end reason (3,1067): [cm] detach-with-reattach-lte-nw-detach
For information, here is what I get with ip route :

Code: Select all

default via 212.195.112.197 dev wwan0 proto static metric 700 
10.1.0.0/16 dev tap0 proto kernel scope link src 10.1.224.11 
10.2.0.0/16 via 10.1.0.1 dev tap0 
10.3.0.0/16 via 10.1.255.1 dev tap0 
169.254.11.0/24 dev enp0s31f6 proto kernel scope link src 169.254.11.10 metric 100 
212.195.112.196/30 dev wwan0 proto kernel scope link src 212.195.112.198 metric 700
And my configurations nmcli for my 2 connections :

Code: Select all

connection.id:                          4G
connection.uuid:                        b92ef536-3223-4d93-9586-be83b2bffb07
connection.stable-id:                   --
connection.type:                        gsm
connection.interface-name:              --
connection.autoconnect:                 oui
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1732868936
connection.read-only:                   non
connection.permissions:                 --
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     inconnu
connection.lldp:                        default
connection.mdns:                        -1 (default)
connection.llmnr:                       -1 (default)
connection.dns-over-tls:                -1 (default)
connection.mptcp-flags:                 0x0 (default)
connection.wait-device-timeout:         -1
connection.wait-activation-delay:       -1
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.routing-rules:                     --
ipv4.replace-local-rule:                -1 (default)
ipv4.ignore-auto-routes:                non
ipv4.ignore-auto-dns:                   non
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                oui
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     non
ipv4.may-fail:                          oui
ipv4.required-timeout:                  -1 (default)
ipv4.dad-timeout:                       -1 (default)
ipv4.dhcp-vendor-class-identifier:      --
ipv4.link-local:                        0 (default)
ipv4.dhcp-reject-servers:               --
ipv4.auto-route-ext-gw:                 -1 (default)
ipv6.method:                            disabled
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.routing-rules:                     --
ipv6.replace-local-rule:                -1 (default)
ipv6.ignore-auto-routes:                non
ipv6.ignore-auto-dns:                   non
ipv6.never-default:                     non
ipv6.may-fail:                          oui
ipv6.required-timeout:                  -1 (default)
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     default
ipv6.ra-timeout:                        0 (default)
ipv6.mtu:                               auto
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-timeout:                      0 (default)
ipv6.dhcp-send-hostname:                oui
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.auto-route-ext-gw:                 -1 (default)
ipv6.token:                             --
gsm.auto-config:                        non
gsm.number:                             --
gsm.username:                           --
gsm.password:                           <hidden>
gsm.password-flags:                     0 (aucun)
gsm.apn:                                "mmsbouygtel.com"
gsm.network-id:                         --
gsm.pin:                                <hidden>
gsm.pin-flags:                          0 (aucun)
gsm.home-only:                          non
gsm.device-id:                          --
gsm.sim-id:                             --
gsm.sim-operator-id:                    --
gsm.mtu:                                auto
proxy.method:                           none
proxy.browser-only:                     non
proxy.pac-url:                          --
proxy.pac-script:                       --
GENERAL.NAME:                           4G
GENERAL.UUID:                           b92ef536-3223-4d93-9586-be83b2bffb07
GENERAL.DEVICES:                        cdc-wdm0
GENERAL.IP-IFACE:                       wwan0
GENERAL.STATE:                          activé
GENERAL.DEFAULT:                        oui
GENERAL.DEFAULT6:                       non
GENERAL.SPEC-OBJECT:                    --
GENERAL.VPN:                            non
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/20
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/Settings/1
GENERAL.ZONE:                           --
GENERAL.MASTER-PATH:                    --
IP4.ADDRESS[1]:                         212.195.112.199/28
IP4.GATEWAY:                            212.195.112.200
IP4.ROUTE[1]:                           dst = 212.195.112.192/28, nh = 0.0.0.0, mt = 700
IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 212.195.112.200, mt = 700
IP4.DNS[1]:                             62.201.129.99
IP4.DNS[2]:                             62.201.159.99
IP6.GATEWAY:                            --

Code: Select all

connection.id:                          LAN
connection.uuid:                        55f5cea7-0430-3029-b3db-9acbbc43d78a
connection.stable-id:                   --
connection.type:                        802-3-ethernet
connection.interface-name:              enp0s31f6
connection.autoconnect:                 oui
connection.autoconnect-priority:        -999
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   1732876600
connection.read-only:                   non
connection.permissions:                 --
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     inconnu
connection.lldp:                        default
connection.mdns:                        -1 (default)
connection.llmnr:                       -1 (default)
connection.dns-over-tls:                -1 (default)
connection.mptcp-flags:                 0x0 (default)
connection.wait-device-timeout:         -1
connection.wait-activation-delay:       -1
802-3-ethernet.port:                    --
802-3-ethernet.speed:                   0
802-3-ethernet.duplex:                  --
802-3-ethernet.auto-negotiate:          non
802-3-ethernet.mac-address:             --
802-3-ethernet.cloned-mac-address:      --
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist:   --
802-3-ethernet.mtu:                     auto
802-3-ethernet.s390-subchannels:        --
802-3-ethernet.s390-nettype:            --
802-3-ethernet.s390-options:            --
802-3-ethernet.wake-on-lan:             default
802-3-ethernet.wake-on-lan-password:    --
802-3-ethernet.accept-all-mac-addresses:-1 (default)
ipv4.method:                            manual
ipv4.dns:                               --
ipv4.dns-search:                        --
ipv4.dns-options:                       --
ipv4.dns-priority:                      0
ipv4.addresses:                         169.254.7.10/24
ipv4.gateway:                           --
ipv4.routes:                            --
ipv4.route-metric:                      -1
ipv4.route-table:                       0 (unspec)
ipv4.routing-rules:                     --
ipv4.replace-local-rule:                -1 (default)
ipv4.ignore-auto-routes:                non
ipv4.ignore-auto-dns:                   non
ipv4.dhcp-client-id:                    --
ipv4.dhcp-iaid:                         --
ipv4.dhcp-timeout:                      0 (default)
ipv4.dhcp-send-hostname:                oui
ipv4.dhcp-hostname:                     --
ipv4.dhcp-fqdn:                         --
ipv4.dhcp-hostname-flags:               0x0 (none)
ipv4.never-default:                     non
ipv4.may-fail:                          oui
ipv4.required-timeout:                  -1 (default)
ipv4.dad-timeout:                       -1 (default)
ipv4.dhcp-vendor-class-identifier:      --
ipv4.link-local:                        0 (default)
ipv4.dhcp-reject-servers:               --
ipv4.auto-route-ext-gw:                 -1 (default)
ipv6.method:                            disabled
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.routing-rules:                     --
ipv6.replace-local-rule:                -1 (default)
ipv6.ignore-auto-routes:                non
ipv6.ignore-auto-dns:                   non
ipv6.never-default:                     non
ipv6.may-fail:                          oui
ipv6.required-timeout:                  -1 (default)
ipv6.ip6-privacy:                       -1 (unknown)
ipv6.addr-gen-mode:                     default
ipv6.ra-timeout:                        0 (default)
ipv6.mtu:                               auto
ipv6.dhcp-duid:                         --
ipv6.dhcp-iaid:                         --
ipv6.dhcp-timeout:                      0 (default)
ipv6.dhcp-send-hostname:                oui
ipv6.dhcp-hostname:                     --
ipv6.dhcp-hostname-flags:               0x0 (none)
ipv6.auto-route-ext-gw:                 -1 (default)
ipv6.token:                             --
proxy.method:                           none
proxy.browser-only:                     non
proxy.pac-url:                          --
proxy.pac-script:                       --
GENERAL.NAME:                           LAN
GENERAL.UUID:                           55f5cea7-0430-3029-b3db-9acbbc43d78a
GENERAL.DEVICES:                        enp0s31f6
GENERAL.IP-IFACE:                       enp0s31f6
GENERAL.STATE:                          activé
GENERAL.DEFAULT:                        non
GENERAL.DEFAULT6:                       non
GENERAL.SPEC-OBJECT:                    --
GENERAL.VPN:                            non
GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/2
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/Settings/3
GENERAL.ZONE:                           --
GENERAL.MASTER-PATH:                    --
IP4.ADDRESS[1]:                         169.254.7.10/24
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 169.254.7.0/24, nh = 0.0.0.0, mt = 100
IP6.GATEWAY:                            --

Re: 4G connection conflict with ethernet

Posted: 2024-11-29 11:50
by arzgi
So you mean to keep two net work connections online at the same time?

Can be difficult, if you don't want to do load balancing or other advanced technicues.

I suggest using one at once, ie. closing the one your using before connecting the other.

Re: 4G connection conflict with ethernet

Posted: 2024-11-29 12:01
by steve_v
[REDACTED]

Re: 4G connection conflict with ethernet

Posted: 2024-11-29 13:26
by TomSuede
Actually, I get access to cameras via a switch, on which I am connected via ethernet, then I do image processing, and I transfer data resulting from that processing on a VPN via my 4G connection.
So, I would say I need both connections at the same time yes.
I know that kind of configuration works on another site, so I guess it was a misconfiguration issue.

Are there options I could investigate ?

Re: 4G connection conflict with ethernet

Posted: 2024-11-29 14:00
by arzgi
Sorry. have not used network manager. Maybe investigate that further.

Re: 4G connection conflict with ethernet

Posted: 2024-11-29 14:12
by TomSuede
OK, thank you any way arzgi

Re: 4G connection conflict with ethernet

Posted: 2024-12-02 18:14
by Aki
Hello,

What version of Debian do you have installed ?

What hardware are you running it on ?
TomSuede wrote: 2024-11-29 13:26 Actually, I get access to cameras via a switch, on which I am connected via ethernet, then I do image processing, and I transfer data resulting from that processing on a VPN via my 4G connection. So, I would say I need both connections at the same time yes.
[..]
Are there options I could investigate ?
Only one connection at a time is allowed by the network manager.

You will probably need to do a manual network configuration (e.g. with ifupdown) if you want to "bridge" the internal network (the local ethernet camera) to the external network (4G modem connection).

Perhaps this link will help you: Hope this helps.