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
If statement based on IP address?
2014-01-23, 16:23
Post: #1
If statement based on IP address?
Is there a variable for subnet? I'm trying to point to different chain scripts depending on the subnet from which the request originates.

Something like this:

Code:
#!ipxe
dhcp
goto ${subnet} || goto unknown
:192.168.0.0
chain http://server1/boot.ipxe
:172.29.28.0
chain http://server1/boot.ipxe
:unknown
boot tftp://server3/pxelinux.0
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
If statement based on IP address? - apitanga - 2014-01-23 16:23



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