Home/Support/Support Forum/Change IP with out reboot?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Change IP with out reboot?

0 votes
Change IP with out reboot? this is posible to digi connect me hardware?
I foun only 1 solution of use NVRAM and remove power.
asked Jan 16, 2007 in NET+OS by still_est New to the Community (0 points)

Please log in or register to answer this question.

4 Answers

0 votes
There is a public configuration function to set up a socket: int ll_config(char *devname, u32 ipaddr, u32 netmask, unsigned mtu, u32 ospfarea);

I have used this API to configure the ethernet port to defaults if I get stuck in applicationTcpDown:
ll_config("eth0", DEFAULT_IP, DEFAULT_MASK, 0, 0);
This does not require a device reset, nor does it overwrite the boardparameters stored in NV memory.
answered Feb 27, 2007 by kfowler New to the Community (2 points)
0 votes
Is there such a function for Netos7.3. I'm also trying to change the IP without having to save to NVRAM and reboot.
answered Mar 20, 2008 by fyicc New to the Community (18 points)
0 votes
I have tried to use that ll_config() function but it does not seem to exist in NET+OS 7.3

I get an "undefined reference to `ll_config'" error.

Did anyone get any success?
answered Jun 5, 2008 by Jose New to the Community (16 points)
0 votes
I haven't done this yet, but I plan on it. I was looking at the IAM API in the API reference, and it seems like it would support switching out the IP without rebooting.

I haven't implemented it yet because suddenly my device no longer responds to HTTP requests, and I'm trying to figure out that first.
answered Jun 5, 2008 by nfgaida New to the Community (27 points)
...