Hi Yixuan,<br><br>Say it quite simple, you need to read gPXE documentation and you need to create a script which will be loaded.<br>As gPXE will do 'autoboot' and there are procedures (get dhcp etc), you need to replace it with your settings as, enable ethernet, set ip, read a file or read source.<br>
Probably you need to compile your own version of gPXE as well.<br><br>This is my own example. I would read documentation first.<br><br>Regards,<br>Slawek<br><br><div class="gmail_quote">W dniu 8 listopada 2011 16:55 użytkownik Yixuan Huang <span dir="ltr"><<a href="mailto:yixuan178@gmail.com">yixuan178@gmail.com</a>></span> napisał:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello Gene,<br>Thanks for your reply. <br>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. <br>
<br clear="all">Thanks,<br>yixuan<div class="HOEnZb"><div class="h5"><br>
<br><br><div class="gmail_quote">On Tue, Nov 8, 2011 at 2:28 AM, Gene Cumm <span dir="ltr"><<a href="mailto:gene.cumm@gmail.com" target="_blank">gene.cumm@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Mon, Nov 7, 2011 at 00:41, Yixuan Huang <<a href="mailto:yixuan178@gmail.com" target="_blank">yixuan178@gmail.com</a>> wrote:<br>
> Hello Everyone,<br>
> I have one question, if my environment doesn't have dhcp server, how can I<br>
> set ip for gpxe and load remote kernel?<br>
><br>
> Thanks,<br>
> yixuan<br>
<br>
<br>
</div></div>Yes, you can embed a script into gPXE. If a static script is<br>
insufficient, you can have a static script in gPXE reference a static<br>
or dynamic script generated from an HTTP server. You could include<br>
attributes like UUID, NIC MAC address, and IP as portions of the URL<br>
when fetching the HTTP generated script.<br>
<span><font color="#888888"><br>
--<br>
-Gene<br>
</font></span></blockquote></div><br>
</div></div><br>_______________________________________________<br>
gPXE mailing list<br>
<a href="mailto:gPXE@etherboot.org">gPXE@etherboot.org</a><br>
<a href="http://etherboot.org/mailman/listinfo/gpxe" target="_blank">http://etherboot.org/mailman/listinfo/gpxe</a><br>
<br></blockquote></div><br>