Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable Network interface
2016-10-21, 13:32
Post: #1
Disable Network interface
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
Find all posts by this user
Quote this message in a reply
2016-11-02, 11:30
Post: #2
RE: Disable Network interface
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
2016-11-03, 09:06
Post: #3
RE: Disable Network interface
(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
Find all posts by this user
Quote this message in a reply
Post Reply 




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