[ipxe-devel] help ipxe script

deepfreeze zulinfi at 163.com
Tue Apr 26 02:45:37 UTC 2016


hi,
   ipxe
  I have a trouble
   in the ipxe script , I would get a val is the fourth segment value of  ip address, when dhcp , the client ip is 192.168.1.88,  can I get the "88" to set the hostname val is "pc-88"?


你好,
    原谅我的蹩脚英文.
    我想问的是如何在ipxe 的脚本文件中, 动态得到ip地址段的最后一节数值赋值给工作端hostname变量, 比如 192.168.1.88 ,最终hostname 是 pc-88   192.168.1.89 ,最终hostname 是 pc-89.






                                                                                    e-mail: zulinfi at 163.com   
                                                                                     2016/04/26
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20160426/1dd27b86/attachment.htm>


More information about the ipxe-devel mailing list