Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statement based on IP address?
2014-01-30, 23:04
Post: #2
RE: If statement based on IP address?
There is no way to detect the subnet, and iPXE scripting doesn't have any logic bit operators. But you can use the address of the dhcp-server or the next-server (tftp server) variable from the DHCP server to make decisions depending on which IP it is. The better option would be to configure the DHCP server to give out the right URL to chainload directly in the "filename" variable from each DHCP server and then just handle the case where filename is not set at all as a special case.
Visit this user's website 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? - robinsmidsrod - 2014-01-30 23:04



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