DHCP Server Service?

Discussion to talk about software related topics only.
Post Reply
User avatar
mx270a
Posts: 80
Joined: Tue Jan 19, 2010 6:55 pm

DHCP Server Service?

Post 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.
Jack Swanton
Posts: 1
Joined: Wed Jun 02, 2010 1:58 pm

Re: DHCP Server Service?

Post by Jack Swanton »

Me, too. Also for the 5270. Surely someone has done this, no?
User avatar
Chris Ruff
Posts: 222
Joined: Thu Apr 24, 2008 4:09 pm
Location: topsail island, nc
Contact:

Re: DHCP Server Service?

Post 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
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
User avatar
pbreed
Posts: 1091
Joined: Thu Apr 24, 2008 3:58 pm

Re: DHCP Server Service?

Post 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.
User avatar
Chris Ruff
Posts: 222
Joined: Thu Apr 24, 2008 4:09 pm
Location: topsail island, nc
Contact:

Re: DHCP Server Service?

Post 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. :shock:

Chris
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
sblair
Posts: 162
Joined: Mon Sep 12, 2011 1:54 pm

Re: DHCP Server Service?

Post 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
Post Reply