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.
Hi,

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:
Code:
dhcp
kernel http://fileserver/images/kernel
initrd  http://fileserver/images/initrd.gz
imgargs kernel earlyprintk netconsole=4444@10.0.0.1/eth1,9353@10.0.0.2/${gateway-mac}
boot

[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