The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bug in ipxe when multiple NICs present?
2013-06-06, 01:19
Post: #1
bug in ipxe when multiple NICs present?
I'm seeing a possible bug in ipxe where the following occurs using both an embedded script booting from USB and dropping to command prompt (booting from USB) during boot and attempting to run manually.

The script I'm using (scrubbed of sensitive info):

1 #!ipxe
2 echo Performing DHCP on net1
3 prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE command line... && shell ||
4 ifclose net0 # attempt to forego all use of net0 (wifi)
5 dhcp net1
6 set 210:string host.domain.com
7
8 echo Net0 IP Address: ${net0/ip}
9 echo Net1 IP Address: ${net1/ip}
10 echo AssetID: ${asset}
11 chain http://${210:string}:8002/ipxe/menu.ipxe.cgi?mac=${net1/mac}&assetid=${asset/uristring}

Line 4 was experimental but its purpose was an attempt to disable the wireless NIC, which I don't want to use.

During the boot process, chain is correctly being called and then ipxe *always* attempts to bring up net0, which will fail. Once net0 fails to come up, ipxe fails to chain because it is unable to hit host.domain.com over net0, I surmise. It does not seem to ever try net1.

When running the steps manually, I was able to get ipxe to hit the chained server only once, however, pxelinux.0 did not run. The server returned http/200 while ipxe returned an error. All manual tests before and after that failed and usually ended up causing the host to reboot. The tests consisted of bringing up net1 (dhcp net1), chain, ctrl+c (kill attempt at bringing up net0), chain again.

Obviously, many things seem wrong in this summary. I wish I had more data to display, but I didn't take copious notes. I'm still running through testing, but my first question is how can I get ipxe to stop trying to use net0 or how can I swap interface assignments so that ipxe defaults to LAN vs WLAN? If I can isolate this question, then I can test and see if there are other issues on my side.

TIA
- Jim
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
bug in ipxe when multiple NICs present? - cloaked1 - 2013-06-06 01:19



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