UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
8,380 Views
Registered: ‎01-09-2009

DHCP using lwIP

Hi,

 

I am using XAPP1026 to use Ethernet for ML506 and ML605 boards. I was able to make the basic XAPP1026 work that uses static IP address. Now I need to enable DHCP. As you probably know XAPP1026 uses lwIP 1.3 and it is commonly used by Xilinx guys. There is a fuzzy comment in the standalone version of XAPP1026 code to do so, but it's not clear to me. It would be appreciated if someone could shed some lights on how to write a code to enable DHCP.

 

Thanks!

0 Kudos
5 Replies
Xilinx Employee
Xilinx Employee
8,358 Views
Registered: ‎08-01-2007

Re: DHCP using lwIP

A good place to start would be the LwIP manual. http://www.xilinx.com/support/documentation/sw_manuals/xilinx12_4/oslib_rm.pdf

 

A simple search on DHCP would list out the options that need to be set up. For example, options to turn off static IP addressing.

 

Hope this helps...

0 Kudos
Explorer
Explorer
8,351 Views
Registered: ‎01-09-2009

Re: DHCP using lwIP

Hi centaur19,

 

Thanks for pointing out this document. This document in part talks about lwIP library and its settings. I think I have to rephrase my question. I need advice to write a code to use DHCP functionality of lwIP. For example, what functions of lwIP do I need to call for DHCP, in what order, and so on?

 

Thanks!

0 Kudos
Xilinx Employee
Xilinx Employee
8,310 Views
Registered: ‎08-01-2007

Re: DHCP using lwIP

aminfar1,

 

I personally find that lwip wiki has more information when it comes to writing custom applications. For example this is the section I found on enabling DHCP in LwIP.

 

http://lwip.wikia.com/wiki/DHCP

 

Once you have this general idea, the Xilinx LwIP datasheet will give you the specific function calls to use.

 

Hope this helps ...

 

0 Kudos
Visitor sixinglu
Visitor
7,051 Views
Registered: ‎01-08-2014

Re: DHCP using lwIP

Do you solve this problem?
I follow the xapp1026 and http://lwip.wikia.com/wiki/DHCP , but it does not help.
Specifically, value of LWIP_DHCP cannot be changed.

Thank you!
0 Kudos
Observer mlhdev
Observer
7,035 Views
Registered: ‎01-12-2011

Re: DHCP using lwIP

sixinglu,

 

DHCP is enabled (default) or disabled via the board support package settings.  To change setting click on the lwip to configure library.  Then it is just necessary to include the proper calls in the code which I believe are shown in the xapp 1026 sample.

 

Mike

0 Kudos