Personally, I like to do a dhcp_release prior to switching over to static IP mode since it always tries to acquire a DHCP address once you’ve defined USE_DHCP. You can step through and see what dhcp_release and then ifconfig return and see if there are any errors when you are trying to configure things. If you had a packet sniffer setup, you would be able to see the Rabbit announce itself to the network and know what IP address it was using.
From: Steve
Trigero
[mailto:s...@yahoo.com]
Sent: Monday, January 31, 2005
3:52 PM
To:
r...@yahoogroups.com
Subject: RE: [rabbit-semi] Using
Static IP mode
Perhaps its the way I'm initializing the Rabbit
for
Static IP mode.
This is my initialization code:
#define IFCONFIG_ETH0 \
IFS_DOWN, \
IFS_DHCP, 0, \
IFS_IPADDR, static_ip_adrs, \
IFS_NETMASK,
net_mask
init_enet()
{
if( first_time )
ifconfig(
IF_DEFAULT,
IFS_DHCP, 0,
IFS_IPADDR, static_ip_adrs,
IFS_NETMASK, net_mask,
IFS_END );
first_time =
0;
else { // Do this 5-seconds
later..
pd_havelink( 0
){
if ( use_dhcp
) {
// do DHCP init
}
else
{
ifconfig( IF_DEFAULT,
IFCONFIG_ETH0,
IFS_UP,
IFS_END );
}
}
}
}
--- Steve Trigero <s...@yahoo.com>
wrote:
>
> --- Dave Moore
<d...@questcontrols.com> wrote:
>
> > When do you get the message? When
you try to
> telnet
> > into the Win98 box or
> > something?
>
> I'm using a Visual Basic application to
connect to
> the
> Rabbit. When it issues the
"Connect" command is when
> I
> get the error message.
>
> Steve
>
>