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.
DHCP Server Service?
-
- Posts: 1
- Joined: Wed Jun 02, 2010 1:58 pm
Re: DHCP Server Service?
Me, too. Also for the 5270. Surely someone has done this, no?
- Chris Ruff
- Posts: 222
- Joined: Thu Apr 24, 2008 4:09 pm
- Location: topsail island, nc
- Contact:
Re: DHCP Server Service?
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
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
Re: DHCP Server Service?
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.
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.
- Chris Ruff
- Posts: 222
- Joined: Thu Apr 24, 2008 4:09 pm
- Location: topsail island, nc
- Contact:
Re: DHCP Server Service?
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
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
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand
Re: DHCP Server Service?
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
Scott