4

I have a PXE+DHCP server creaed using syslinux and already running on a private network segment (198.19.99.xxx).. I want to know if this PXE+DHCP server can be configured to boot machines over another network segment (172.16.87.xxx)?

If the two networks could communicate with each other then what will be the dhcp.conf file's setting?

Yohan
  • 41
  • 2

2 Answers2

10

Yes, this is possible provided your target network is configured to relay DHCP and TFTP traffic. You'll likely need IP "helper addresses" on the client's network that point back to the actual DHCP server's IP address.

See: Broadcast between VLANs

ewwhite
  • 201,205
0

DHCP is based on a "DORA" (Discover-Offer-Request-Accept) protocol; Minimally the Discover packets are broadcasted on a MAC domain by the booting clients searching for a DHCP server. Broadcast traffic is by default blocked by routers, then normally you will not be able to boot PXE clients on network 172.16.87.xxx out of a DHCP server located at 198.19.99.xxx.

But you can enable at the router "linking" both networks a DHCP relay agent (IP Helper) this way the router will take the broadcast request coming from the client at 172.16.87.xxx network and it will uni-cast the request over the DHCP server in the 198.19.99.xxx network.

The routers (not the networks) provide the DHCP relay services. You do not need anything else at the destination. TFTP traffic does not need to be relayed.

ewwhite
  • 201,205
Pat
  • 3,619