# IP Address stuck at default

**URL:** <https://forums.digi.com/t/ip-address-stuck-at-default/10757>\
**Category:** Rabbit\
**Created:** [March 11, 2007, 7:52pm UTC](https://forums.digi.com/t/ip-address-stuck-at-default/10757 "2007-03-11T19:52:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lslarry861](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@lslarry861](https://forums.digi.com/u/lslarry861)\
**Post date:** [March 11, 2007, 7:52pm UTC](https://forums.digi.com/t/ip-address-stuck-at-default/10757/1 "2007-03-11T19:52:35Z")

</div>

Hello,

My ethernet interface is stuck at the default, 10.10.6.100, even after using ifconfig to set it. I am using DynamicC 9.50 on a board type 0x1409, 44MHZ RCM3315. I’ve been using Rabbit since last summer, and have not had this problem before, but this is my first project with the 3315. Before posting here, I searched forums and the Internet with no luck.

Here’s my code:

#define USE\_ETHERNET 1  
#define USE\_RABBITWEB 1  
#define SSPEC\_MAX\_OPEN 4  
#define TCP\_BUF\_SIZE 1024  
#define UDP\_BUF\_SIZE 1024  
#define TCPCONFIG 1  
#define IP\_MAXOFFSET 512  
#define FTP\_MAXLINE 1024  
#define USE\_HTTP\_BASIC\_AUTHENTICATION 1  
#use “dcrtcp.lib”  
#use “net.lib”

in main():

```
i = ifconfig (IF_ETH0, IFS_DOWN, IFS_END) ;
while (ifpending(IF_ETH0))
	;
i = ifconfig (IF_ETH0,
          IFS_IPADDR, aton("10.10.6.95"), //(IPAd),
          IFS_NETMASK, aton(NetMask),
          IFS_UP,
          IFS_END);
sock_init () ;
while(1)
	tcp_tick (NULL) ;

```

That’s pretty minimal. When this runs, I can PING 10.10.6.100 (the default) but not 10.10.6.95 (what I set). Variable i is always 0.

If anyone has an idea about this problem, I’d appreciate it.

Thanks,  
Larry Martin  
[Larry@GlueLogix.com](mailto:Larry@GlueLogix.com)

---

<div class="post-metadata">

**Author:** ![lslarry861](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@lslarry861](https://forums.digi.com/u/lslarry861)\
**Post date:** [April 10, 2007, 3:23am UTC](https://forums.digi.com/t/ip-address-stuck-at-default/10757/2 "2007-04-10T03:23:50Z")

</div>

Rabbit Tech Support came through with the answer on this one:

1: #define TCPCONFIG 0

2: Call sock\_init() before ifconfig().

3: Change the syntax of ifpending AND call tcp\_tick to keep the stack going:  
while (ifpending(IF\_DEFAULT) == IF\_COMING\_DOWN)  
tcp\_tick (NULL) ; ;

Larry
