Portal Home > Knowledgebase > Articles Database > DHCP problem with PXE


DHCP problem with PXE




Posted by Apoc, 05-24-2008, 12:57 PM
I'm currently working on a little project to get a rescue image loaded through PXE. It shouldn't be that difficult, but personally I don't really work with DHCP (obviously we usually just use static IPs), and DHCP is required for PXE. I've setup the PXE host server and it's also running DHCPd without errors. This is the configuration of dhcpd.conf: (I have replaced the first three numbers of the IPs with x.x.x for privacy reasons) That configuration seems fine.. Now the problem is that when I try to get a server to boot with PXE, after a minute or so, it reports that it hasn't received any DHCP offers. Some side information: both the host and client server are on the same network, but not on the same switch though. I guess that shouldn't matter, or does it? If anyone has any ideas as to what could be the problem, I'd highly appreciate it.

Posted by relichost, 05-24-2008, 03:26 PM
Hi Is the firewall up and running on the DHCP server ? Try switching it off. Also are the switch's Cisco ? if so then by the time the port initilizes, the DHCP timeout will have occured, try looking for a portfast option. Thanks

Posted by fastdeploy, 05-24-2008, 05:06 PM
Your DHCPD config looks fine. As suggested, if you are using Cisco switches look at enabling the portfast option on each port unless it is trunking.

Posted by Apoc, 05-25-2008, 09:32 AM
There's no firewall running. They're not on Cisco switches. The port usually initializes within a second or so - the DHCP timeout takes almost a minute, so I don't think that's the problem here. If anyone has any other suggestions or ideas, I'd highly appreciate it.

Posted by Apoc, 05-25-2008, 09:40 AM
One detail I forgot to include: The DHCPd is running on a Virtuozzo VPS. I have set /etc/sysconfig/dhcpd with DHCPDARGS=venet0 (otherwise it wouldn't start dhcpd in the first place), but I suppose this might just not work this way?

Posted by Apoc, 05-25-2008, 09:54 AM
I figured out that the internal routing system of Virtuozzo doesn't forward broadcast messages probably, which would explain why it's not working. I moved the dhcpd to a normal server and it's working fine. It could probably work on a VPS too by setting up a bridge, but this solution was easier. Thanks for the suggestions guys!



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Something like EC2 (Views: 518)
Resellers...?? (Views: 510)