[ipxe-devel] [gPXE] how to use gpxe w/o dhcp

Michael Brown mbrown at fensystems.co.uk
Wed Nov 9 15:12:15 UTC 2011


On Tuesday 08 Nov 2011 16:55:00 Yixuan Huang wrote:
> Sorry, I am not catching your mean.  Here I have no DHCP server, and my
> client which I want to boot from gpxe cannot get any ip address, so how can
> I set my client, then connect remote server which store kernel. Does there
> has a command or in script I can type ip address for that client, like
> ifconfig under unix/linux. After I config ip, then I can connect server and
> get anything I want.

You need to use the "set" command:

  http://ipxe.org/cmd/set

This will allow you to configure an IP address without using DHCP.  You will 
also need to open the network interface using the "ifopen" command:

  http://ipxe.org/cmd/ifopen

and download and boot something using the "chain" command:

  http://ipxe.org/cmd/chain

Once you've worked out the commands that you need, you can create an iPXE 
embedded script; see

  http://ipxe.org/scripting

Note that most of these features are not supported by gPXE (which is a dead 
project); the first thing that you should do is upgrade to iPXE.

Michael



More information about the ipxe-devel mailing list