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.
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
If statement based on IP address? - apitanga - 2014-01-23, 16:23
RE: If statement based on IP address? - robinsmidsrod - 2014-01-30 23:04
RE: If statement based on IP address? - Torgeir - 2014-02-02, 12:02
RE: If statement based on IP address? - apitanga - 2014-02-04, 02:43
RE: If statement based on IP address? - MultimediaMan - 2014-02-05, 00:21
|
User(s) browsing this thread: 3 Guest(s)