LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-19-2018, 07:09 AM   #1
miccze
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 17

Rep: Reputation: Disabled
centos7: wlan0 is disconnected once per couple minutes


I'm having couple of issues with my network, it's Centos7.

I'm getting something like this in the logs. Any idea what that might be? It's getting me out of the ssh session:
Code:
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:1 'up' [wlan0]: new request (3 scripts)
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:1 'up' [wlan0]: start running ordered scripts...
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:2 'connectivity-change': new request (3 scripts)
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 149.156.70.75 online
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 188.165.17.91 online
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 46.175.224.7 online
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 159.253.242.123 online
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:2 'connectivity-change': start running ordered scripts...
Sep 19 11:59:51 rpicent1 chronyd[229]: Selected source 149.156.70.75
Sep 19 11:59:54 rpicent1 NetworkManager[238]: <info>  [1537351194.1227] policy: set '3Bredband-4FB2-2.4GHz' (wlan0) as default for IPv6 rout
Sep 19 12:00:23 rpicent1 sshd[541]: pam_unix(sshd:session): session closed for user mcadmin
Sep 19 12:00:26 rpicent1 su[563]: pam_unix(su:session): session closed for user root
Sep 19 12:00:26 rpicent1 systemd-logind[218]: Removed session 2.
-- Subject: Session 2 has been terminated
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A session with the ID 2 has been terminated.

Then, there is issue regarding dhcp6. Its getting stopped and my network is getting disconnected and i am thrown out of the ssh session.

Code:
Jan 01 01:00:26 rpicent1 nm-dispatcher[267]: req:3 'connectivity-change': start running ordered scripts...
Jan 01 01:00:27 rpicent1 NetworkManager[238]: <info>  [27.2141] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 01 01:00:30 rpicent1 NetworkManager[238]: <info>  [30.0010] dhcp6 (wlan0): dhclient started with pid 510
Jan 01 01:00:30 rpicent1 NetworkManager[238]: <info>  [30.0119] policy: set '3Bredband-4FB2-2.4GHz' (wlan0) as default for IPv6 routing and
Jan 01 01:00:31 rpicent1 dhclient[510]: XMT: Info-Request on wlan0, interval 970ms.
Jan 01 01:00:31 rpicent1 dhclient[510]: RCV: Reply message on wlan0 from fe80::ba08:d7ff:fed0:4fb1.
Jan 01 01:00:33 rpicent1 NetworkManager[238]: <info>  [33.6811] dhcp6 (wlan0):   nameserver 'fe80::ba08:d7ff:fed0:4fb1'
Jan 01 01:00:33 rpicent1 NetworkManager[238]: <info>  [33.6813] dhcp6 (wlan0): state changed unknown -> bound
Jan 01 01:00:34 rpicent1 chronyd[229]: Selected source 46.175.224.7
Jan 01 01:00:34 rpicent1 chronyd[229]: System clock wrong by 1537349744.555121 seconds, adjustment started
Sep 19 11:36:18 rpicent1 systemd[1]: Time has been changed
-- Subject: Time change
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The system clock has been changed to REALTIME microseconds after January 1st, 1970.
Sep 19 11:36:18 rpicent1 chronyd[229]: System clock was stepped by 1537349744.555121 seconds
Sep 19 11:36:22 rpicent1 NetworkManager[238]: <info>  [1537349782.7333] dhcp6 (wlan0): client pid 510 exited with status 0
Sep 19 11:36:22 rpicent1 NetworkManager[238]: <info>  [1537349782.7334] dhcp6 (wlan0): state changed bound -> done
Sep 19 11:36:22 rpicent1 rsyslogd[466]: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 19 11:36:25 rpicent1 chronyd[229]: Selected source 159.253.242.123

Finally i get those messages, which also confuses me. This is being repeated every couple of minutes:

Code:
Sep 19 13:04:12 rpicent1 NetworkManager[238]: <info>  [1537355052.4783] device (wlan0): supplicant interface state: completed -> disconnecte
Sep 19 13:04:12 rpicent1 NetworkManager[238]: <info>  [1537355052.5726] device (wlan0): supplicant interface state: disconnected -> scanning
Sep 19 13:04:14 rpicent1 NetworkManager[238]: <info>  [1537355054.9422] device (wlan0): supplicant interface state: scanning -> associating
Sep 19 13:04:15 rpicent1 NetworkManager[238]: <info>  [1537355055.0725] device (wlan0): supplicant interface state: associating -> 4-way han
Sep 19 13:04:15 rpicent1 NetworkManager[238]: <info>  [1537355055.0766] device (wlan0): supplicant interface state: 4-way handshake -> compl

Can you help me out here?

Below some info regarding the network, which might be helpfull:
Code:
[mcadmin@rpicent1 ~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether b8:27:eb:e9:65:e0 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b8:27:eb:bc:30:b5 brd ff:ff:ff:ff:ff:ff
    inet 192.168.8.210/24 brd 192.168.8.255 scope global noprefixroute wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::ba27:ebff:febc:30b5/64 scope link
       valid_lft forever preferred_lft forever
[mcadmin@rpicent1 ~]$

Code:
[mcadmin@rpicent1 ~]$ ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:e9:65:e0  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

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.8.210  netmask 255.255.255.0  broadcast 192.168.8.255
        inet6 fe80::ba27:ebff:febc:30b5  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:bc:30:b5  txqueuelen 1000  (Ethernet)
        RX packets 5377  bytes 347174 (339.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4726  bytes 959093 (936.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[mcadmin@rpicent1 ~]$
If any more info required, let me know.
 
Old 09-19-2018, 07:54 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by miccze View Post
I'm having couple of issues with my network, it's Centos7.

I'm getting something like this in the logs. Any idea what that might be? It's getting me out of the ssh session:
Code:
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:1 'up' [wlan0]: new request (3 scripts)
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:1 'up' [wlan0]: start running ordered scripts...
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:2 'connectivity-change': new request (3 scripts)
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 149.156.70.75 online
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 188.165.17.91 online
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 46.175.224.7 online
Sep 19 11:59:51 rpicent1 chronyd[229]: Source 159.253.242.123 online
Sep 19 11:59:51 rpicent1 nm-dispatcher[677]: req:2 'connectivity-change': start running ordered scripts...
Sep 19 11:59:51 rpicent1 chronyd[229]: Selected source 149.156.70.75
Sep 19 11:59:54 rpicent1 NetworkManager[238]: <info>  [1537351194.1227] policy: set '3Bredband-4FB2-2.4GHz' (wlan0) as default for IPv6 rout
Sep 19 12:00:23 rpicent1 sshd[541]: pam_unix(sshd:session): session closed for user mcadmin
Sep 19 12:00:26 rpicent1 su[563]: pam_unix(su:session): session closed for user root
Sep 19 12:00:26 rpicent1 systemd-logind[218]: Removed session 2.
-- Subject: Session 2 has been terminated
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
--
-- A session with the ID 2 has been terminated.

Then, there is issue regarding dhcp6. Its getting stopped and my network is getting disconnected and i am thrown out of the ssh session.

Code:
Jan 01 01:00:26 rpicent1 nm-dispatcher[267]: req:3 'connectivity-change': start running ordered scripts...
Jan 01 01:00:27 rpicent1 NetworkManager[238]: <info>  [27.2141] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
Jan 01 01:00:30 rpicent1 NetworkManager[238]: <info>  [30.0010] dhcp6 (wlan0): dhclient started with pid 510
Jan 01 01:00:30 rpicent1 NetworkManager[238]: <info>  [30.0119] policy: set '3Bredband-4FB2-2.4GHz' (wlan0) as default for IPv6 routing and
Jan 01 01:00:31 rpicent1 dhclient[510]: XMT: Info-Request on wlan0, interval 970ms.
Jan 01 01:00:31 rpicent1 dhclient[510]: RCV: Reply message on wlan0 from fe80::ba08:d7ff:fed0:4fb1.
Jan 01 01:00:33 rpicent1 NetworkManager[238]: <info>  [33.6811] dhcp6 (wlan0):   nameserver 'fe80::ba08:d7ff:fed0:4fb1'
Jan 01 01:00:33 rpicent1 NetworkManager[238]: <info>  [33.6813] dhcp6 (wlan0): state changed unknown -> bound
Jan 01 01:00:34 rpicent1 chronyd[229]: Selected source 46.175.224.7
Jan 01 01:00:34 rpicent1 chronyd[229]: System clock wrong by 1537349744.555121 seconds, adjustment started
Sep 19 11:36:18 rpicent1 systemd[1]: Time has been changed
-- Subject: Time change
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The system clock has been changed to REALTIME microseconds after January 1st, 1970.
Sep 19 11:36:18 rpicent1 chronyd[229]: System clock was stepped by 1537349744.555121 seconds
Sep 19 11:36:22 rpicent1 NetworkManager[238]: <info>  [1537349782.7333] dhcp6 (wlan0): client pid 510 exited with status 0
Sep 19 11:36:22 rpicent1 NetworkManager[238]: <info>  [1537349782.7334] dhcp6 (wlan0): state changed bound -> done
Sep 19 11:36:22 rpicent1 rsyslogd[466]: imjournal: journal reloaded... [v8.24.0 try http://www.rsyslog.com/e/0 ]
Sep 19 11:36:25 rpicent1 chronyd[229]: Selected source 159.253.242.123
From your outputs it seems that NetworkManager is connecting a wireless interface, the "mcadmin" user is being disconnected from ssh, the "root" user has been exited from the "su" command - which could be "Session 2".

If you look at what I've highlighted in bold; it seems when the system time is changed, NetworkManager is disconnecting your wireless interface. Why is the system time being changed?

What scripts are you having NetworkManager run?

Quote:
Finally i get those messages, which also confuses me. This is being repeated every couple of minutes:

Code:
Sep 19 13:04:12 rpicent1 NetworkManager[238]: <info>  [1537355052.4783] device (wlan0): supplicant interface state: completed -> disconnecte
Sep 19 13:04:12 rpicent1 NetworkManager[238]: <info>  [1537355052.5726] device (wlan0): supplicant interface state: disconnected -> scanning
Sep 19 13:04:14 rpicent1 NetworkManager[238]: <info>  [1537355054.9422] device (wlan0): supplicant interface state: scanning -> associating
Sep 19 13:04:15 rpicent1 NetworkManager[238]: <info>  [1537355055.0725] device (wlan0): supplicant interface state: associating -> 4-way han
Sep 19 13:04:15 rpicent1 NetworkManager[238]: <info>  [1537355055.0766] device (wlan0): supplicant interface state: 4-way handshake -> compl
...
Probably because NetworkManager is scanning after disconnection for more wireless interfaces to try and connect - it can happen with my CentOS 7.5 system (and does).
 
Old 09-19-2018, 04:08 PM   #3
miccze
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks for the reply!

Quote:
If you look at what I've highlighted in bold; it seems when the system time is changed, NetworkManager is disconnecting your wireless interface. Why is the system time being changed?
Regarding the time changing, it's being done automatically. It looks like there is January 1st date for some time, but then it updates itself according to hwclock and timedatectl properties where timezone is set.


Quote:
What scripts are you having NetworkManager run?
Regarding the scripts that shows in the logs, i have no idea what are those. I'm not aware of any scripts running from nmdispatcher. I was thinking that it might be something inside NetworkManager, some scripts and that it might be normal. Is there a way to check that out?

Quote:
Probably because NetworkManager is scanning after disconnection for more wireless interfaces to try and connect - it can happen with my CentOS 7.5 system (and does).
Is there any way to stop NetworkManager from searching other interfaces?
 
Old 09-19-2018, 10:47 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by miccze View Post
...Regarding the time changing, it's being done automatically. It looks like there is January 1st date for some time, but then it updates itself according to hwclock and timedatectl properties where timezone is set.
You need to find out why it's set on January 1st and set it to the correct time. As I said before, your wifi interface is being disconnected after the time is changed. Is the right time/timezone set in the machine's BIOS/UEFI ?

Quote:
Regarding the scripts that shows in the logs, i have no idea what are those. I'm not aware of any scripts running from nmdispatcher. I was thinking that it might be something inside NetworkManager, some scripts and that it might be normal. Is there a way to check that out?
Yes, have a look in the /etc/NetworkManager/dispatcher.d/ folder, that's where the scripts for nmdispatcher are located and run from. On my system there is a script called "20-chrony", if you note your outputs, it seems right after this script is run, is when your wifi interface is disconnected.

Quote:
Is there any way to stop NetworkManager from searching other interfaces?
From my research it seems there is a way to force it to prefer one access point over others. You can run the "nm-connection-editor" command, which is a "mini" GUI for NetworkManager. According to this and this it involves "locking onto" the AP you wish to use, so it always prefers that AP over any other AP. You set the BSSID for the AP you want to use in the same GUI.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Internet connection gets disconnected within 2-3 minutes asdandekar Ubuntu 4 01-29-2009 03:12 AM
Internet drops to zero every couple minutes waterox Linux - Software 1 05-10-2007 08:49 PM
X Crashes every couple of minutes TheSource Linux - Software 4 02-20-2006 01:42 AM
Firefox 1.5 keeps refreshing every couple of minutes Navyblue Linux - Software 4 12-30-2005 12:34 PM
Power Saving on, but HD spins up every couple of minutes DocKarl Linux - Hardware 1 01-11-2004 10:59 PM

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

All times are GMT -5. The time now is 12:23 PM.

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