Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a linux machine which was booted via PXE. Can I determine the network interface which was used for booting?

share|improve this question
add comment

1 Answer

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.

http://www.syslinux.org/wiki/index.php/SYSLINUX#IPAPPEND_flag_val_.5BPXELINUX_only.5D

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.