[syslinux] KEEPPXE/DOS

H. Peter Anvin hpa at zytor.com
Sun Dec 30 13:02:39 PST 2007


Murali (முரளி கணபதி) wrote:
> If all you want is "ip=<client-ip>:<boot-server-ip>:<gw-ip>:<netmask>"
> information in DOS, you can try running getargs.com from
> http://www.mahamurali.net/downloads. It outputs a DOS batch file which
> when executed sets the variable FOO to "bar", whenever "FOO=bar"
> appears in the memdisk command line.
> 
> For eg.,
> if you add
> 
> getargs.com > setvars.bat
> setvars.bat
> 
> to your autoexec.bat, you should have a variable called IP whose value
> is <client-ip>:<boot-server-ip>:<gw-ip>:<netmask>. Once you have this
> information, can't you just set up a STATIC IP with the given
> particulars. You probably need to some shell scripting to pull out the
> various parts and create your configuration files.
> 

This works, except that nothing is going to renew your DHCP lease, so 
you may eventually have a problem with that, depending on your lease 
lengths.

	-hpa




More information about the Syslinux mailing list