PXE and multiple interface

Hello everyone.
I have installed OpenWrt on a Raspberry Pi. I also have another one with FogProject, and the goal is to properly configure both to have a working PXE.

To do this, I have 2 interfaces :

  • lan1 (192.168.2.1-254) dhcp 192.168.2.1
  • lan2 (192.168.3.1-254) dhcp 192.168.3.1

I only want to have PXE on lan1.
To do this, I edited LAN1 in "network, interfaces", then DHCP Server, and in DHCP-Option, I added :
66, fog IP
67, ipxe.elf

When booting on the client, I see that the server has the IP 192.168.2.1 and not the Fog server address, and therefore it also can't find the boot file.
Any ideas?

Thx a lot

You have to create per-interface instance configurations in /etc/config/dhcp. luci can not do it.

I see this conf, on the lan1 interface on this file