Translated message

A translation of this page exists in English.

Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

カーネルで IPv6 が無効になっているときに、NetworkManager が IPv6 関連の警告を報告する理由は?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux (RHEL) 7 以降
  • NetworkManager
  • IPv6

Issue

  • カーネルで IPv6 が無効になっているときに、NetworkManager が IPv6 関連の警告を報告する理由は?
NetworkManager[5621]: <warn>  [1657217781.6789] platform-linux: do-add-ip6-address[2001:db8::]: failure 95 (Operation not supported)
NetworkManager[5621]: <warn>  [1657217781.6789] platform-linux: do-add-ip6-address[2001:db8::]: failure 95 (Operation not supported)
NetworkManager[5621]: <warn>  [1657217781.6789] platform-linux: do-add-ip6-address[2001:db8::]: failure 95 (Operation not supported)

Resolution

NetworkManager 接続で IPv6 を無効にし、インターフェイスをバウンスします。次のコマンドは、接続で IPv6 を無効にし、インターフェイスをバウンスします。

#nmcli con mod <conection name> ipv6.method disabled
#nmcli con down <conection name> 
#nmcli con up <conection name> 

Root Cause

NetworkManager は IPv6 アドレスを設定しようとします。これは、既存の NetworkManager 接続で IPv6 が有効になっているからです。しかし、カーネルレベルでは IPv6 サポートが完全に無効になっているため、上記の警告が表示されます。

Diagnostic Steps

  • カーネルで IPv6 が無効になっているか確認します。
  • NetworkManager 接続で IPv6 が有効になっているか確認します。

次の例は、NetworkManager で link-local として有効になっている IPv6 を示しています。

[root@node2.example.com~]# egrep  -o 'ipv6.disa[^ ]*' /proc/cmdline
ipv6.disable=1

[root@node2.example.com ~]# nmcli connection show enp1s0  | grep  ipv6.method
ipv6.method:                             link-local

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