Page 1 of 1
DHCP Server Service?
Posted: Tue Jan 19, 2010 7:00 pm
by mx270a
Greetings everyone. I would like to have a netburner function as a DHCP server. I'm curious if there is any DHCP server example code?
I have a Mod5270 development kit, if that is relevant.
Re: DHCP Server Service?
Posted: Wed Jun 02, 2010 2:10 pm
by Jack Swanton
Me, too. Also for the 5270. Surely someone has done this, no?
Re: DHCP Server Service?
Posted: Wed Jun 02, 2010 2:49 pm
by Chris Ruff
Issues with an embedded DHCP server
1. why would you want/need to do this?
2. I am sure no one has done this on NB because it is generally unnecessary.
3. It can, of course, be done. Easy. Fun. Get the RFC. study the offer packets. Store the table in FLASH. Get good with UDP Tx and Rx and go for it!
Chris
Re: DHCP Server Service?
Posted: Wed Jun 02, 2010 3:23 pm
by pbreed
This has been on the todo list for awhile.
It has not yet been done to my knowledge.
Chris the need is so you can walk up to an instrument with a netburner in it, plug in your laptop and
talk to the netburner without reconfiguring the laptop from its normal DHCP mode to static IP.
To be really useful one would also need to include DNS server capability so people could go to a specific
"name" rather than figure out what the netburner IP is.
Re: DHCP Server Service?
Posted: Wed Jun 02, 2010 3:39 pm
by Chris Ruff
How would it be configured....
Would it be in the NB system lib? Would it be turned on in the monitor? would it sense the offer packets and assume that it is a DHCP server? Would the user turn it on by compiling in the ON state in their code? Would it first try to get a DHCP lease before it would move to the DHCP server state?
...VXI-11 now requires a mini-DNS in each of the VXI-11/LXI approved instruments...
Sounds like fun. now if I just had the time.
Chris
Re: DHCP Server Service?
Posted: Wed Oct 05, 2011 2:08 pm
by sblair
Old topic, but just for others stumbling across this. This is a good reason to implement Auto-IP rather than your own DHCP server. Auto-IP will accomplish the functionality the OP was looking for. Implementing a DHCP server has lots of edge cases that need to be well handled and you always have to worry about ending up with 2 DHCP servers fighting over a network.....
Scott