<div class="gmail_quote">On Tue, Jul 26, 2011 at 8:47 AM, Larry Brigman <span dir="ltr"><<a href="mailto:larry.brigman@gmail.com">larry.brigman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><div class="gmail_quote">On Tue, Jul 26, 2011 at 8:08 AM, Michael Brown <span dir="ltr"><<a href="mailto:mbrown@fensystems.co.uk" target="_blank">mbrown@fensystems.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>On Tuesday 26 Jul 2011 15:51:32 Larry Brigman wrote:<br>
> The sanboot option will help reduce the script size. I still need a way to<br>
> assign a static address via a grub provided script.<br>
<br>
</div>On Tuesday 26 Jul 2011 15:55:14 Larry Brigman wrote:<br>
> In this environment I cannot use dhcp. Must have a static address.<br>
<br>
You need the "set" command, which is documented at<br>
<br>
<a href="http://ipxe.org/cmd/set" target="_blank">http://ipxe.org/cmd/set</a><br>
<br>
I would suggest something like:<br>
<br>
kernel /boot/ipxe.lkrn \<br>
ifopen net0 && \<br>
set net0/ip 192.168.0.3 && \<br>
set net0/netmask 255.255.255.0 && \<br>
set net0/gateway 192.168.0.1 && \<br>
chain <a href="http://my.server/my.script" target="_blank">http://my.server/my.script</a><br>
<br>
Note this probably has to appear on one single line within the grub<br>
configuration file; I don't think grub allows you to use backslash continuation.<br>
<font color="#888888"><br>
Michael<br>
<br>
</font></blockquote></div></div></div>That just the ticket. Thanks.<br>
</blockquote></div>Is there some options that need to be set inside of ipxe to allow the command-line to take like the embedded script?<br>How do you determine what is in the embedded script?<br><br><br>