|
From: | Muhamad Ikhwan Ismail |
Subject: | RE: [lwip-users] fixed IP and DCHP on the same net interface? |
Date: | Tue, 16 Dec 2008 14:37:08 +0000 |
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: address@hidden To: address@hidden 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. Learn more about Windows Live |
[Prev in Thread] | Current Thread | [Next in Thread] |