ppp connection parameters in runtime

I use of keil network component v 7.10

I use both ppp conection and ethernet interface ,i need to be able to choose which interface to use as gateway ,

currently I can select defult gateway in precompiling mode with PPP_DEFULT_GW value , but I need to change  defulte gateway by user in runtime 

More questions in this forum