The EG912U AT command manual claims the AT+QCFG=“nat/cid” command can enable or disable use of NAT for particular PDP contexts. However:
AT+QCFG="nat/cid",0
AT+CGACT=1,1
still results in DHCP advertising the module’s NAT’ed IP address of 192.168.1.4
Is there some way to disable NAT?
Also, the AT+QCFG=“nat/subnet” command is supposed to allow one to assign the address the of the modem when using NAT. However, I cannot seem to get the syntax right:
AT+CMEE=2
OK
AT+QCFG="nat/cid",1
OK
AT+QCFG="nat/subnet",1
OK
AT+QCFG="nat/subnet",1,"192.168.12.4","255.255.255.0"
+CME ERROR: parameters are invalid
Can anyone provide a working example of setting the nat/subnet?
Refering to doc:
EC200U&EG800G&EG91xU&EG915G Series AT Commands Manual
Version 1.2 dated 2024-07-29