[ipxe-devel] [gPXE] executing in memory gpxe script
Larry Brigman
larry.brigman at gmail.com
Tue Jul 26 15:47:06 UTC 2011
On Tue, Jul 26, 2011 at 8:08 AM, Michael Brown <mbrown at fensystems.co.uk>wrote:
> On Tuesday 26 Jul 2011 15:51:32 Larry Brigman wrote:
> > The sanboot option will help reduce the script size. I still need a way
> to
> > assign a static address via a grub provided script.
>
> On Tuesday 26 Jul 2011 15:55:14 Larry Brigman wrote:
> > In this environment I cannot use dhcp. Must have a static address.
>
> You need the "set" command, which is documented at
>
> http://ipxe.org/cmd/set
>
> I would suggest something like:
>
> kernel /boot/ipxe.lkrn \
> ifopen net0 && \
> set net0/ip 192.168.0.3 && \
> set net0/netmask 255.255.255.0 && \
> set net0/gateway 192.168.0.1 && \
> chain http://my.server/my.script
>
> Note this probably has to appear on one single line within the grub
> configuration file; I don't think grub allows you to use backslash
> continuation.
>
> Michael
>
> That just the ticket. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20110726/80679f93/attachment.htm>
More information about the ipxe-devel
mailing list