Hi,

I have this too, you can do this by writing into the netif ip address directly 
before starting dhcp (dhcp_start).
There is a bit of problem though, if the DHCP server offers an address equals 
to the static address and ,
and after offering does acheck through ARP, your device will answer and the
DHCP will fail.. 

Ikhwan

Date: Tue, 16 Dec 2008 10:10:11 +0100
From: [email protected]
To: [email protected]
Subject: [lwip-users] fixed IP and DCHP on the same net interface?

Hi all
I tested a network camera, which seems work in this way:
it has a DHCP client inside, which starts on power on. But until an IP from 
DHCP server is available, it answers on fixed ip (i.e. 192.168.1.3)

Can i do the same using lwip?
I tried to bring up an interface with fixed IP and after start DHCP, but it 
doesn't work: i didn't receive a new ip address from DHCP server.

I saw DHCP traffic using wireshark: in normal situation, DHCP client sends 
packet from 0.0.0.0 to broadcast, and the server answers, in my situation i 
have DHCP request from 192.168.1.3 to broadcast...
i suppose this could be the problem
Any idea??
Thanks,Piero
_________________________________________________________________
You live life online. So we put Windows on the web. 
http://clk.atdmt.com/MRT/go/127032869/direct/01/
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to