iPXE discussion forum
Tool for user selection of interface - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Tool for user selection of interface (/showthread.php?tid=21954)



Tool for user selection of interface - besthack - 2020-04-28 09:14

Hi,

I feel missing some useful tool like others (ifstat, lspci, etc): ifsel.
The idea is to print to the user the list of the detected interfaces and wait until s/he selects one to continue. This can be very useful for scripts. Then when starting inside a multi-nic device the user can select the prefered interface. Without this tool, the first interface with link will be used, but this can generate some troubles.

Please, consider this enhancement.
Regards.


RE: Tool for user selection of interface - NiKiZe - 2020-05-06 04:17

there is already scripts written that does this for you
For example here: https://gist.github.com/robinsmidsrod/3871687