Hello,
When the device starts in DHCP mode, I use the NAIpAddress() to get the current IP used by the card.
My question is how to get the network mask and the gateway when it started in DHCP? Is there some function to do get this?
Thanks,
Paul
Hello,
When the device starts in DHCP mode, I use the NAIpAddress() to get the current IP used by the card.
My question is how to get the network mask and the gateway when it started in DHCP? Is there some function to do get this?
Thanks,
Paul
Paul,
In case you didn’t find it out already: I had the same problem and I solved it myself…
http://www.digi.com/support/forum/viewthread_thread,1536#5677
Michael
Paul,
Use the ACE API routine, customizeAceGetInterfaceAddrInfo().
This routine is listed in the NET+OS API documentation under the heading ACE API > ACE Callbacks.
The routine provides the network configuration, regardless of how the device obtained its address (static, DHCP, BOOTP, etc.). Information provided includes the assigned IP, netmask and gateway addresses.
Cameron
Hi Cameron,
Hi Eco,
Thanks a lot for your solutions, I will try these.
Paul