Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statement based on IP address?
2014-02-04, 02:43
Post: #4
RE: If statement based on IP address?
What's going on is that I have four different data-centers with different subnets and I'm trying to come up with a single iPXE boot that I can distribute to hypervisors/bare-metal on each location/subnet and then have clients being built only "touch" the boot server on that subnet.

I'd like to have the logic built into my boot iPXE ISO that checks from which subnet the request originates and chain a dynamic iPXE script that I'll replicate to each subnet's boot server.

I currently have that logic on the dynamic script, so that depending on where the request for the script comes from, a different boot server is presented, but the various subnets are still coming back to the same boot server defined in the ISO.

I think I'll do what robinsmidsrod suggests but make the decision depending on the gateway assigned to the client. That should be different depending on the subnet.

I'll report back ...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: If statement based on IP address? - apitanga - 2014-02-04 02:43



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