iPXE discussion forum

Full Version: linux netconsole, macaddr of next hop
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I'm looking to use netconsole[1] for logging the early boot of linux machines.
Is it possible to get the MAC address of the gateway ip into a settings variable?

The netconsole network config very basic and requires the MAC address of the next hop if the destination machine is not on the same network as the log producing machine.

Here's an example of what I'd like to do:
kernel http://fileserver/images/kernel
initrd  http://fileserver/images/initrd.gz
imgargs kernel earlyprintk netconsole=4444@,9353@${gateway-mac}

[1] https://www.kernel.org/doc/Documentation...onsole.txt
There is nothing currently in iPXE that makes it possible to get the gw MAC,
My best suggestion here is probably to make a roundtrip to a server that provides the mac.

But with that said, a cleanly implemented patch for this usecase would probably be accepted
Reference URL's