iPXE discussion forum
waiting for link-up on netX ..howto skip unused devices - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: waiting for link-up on netX ..howto skip unused devices (/showthread.php?tid=18131)



waiting for link-up on netX ..howto skip unused devices - lakus - 2019-04-25 23:00

Hi

i have 2 NIC's in my pc, one onboard and a quad port one, i want to pxe boot from the onboad device
but the quad port card comes on initialising devices first. so i dont want to wait for all 0-3 nics (net0/net1/net2/net3) of this quad port card getting timeout and then ipxe tries to boot from the onboard lan

[Image: 9qsTEo3.png]

how can i skip the devices net0-3, before (net4...the real pxe boot device) without pressing every time ctrl+c ? i mean how can i directly boot from net4 ?
thanks


RE: waiting for link-up on netX ..howto skip unused devices - NiKiZe - 2019-04-25 23:06

How do you start iPXE? if you use a iPXE image with drivers for only the onboard device you can have that.
Other than that it's probably to have an embeded script and loop over all nics, match on pciid, and then autoboot just that interface


RE: waiting for link-up on netX ..howto skip unused devices - lakus - 2019-04-26 14:11

ok think i got it.

my embedded script now looks like this:
Code:
#!ipxe

dhcp net4
chain http://X.X.X.X/boot.ipxe



RE: waiting for link-up on netX ..howto skip unused devices - NiKiZe - 2019-04-26 20:04

I would rather use
Code:
#!ipxe

autoboot net4

see https://ipxe.org/cmd/autoboot

But again this is a hard assumption about the config, better to loop over the nics and when the nic with specific mac or pciid is found use the above autoboot netX to keep original behavior without any hardcoded chain uri


RE: waiting for link-up on netX ..howto skip unused devices - yiya1989 - 2019-05-07 13:06

use undionly.kpxe or snponly.efi . the key is the "only"


RE: waiting for link-up on netX ..howto skip unused devices - NiKiZe - 2019-05-07 13:46

indeed undionly.kpxe is probably the best solution - if you are chaining into iPXE from the network to begin with, and not booting from USB.

Never got a response on the question on how it was booted.