NetworkManager/tools
Beniamino Galvani c86d234516 nmcli: show the CLAT state
It is useful to show that the CLAT is enabled and which addresses and
prefix it is using. Add this information to the overview and to the
device/connection output. Example:

$ nmcli
  veth0: connected to clat
          "veth0"
          ethernet (veth), 4A:37:01:56:9D:AE, sw, mtu 1500
          ip4 default
          inet4 192.0.0.5/32
          route4 default metric 101
          inet6 2002:aaaa::64d4:2932:3585:7c89/64
          inet6 fe80::c060:8caf:f69b:e41a/64
          route6 fe80::/64 metric 1024
          route6 2002:aaaa::/64 metric 101
          route6 default via fe80::871:7ff:fe14:b7b9 metric 101
          clat inet4 192.0.0.5 inet6 2002:aaaa::2c0d:1e71:ef87:fac7 pref64 64:ff9b::/96

$ nmcli connection show clat
   ...
  IP4.ADDRESS[1]:                         192.0.0.5/32
  IP4.GATEWAY:                            0.0.0.0
  IP4.ROUTE[1]:                           dst = 0.0.0.0/0, nh = 0.0.0.0, mt = 101
  IP4.CLAT-ADDRESS:                       192.0.0.5
  IP6.ADDRESS[1]:                         2002:aaaa::64d4:2932:3585:7c89/64
  IP6.ADDRESS[2]:                         fe80::c060:8caf:f69b:e41a/64
  IP6.GATEWAY:                            fe80::871:7ff:fe14:b7b9
  IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024
  IP6.ROUTE[2]:                           dst = 2002:aaaa::/64, nh = ::, mt = 101
  IP6.ROUTE[3]:                           dst = ::/0, nh = fe80::871:7ff:fe14:b7b9, mt = 101
  IP6.CLAT-ADDRESS:                       2002:aaaa::2c0d:1e71:ef87:fac7
  IP6.CLAT-PREF64:                        64:ff9b::/96

Note how the IPv4 CLAT address is displayed both in IP4.ADDRESS and
IP4.CLAT-ADDRESS. That's because it is also configured in kernel. The
IPv6 CLAT address is not displayed in IP6.ADDRESS because it's not
configured in kernel.
2026-02-06 10:38:04 +01:00
..
nm-guest-data all: remove misc mentions of autotools in docs 2024-09-11 12:18:15 +00:00
check-compare-generated.sh build: pass both filenames to "tools/check-compare-generated.sh" script 2022-10-31 09:11:30 +01:00
check-config-options.sh all: move "src/" directory to "src/core/" 2021-02-04 09:45:55 +01:00
check-docs.sh all: avoid "==" bashism in scripts 2023-05-18 09:16:41 +02:00
check-exports.sh tools/check-exports.sh: use ${NM} when available 2015-09-24 16:28:15 +02:00
check-gitlab-ci.sh tools: improve detection of "ci-fairy" command in "tools/check-gitlab-ci.sh" 2020-12-11 16:08:47 +01:00
check-nm-autoptr.sh build: add test for checking consistency of "nm-autoptr.h" 2023-02-28 16:33:07 +01:00
check-tree.sh build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
check-vapi.sh vapi: add test for consistency of "vapi/NM-1.0.metadata" 2023-02-28 13:05:47 +01:00
create-exports-NetworkManager.sh build: remove autotools leftovers 2025-09-08 10:46:44 +00:00
debug-helper.py all: reformat python files with python black 2020-06-15 16:40:38 +02:00
enums-to-docbook.pl update DocBook DTD version to latest stable 4.5 2024-04-22 12:06:16 +00:00
generate-docs-nm-property-infos.py ip-config: Fix the nmcli docs for the renamed dhcp-send-hostname 2024-10-24 17:03:10 -04:00
generate-docs-nm-settings-docs-gir.py meson: Fix docs generation with PyGObject 3.52 2025-03-31 12:04:43 +00:00
generate-docs-nm-settings-docs-merge.py ip-config: Fix the nmcli docs for the renamed dhcp-send-hostname 2024-10-24 17:03:10 -04:00
generate-docs-settings-docs.py doc: preserve paraghraphs in nmcli man pages 2022-07-15 17:25:15 +02:00
meson-dist-data.sh CI: fix meson tarball testing with old meson version 2024-04-04 08:17:26 +02:00
meson-post-install.sh build: make manpages a mandatory part of the build by default 2025-05-30 09:42:55 +00:00
nm-in-container build: remove autotools leftovers 2025-09-08 10:46:44 +00:00
nm-in-vm typo fix: allows to -> allows one to 2025-03-26 19:22:01 +01:00
nm-to-rhcos tools: add nm-to-rhcos script to our toolset 2024-07-08 13:50:52 +02:00
run-nm-test.sh build: remove autotools leftovers 2025-09-08 10:46:44 +00:00
test-cloud-meta-mock.py test/cloud-meta-mock: do not print what we listen on if we got a FD 2025-01-20 14:08:12 +01:00
test-networkmanager-service.py nmcli: show the CLAT state 2026-02-06 10:38:04 +01:00
test-sudo-wrapper.sh build: remove autotools leftovers 2025-09-08 10:46:44 +00:00