Hello Jaroslav,
Unfortunately we don't have an example like you need, however you can use the below example as guide.
How to Create a PPP Connection with MQX4.2 and Win 7
It is necessary to set following macros to 0 in <board>.h file to disable checksum calculation by ENET module:
#define BSPCFG_ENET_HW_TX_IP_CHECKSUM 0
#define BSPCFG_ENET_HW_TX_PROTOCOL_CHECKSUM 0
#define BSPCFG_ENET_HW_RX_IP_CHECKSUM 0
#define BSPCFG_ENET_HW_RX_PROTOCOL_CHECKSUM 0
In addition, you have to use 'natinit' for both PPP network and private network. For example you can use the following steps to config for board:
ipconfig 0 initi
pconfig 0 ip 192.168.1.105 255.255.255.0 192.168.1.1
ppp listen ittyd: public abcd 192.168.0.1 192.168.0.217
natinit 192.168.1.1 255.255.255.0
natinit 192.168.0.1 255.255.255.0
dnat 1 TCP 21 21 192.168.1.92 21
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------