How to configure DHCP Proxy?
-
The problem is that the client is asking for the wrong file.
It’s asking for pxelinux.0 which is not only wrong, but according to your screenshot that file does not exist - for real.
Re-examine ltsp.conf, make sure it’s giving either undionly.kpxe or undionly.0 and also restart the dnsmasq service and try again.
-
Also,
I’m not seeing a packet sent from 10.0.0.210 telling the client to use undionly.0, or 10.0.0.210 as the next-server…
If you look at the capture you posted, there are a total of TWO packets sent from the FOG server to the client.
This might mean that the DHCP server is already handing out the boot-server and file name, options 066 and 067.
Do you have a network hub? (not a switch)
-
here is my ltsp.conf file:
[CODE]port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,10.0.0.210,10.0.0.210
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 0
pxe-service=X86PC, “Boot from network”, pxelinux
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.210,proxy
[/CODE]I dont have a network hub.
again, I’m running the client under virtual box. does it matter? -
Change
[code]port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,10.0.0.210,10.0.0.210
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 0
pxe-service=X86PC, “Boot from network”, pxelinux
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.210,proxy[/code]To:
[code]port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,10.0.0.210,10.0.0.210
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 0
pxe-service=X86PC, “Boot from network”, undionly.kpxe
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.210,proxy[/code]Then make a copy of the undionly.kpxe to undionly.kpxe.0
[code]sudo cp /tftpboot/undionly.kpxe /tftpboot/undionly.kpxe.0[/code]
-
[quote=“Amit Madmoni, post: 45626, member: 29386”]here is my ltsp.conf file:
[CODE]port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,10.0.0.210,10.0.0.210
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 0
pxe-service=X86PC, “Boot from network”, pxelinux
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.210,proxy
[/CODE]I dont have a network hub.
again, I’m running the client under virtual box. does it matter?[/quote]Did you restart the service after inserting the LTSP.conf file?
you need to successfully restart the service for your updated LTSP.conf file to be of any use to dnsmasq.
-
This post is deleted! -
[quote=“Tom Elliott, post: 45628, member: 7271”]Change
[code]port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,10.0.0.210,10.0.0.210
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 0
pxe-service=X86PC, “Boot from network”, pxelinux
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.210,proxy[/code]To:
[code]port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,10.0.0.210,10.0.0.210
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 0
pxe-service=X86PC, “Boot from network”, undionly.kpxe
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.210,proxy[/code]Then make a copy of the undionly.kpxe to undionly.kpxe.0
[code]sudo cp /tftpboot/undionly.kpxe /tftpboot/undionly.kpxe.0[/code][/quote]
But, there are zero packets sent from the FOG machine that are even assigning the next-boot server or boot file…
FOG sent two packets, both simply saying “File not found.” If dnsmasq were sending out additional IP configuration, we’d see a few more packets for DHCP, coming from FOG, Probably about 2 more packets.
So, DHCP must be telling the client to use 10.0.0.210 and pxelinux.0
-
Yeeeeeessssss!!!
It’s finally working!!!I just did what TOM offered and it’s working!
thanks a lot guys!
-
This post is deleted! -
Wiki Updated to provide troubleshooting steps for this in the future:
[url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#Troubleshooting[/url] -
wow. I should be proud.