Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
linux netconsole, macaddr of next hop
2019-01-07, 22:19 (This post was last modified: 2019-01-08 00:38 by matthewconolly.)
Post: #1
linux netconsole, macaddr of next hop
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
Find all posts by this user
Quote this message in a reply
2019-01-08, 00:35
Post: #2
RE: linux netconsole, macaddr of next hop
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

Read FAQ before first post!
Are relevant ipxe.org error urls and PCIIDs included?
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)