LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Networkmanagers keeps dropping internet connection (https://www.linuxquestions.org/questions/linux-networking-3/networkmanagers-keeps-dropping-internet-connection-4175698069/)

George528 07-21-2021 02:48 AM

Networkmanagers keeps dropping internet connection
 
Hello, i have a problem with networkmanager - it keeps losing/dropping internet connection. This can happen anytime. When it happens, i check ifconfig and see my inet (ipv4) adress is missing. Only inet6 remains, but that doesn't help me. I have to reset networkmanager everytime this happens, it can become frustrating when you leave your computer overnight to work on something and next day you see that the internet connection was down for the last 6 hours. Someone advised me to switch to netifrc (i use gentoo), but i didn't like it because of wpa_supplicant. Imo, networkmanager manages wireless connection much easier. So i switched back to networkmanager. Here are some details i noticed:

when (re)starting networkmanager
Code:

* Starting NetworkManager ...                                                      [ ok ]
Connecting...............    0s [offline]
 * Marking NetworkManager as inactive. It will automatically be marked
 * as started after a network connection has been established.
 * WARNING: NetworkManager has started, but is inactive

Code:

$ rc-update show
      NetworkManager |      default
            acpilight | boot
              binfmt | boot
            bootmisc | boot
              cgroups |                                sysinit
                dbus |      default
                devfs |                                sysinit
                dmesg |                                sysinit
                fsck | boot
            hostname | boot
              hwclock | boot
              keymaps | boot
            killprocs |                        shutdown
    kmod-static-nodes |                                sysinit
                local |      default nonetwork
          localmount | boot
            loopback | boot
              modules | boot
            mount-ro |                        shutdown
                mtab | boot
              procfs | boot
                root | boot
        save-keymaps | boot
    save-termencoding | boot
            savecache |                        shutdown
                sshd |      default
        stmpfiles-dev |                                sysinit
      stmpfiles-setup | boot
                swap | boot
              sysctl | boot
                sysfs |                                sysinit
        termencoding | boot
                udev |                                sysinit
        udev-trigger |                                sysinit
              urandom | boot

Code:

$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether dc:0e:a1:3e:51:e4  txqueuelen 1000  (Ethernet)
        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

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.15  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::c60b:31e8:d8ac:a0c2  prefixlen 64  scopeid 0x20<link>
        inet6 2a00:1858:1018:8514:3628:63db:b622:eb7c  prefixlen 64  scopeid 0x0<global>
        inet6 2a00:1858:1018:8514::1  prefixlen 128  scopeid 0x0<global>
        ether 0c:37:96:12:1f:8c  txqueuelen 1000  (Ethernet)
        RX packets 6926  bytes 5366365 (5.1 MiB)
        RX errors 0  dropped 94  overruns 0  frame 0
        TX packets 5480  bytes 893846 (872.8 KiB)
        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<host>
        loop  txqueuelen 1000  (Local Loopback)
        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

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.14  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2a00:1858:1018:8514::2  prefixlen 128  scopeid 0x0<global>
        inet6 2a00:1858:1018:8514:f513:2c69:e3a:9da1  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::8061:9dc6:8944:ce92  prefixlen 64  scopeid 0x20<link>
        ether 74:31:70:c9:dc:62  txqueuelen 1000  (Ethernet)
        RX packets 92  bytes 30926 (30.2 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 50  bytes 8338 (8.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Let me know if you need more info for figuring out my problem.
Thanks.

smallpond 07-21-2021 05:00 PM

In the output above you seem to have both wired ethernet and wi-fi active on the same subnet with different IPs. This is unusual. What is your default route?

George528 12-30-2023 06:46 AM

This is an old thread so I'm marking it at solved
I don't remember how I solved the problem but right now I'm on a completely different system, with a new distro, everything works perfectly


All times are GMT -5. The time now is 03:32 PM.