DHCP option 203
|
2012-10-09, 17:06
Post: #1
|
|||
|
|||
DHCP option 203
So, I need to base the IQN of my iPXE-booted initiators off of MAC addresses rather than uuid. I have multiple, identical hardware platforms, so the identical uuid is throwing off my iSCSI target software. I'm running dnsmasq on my network, and already have all the hardware mounting the iSCSI target and booting from it normally. I added the following to my dnsmasq.conf file:
dhcp-option=203,"iqn.2010-04.org.ipxe:${mac:hexhyp}" This sort of works, as every iPXE booted machine uses that exact string for the IQN. Is there any way to use the variable like you would in a script via DHCP instead? I'm not using a script at all, and I'd like every needed option to come from DHCP. |
|||
2012-10-10, 02:02
(This post was last modified: 2012-10-10 02:03 by mcb30.)
Post: #2
|
|||
|
|||
RE: DHCP option 203
(2012-10-09 17:06)digitalis99 Wrote: So, I need to base the IQN of my iPXE-booted initiators off of MAC addresses rather than uuid. I have multiple, identical hardware platforms, so the identical uuid is throwing off my iSCSI target software. I'm running dnsmasq on my network, and already have all the hardware mounting the iSCSI target and booting from it normally. I added the following to my dnsmasq.conf file: You'll need to use a script to get that behaviour. Use something like: Code: #!ipxe Michael |
|||
2012-10-10, 16:03
Post: #3
|
|||
|
|||
RE: DHCP option 203
Thanks. I figured out how to do it by script, I was just hoping to not have to hit the TFTP server a second time, since I'm chainloading iPXE. If script is the only method, then script it is.
|
|||
2012-10-10, 16:10
Post: #4
|
|||
|
|||
RE: DHCP option 203
(2012-10-10 16:03)digitalis99 Wrote: Thanks. I figured out how to do it by script, I was just hoping to not have to hit the TFTP server a second time, since I'm chainloading iPXE. If script is the only method, then script it is. You can embed the script within the iPXE binary: http://ipxe.org/embed Michael |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)