What is NetworkManager-config-connectivity-redhat?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • NetworkManager-config-connectivity-redhat

Issue

  • What is NetworkManager-config-connectivity-redhat?

Resolution

What is NetworkManager-config-connectivity-redhat?

  • Refer to the description and 20-connectivity-redhat.conf.
$ rpm -qi NetworkManager-config-connectivity-redhat | grep Summary
Summary     : NetworkManager config file for connectivity checking via Red Hat servers
$ rpm -qi NetworkManager-config-connectivity-redhat | grep -A2 Description
Description :
This adds a NetworkManager configuration file to enable connectivity checking
via Red Hat infrastructure.
$ 
$ cat /usr/lib/NetworkManager/conf.d/20-connectivity-redhat.conf
# Enable connectivity checking for NetworkManager.
# See `man NetworkManager.conf`.
#
# Note that connectivity checking works badly with rp_filter set to
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
[connectivity]
enabled=true
uri=http://static.redhat.com/test/rhel-networkmanager.txt
response=OK
interval=300
$ 

NetworkManager accesses the uri to static.redhat.com with HTTP GET every 300 seconds.

  • How to check the connectivity.

When the HTTP GET succeeds, it logs:

NetworkManager[PID#]: <info>  [Epoch#] manager: NetworkManager state is now CONNECTED_GLOBAL

nmcli command shows:

$ nmcli networking connectivity 
full
$ 

When the HTTP GET fails, it logs :

NetworkManager[PID#]: <info>  [Epoch#] manager: NetworkManager state is now CONNECTED_SITE

nmcli command shows:

$ nmcli networking connectivity
limited
$ 

To disable the connection check, do either A or B below.

A. Remove the package.

# rpm -e NetworkManager-config-connectivity-redhat
# systemctl reload NetworkManager

B. Change interval=XXX in /usr/lib/NetworkManager/conf.d/20-connectivity-redhat.conf to interval=0 by editor.

# vi /usr/lib/NetworkManager/conf.d/20-connectivity-redhat.conf
# systemctl reload NetworkManager

More information

Refer to: Why is NetworkManager talking to static.redhat.com? Find out with bcc-tools!

Diagnostic Steps

  • How to check the access to the URL.
# tcpdump -i [interface_name] -nn host static.redhat.com 2>/tmp/stderr.log | grep HTTP

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments