I have a linux machine which was booted via PXE.
Can I determine the network interface which was used for booting?
If assume you're using PXELINUX.
There's a flag IPAPPEND; if you set it to 2, it should cause PXELINUX to append a parameter BOOTIF=<hardware-address-of-boot-interface> to your kernel command line. Then you've got the MAC address, which you can use to identify the used interface.
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
1 year ago