[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Fixed and dynamic IP simultaneously

From: Kindt, Jan
Subject: [lwip-users] Fixed and dynamic IP simultaneously
Date: Mon, 20 Mar 2006 17:01:28 +0100



Is it possible to have the one ethernet controller have a fixed and a dynamic IP address. I’m running lwIP-0.7.1.


I started with this : (with ipaddr, netmask & gw set to 0)



netif_add(&netif, &ipaddr, &netmask, &gw, (void*)dev_list_ptr, lan91c111if_init, ip_input);




This gives me an ip address from my dhcp server. I get ping replies from my device.


Then I added following lines.. (with ipaddr, netmast & gw set to the fixed addresses I want)


      netif_add(&netif, &ipaddr, &netmask, &gw, (void*)dev_list_ptr, lan91c111if_init, ip_input);


The DHCP client that was started is now unable to get a dynamic address and the fixed address doesn’t function also.


I’m sure that I’m doing things wrong. I just would like to have a pointer to where to search for a solution.


Best regards,



Jan Kindt
Sr. Electronic Engineer
Barco Projection | Presentation & Simulation
Noordlaan 5
8520 Kuurne
Tel: +32 56 368624



- - - - - - - DISCLAIMER- - - - - - - -

Unless indicated otherwise, the information contained in this message is privileged and confidential, and is intended only for the use of the addressee(s) named above and others who have been specifically authorized to receive it. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message and/or attachments is strictly prohibited. The company accepts no liability for any damage caused by any virus transmitted by this email. Furthermore, the company does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays. If you have received this message in error, please contact the sender and delete the message. Thank you.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]