LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2021, 02:48 AM   #1
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Rep: Reputation: 2
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.
 
Old 07-21-2021, 05:00 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
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?
 
Old 12-30-2023, 06:46 AM   #3
George528
Member
 
Registered: May 2021
Location: Moldova
Distribution: Arch, Debian
Posts: 95

Original Poster
Rep: Reputation: 2
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
 
  


Reply

Tags
dropping, ethernet, internet connection, networkmanager, wifi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Broadcom Wireless Internet Connection Keeps Dropping JoshGriffin Linux - Wireless Networking 3 11-25-2009 04:00 PM
Zyxel modem keeps dropping internet connection Joe Soap Linux - Hardware 5 01-21-2009 11:02 AM
Dialup Connection Keeps Dropping WarlockofVirgo Linux - Networking 1 09-07-2004 04:42 PM
ADSL connection keeps dropping UKMan Linux - Newbie 2 06-13-2003 12:04 AM
Connection keeps dropping slakmagik Linux - General 3 04-30-2003 01:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration