iPXE discussion forum

Full Version: Disable Network interface
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone

Is there a way to disable a network interface on boot.
We have PCs with up to four network interfaces and when we use
the last one there is quiet some wait time.
Is there a possibility to disable the unused network interfaces so that
iPXE does not try to boot from this interface?

Thank you for your help Big Grin
A simple solution is to use undionly.kpxe instead of ipxe.pxe (because it will only ever initialize a single NIC, the one you chainloaded from), or alternatively an embedded script that directly uses net3. There are also some references to embedded scripts with NIC selection menu over on http://ipxe.org/examples which you'll hopefully figure out a solution with.
(2016-11-02 11:30)robinsmidsrod Wrote: [ -> ]A simple solution is to use undionly.kpxe instead of ipxe.pxe (because it will only ever initialize a single NIC, the one you chainloaded from), or alternatively an embedded script that directly uses net3. There are also some references to embedded scripts with NIC selection menu over on http://ipxe.org/examples which you'll hopefully figure out a solution with.

Thank you for the help, i forgot to mention that we use ipxe from a usb stick, because
our PCs are not able to boot from network natively.

The problem was solved very easily, first write a simple ipxe script:

Code:
#!ipxe

autoboot net2

and then build the ipxe usb stick with the embedded script:

Code:
make EMBED=boot_net2.ipxe
Reference URL's