[cli] adding set ipv4 CIDR for NAT64 in README (#9511)

This commit is contained in:
aalami90
2023-11-16 00:21:01 +01:00
committed by GitHub
parent 22fcb0effe
commit 68426231a5
+15
View File
@@ -2341,6 +2341,21 @@ Gets the IPv4 configured CIDR in the NAT64 translator.
Done
```
### nat64 cidr \<IPv4 address\>
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.