The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unique root path for each IP?
2014-07-18, 17:32
Post: #1
unique root path for each IP?
Hi folks. This is actually a ISC DHCP server question but I wonder if someone here may have dealt with the same issue and know the solution.

I have a bed of diskless clients which boot over iSCSI using iPXE. Each client receives an IP and root path from the DHCP server, the root path points to a unique iSCSI target. The way this is implemented in the DHCP server today is to statically pair the IP and root path with each client’s MAC address, for example:

host initiator1 {
hardware ethernet 00:0C:29:A8:93Big GrinF;
fixed-address 10.0.0.1;
filename "";
option root-path "iscsi:initiator1.example.com::::target00";
}

The downside of this is that I have to know the MAC of every client. I don’t actually care which client gets which IP or which target, all clients are identical, so as long as they all get a unique IP and target not given to any other client at the same time I’m good. Ideally I would just like to pair the IPs and targets, since the DHCP server already handles keeping IPs unique a 1:1 pairing with targets will also ensure targets are unique. Is it possible to set up dhcpd.conf to do something like this:

When issuing 10.0.0.10 issue root path "iscsi:initiator1.example.com::::target10"
When issuing 10.0.0.11 issue root path "iscsi:initiator1.example.com::::target11"

When issuing 10.0.0.95 issue root path "iscsi:initiator1.example.com::::target95"


Or even more compact, can we do something like this:

When issuing 10.0.0.X issue root path "iscsi:initiator1.example.com::::targetX"

Thanks,
Joe
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
unique root path for each IP? - jrgruher - 2014-07-18 17:32



User(s) browsing this thread: 2 Guest(s)