iPXE Boot Multiple NIC / Subnet

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

bdwyzr

New Member
Sep 20, 2016
6
1
3
51
So I posted this question on the iPXE forum, but haven't gotten much traction. I am hoping someone on here will have some experience of thoughts.

I am trying to PXE boot to iPXE with two NICs on separate subnets and switches. The first NIC connects to the primary LAN and the second connects to the iSCSI network. I am able to get DHCP address for both NICs but only 1 network is accessible at a time. If I do a ifclose to net0 I can then ping and sanhook to my iSCSI target. But when I bring net0 back up I can ping the primary LAN but my access to the iSCSI network is gone.

Primary - 192.168.1.x
iSCSI - 192.168.2.x

Net0 - 192.168.1.214 / 24 / 192.168.1.1 (LAN)
Net1 - 192.168.2.146 / 24 / 192.168.2.2 (iSCSI)

Here is the basic config I am using for the .ipxe boot file.

ifconf net0
ifconf net1
set keep-san 1
sanhook iscsi:192.168.2.200::::iqn.2017-02.home.srv:Win7 || shell

route output
net0: 192.168.1.214/255.255.255.0 gw 192.168.1.1
net1: 192.168.2.146/255.255.255.0 gw 192.168.2.3

When I attempt to ping the gateway on initial boot, 192.168.1.1 it works fine, but I can't ping the iSCSI gateway or iSCSI target server. If I run ifclose net0 I can then ping those previous addresses, but then I lose access to local side. When net0 is disabled I can then run the sanhook command and it completes successfully.

Thanks,

Eric
 
  • Like
Reactions: Yarik Dot