From 68426231a56161591bfc15afbd392320e6499c64 Mon Sep 17 00:00:00 2001 From: aalami90 <43780877+aalami90@users.noreply.github.com> Date: Thu, 16 Nov 2023 00:21:01 +0100 Subject: [PATCH] [cli] adding set ipv4 CIDR for NAT64 in README (#9511) --- src/cli/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/cli/README.md b/src/cli/README.md index 9bc0ffb3e..16034a228 100644 --- a/src/cli/README.md +++ b/src/cli/README.md @@ -2341,6 +2341,21 @@ Gets the IPv4 configured CIDR in the NAT64 translator. Done ``` +### nat64 cidr \ + +Sets the IPv4 CIDR in the NAT64 translator. + +Note: + +- `OPENTHREAD_CONFIG_NAT64_TRANSLATOR_ENABLE` is required. +- A valid CIDR must have a non-zero prefix length. +- When updating the CIDR, NAT64 translator will be reset and all existing sessions will be expired. + +```bash +> nat64 cidr 192.168.100.0/24 +Done +``` + ### nat64 disable Disable NAT64 functions, including the translator and the prefix publishing.