[gPXE] Variable for 'current' nic?

Joshua Oreman oremanj at rwcr.net
Mon May 3 10:41:25 EDT 2010


On Mon, May 3, 2010 at 10:35 AM, Jarrod Johnson
<jarrod.b.johnson+gpxe at gmail.com> wrote:
> If gPXE instance sees, for example, net0 and net1, putting ${mac} on the
> imgarg always does ${net0/mac}, even if net1 was the device that
> successfully started the boot process.  Is there a strategy to get the mac
> address for whichever nic successfully boots if you don't know which one it
> will be in advance?

As of fairly recently in gPXE, you can say ${netX/mac} and get the mac
variable for the last-opened network device.

-- Josh

>
> _______________________________________________
> gPXE mailing list
> gPXE at etherboot.org
> http://etherboot.org/mailman/listinfo/gpxe
>
>


More information about the gPXE mailing list