Why NetworkManager reports ip-config-unavailable?
Environment
- RedHat Enterprise Linux(7 and above)
- kernel
3.10.0-327.el7.x86_64
and above - NetworkManager
Issue
-
Why NetworkManager reports ip-config-unavailable?
-
Error shows while adding ip address:
May 14 09:11:14 servera NetworkManager[675]: <info> (ens8): device state change: ip-config -> secondaries (reason 'ip-config-unavailable') [70 90 5]
May 14 09:03:27 serverb NetworkManager[695]: <info> [1684047807.5263] device (ens9): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
-
Unable to add an IP address.
-
dhcp lease failed
Resolution
The NetworkManager
reports ip-config-unavailable
on two reasons and are mentioned below:
-
When ipv4.method is set to
disabled
, follow below steps to allow NetworkManager to configure the IPs viaauto
of manual.Method 1:
nmcli connection modify <con-name> ipv4.method auto nmcli connection up <con-name>
Method 2:
nmcli connection modify <con-name> ipv4.method manual ipv4.address <IP>/subnet nmcli connection up <con-name>
-
When ipv4.method is
auto
, then a faileddhcp
lease could also trigger these warnings. Check for any dhcp lease issues with dhcp server.
Root Cause
-
The
ipv4.method
is disabled for the connection henceno ipv4 configuration is available
for the interface. This restricts the access to add the IP address. When changing the ipv4.method toauto
ormanual
, then onwards it allows making changes in the IP address for the interface. -
Failed dhcp lease could trigger these warning.
Diagnostic Steps
-
Check logs for the interface
cat /var/log/messages | grep ens8 | tail -n 1 May 14 09:11:14 servera NetworkManager[675]: <info> (ens8): device state change: ip-config -> secondaries (reason 'ip-config-unavailable') [70 90 5]
cat /var/log/messages | grep ens8 | tail -n 1 May 14 09:03:27 serverb NetworkManager[695]: <info> [1684047807.5263] device (ens9): state change: ip- config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
-
Check if the interface has disabled the ipv4.method or not.
[root@servera ~]# nmcli connection show ens8 | grep ipv4.method ipv4.method: disabled<-------
[root@serverb ~]# nmcli connection show ens9 | grep ipv4.method ipv4.method: disabled<-------
-
Check if
dhcp lease
failed:Nov 11 07:36:51 xyz.com NetworkManager[1024]: <info> [1731328611.3903] dhcp4 (bond0): activation: beginning transaction (timeout in 45 seconds) Nov 11 07:37:00 xyz.com NetworkManager[1024]: <info> [1731328620.6556] audit: op="connections-load" args="/etc/sysconfig/network-scripts/ifcfg-bond0" pid=1478 uid=0 result="success" Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.6129] device (bond0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <warn> [1731328656.6134] device (bond0): Activation: failed for connection 'bond0' Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.6741] device (bond0): detached bond port enp1s0 Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.7914] device (bond0): detached bond port enp9s0 Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.8518] device (bond0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.8549] dhcp4 (bond0): canceled DHCP transaction Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.8549] dhcp4 (bond0): activation: beginning transaction (timeout in 45 seconds) Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.8549] dhcp4 (bond0): state changed no lease Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.8753] device (bond0): state change: disconnected -> unmanaged (reason 'user-requested', sys-iface-state: 'managed') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.8756] policy: auto-activating connection 'bond0' (1df4d00c-2760-4ca6-8d6c-90d58240b5df) Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.9434] device (bond0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.9437] device (bond0): state change: unavailable -> disconnected (reason 'user-requested', sys-iface-state: 'managed') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.9439] device (bond0): Activation: starting connection 'bond0' (1df4d00c-2760-4ca6-8d6c-90d58240b5df) Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.9440] device (bond0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.9459] device (bond0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') Nov 11 07:37:36 xyz.com NetworkManager[1024]: <info> [1731328656.9461] device (bond0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed') Nov 11 07:37:37 xyz.com NetworkManager[1024]: <info> [1731328657.1270] device (bond0): attached bond port enp1s0 Nov 11 07:37:37 xyz.com NetworkManager[1024]: <info> [1731328657.2419] device (bond0): attached bond port enp9s0 Nov 11 07:37:39 xyz.com NetworkManager[1024]: <info> [1731328659.3461] device (bond0): carrier: link connected Nov 11 07:37:39 xyz.com NetworkManager[1024]: <info> [1731328659.3463] dhcp4 (bond0): activation: beginning transaction (timeout in 45 seconds) Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.6132] device (bond0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <warn> [1731328704.6143] device (bond0): Activation: failed for connection 'bond0' Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.6810] device (bond0): detached bond port enp1s0 Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.7986] device (bond0): detached bond port enp9s0 Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.8564] device (bond0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.8629] dhcp4 (bond0): canceled DHCP transaction Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.8629] dhcp4 (bond0): activation: beginning transaction (timeout in 45 seconds) Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.8629] dhcp4 (bond0): state changed no lease Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.8775] device (bond0): state change: disconnected -> unmanaged (reason 'user-requested', sys-iface-state: 'managed') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.8778] policy: auto-activating connection 'bond0' (1df4d00c-2760-4ca6-8d6c-90d58240b5df) Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.9558] device (bond0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.9561] device (bond0): state change: unavailable -> disconnected (reason 'user-requested', sys-iface-state: 'managed') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.9563] device (bond0): Activation: starting connection 'bond0' (1df4d00c-2760-4ca6-8d6c-90d58240b5df) Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.9564] device (bond0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.9567] device (bond0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') Nov 11 07:38:24 xyz.com NetworkManager[1024]: <info> [1731328704.9568] device (bond0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed') Nov 11 07:38:25 xyz.com NetworkManager[1024]: <info> [1731328705.1516] device (bond0): attached bond port enp1s0 Nov 11 07:38:25 xyz.com NetworkManager[1024]: <info> [1731328705.2662] device (bond0): attached bond port enp9s0 Nov 11 07:38:27 xyz.com NetworkManager[1024]: <info> [1731328707.3535] device (bond0): carrier: link connected Nov 11 07:38:27 xyz.com NetworkManager[1024]: <info> [1731328707.3537] dhcp4 (bond0): activation: beginning transaction (timeout in 45 seconds) Nov 11 07:39:12 xyz.com NetworkManager[1024]: <info> [1731328752.6130] device (bond0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
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