Update Ip and port via Telnet

Greetings.

I’m doing a Telnet application with the RCM5700 module.

Is there any way to change the IP address and port via Telnet?

Anybody can give me an example?

Thanks

ifconfig(IF_ETH0,
IFS_IPADDR, aton(“10.10.1.97”),
IFS_NETMASK,aton(“255.255.255.0”),
IFS_ROUTER_SET, aton(“10.10.1.1”),
IFS_NAMESERVER_SET, aton(“10.1.1.1”),
IFS_NAMESERVER_ADD, aton(“10.1.1.1”) //,
IFS_UP,
IFS_END);