[quote=“Amit Madmoni, post: 45437, member: 29386”]this is exactly the problem.
I got lost in all the options in the /etc/dnsmasq.d/ltsp.conf file.
what is the relevant options that I need to edit to make only the proxyDHCP to work?[/quote]
I understand that the config file can be a bit daunting, but we left the commented sections because they explain exactly how and why to use the option.
Wayne and uncle Frank are correct, we usually try to provide documentation on how to accomplish a task, we don’t edit files for you and hand them to you. I would be happy to help you to troubleshoot your issues, but I created and edited the articles on the wiki so that everyone could easily find the information and make use of it.
Wayne took this a step further, and I may edit the wiki article to include this, but you can remove the lines with a # in front of them, this is called a comment and DNSMASQ will gloss over the information without using it.
The portion below should help you to better understand where your information is required.
[code]
port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,x.x.x.x
dhcp-option=17,/images
dhcp-option=vendor:PXEClient,6,2b
dhcp-no-override
pxe-prompt=“Press F8 for boot menu”, 3
pxe-service=X86PC, “Boot from network”, pxelinux
pxe-service=X86PC, “Boot from local hard disk”, 0
dhcp-range=10.0.0.10,proxy
[/code]
We need to edit the line “dhcp-boot=undionly.kpxe,x.x.x.x” and we need to replace the x.x.x.x with your FOG server ip address. according to your information the ip address is 172.16.0.200.
The correct line should read: dhcp-boot=undionly.kpxe,172.16.0.200
The next line to edit would be “dhcp-range=10.0.0.10,proxy” and we need to replace the 10.0.0.10 to an ip address you wish to use as a starting point for the proxy dhcp range.
Because this is only a Proxy and doesn’t actually have any bearing on your network, we recommend using the FOG server ip address as the starting dhcp address.
The correct line should read: dhcp-range=172.16.0.200,proxy
The only other line that should be edited in the ltsp.conf file would be the line “pxe-prompt=“Press F8 for boot menu”, 3”, You may change the number 3 to any number you would like. I usually set mine to 0, this is the screen that appears while DNSMASQ pulls up your boot information. Setting this number to 0 will allow for faster booting to the undionly.kpxe file.
So to wrap this all up you need to type the following command into a terminal
[code]
sudo gedit /etc/dnsmasq.d/ltsp.conf
[/code]
paste the following into the document and save
[code]
port=0
log-dhcp
tftp-root=/tftpboot
dhcp-boot=undionly.kpxe,172.16.0.200
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=172.16.0.200,proxy
[/code]
Now you need to symlink the undionly file so dnsmasq can boot, issue the following commands in the terminal
[code]
cd /tftpboot
sudo ln -s undionly.kpxe undionly.0
sudo service dnsmasq restart
[/code]
Now you should have a working DNSMASQ set up for your FOG Server.
Not to be mean, but please read the documentation, the wiki articles, and understand them.
We are more than willing to help you to understand what needs to be placed and where.
I do hope this helps clear up some confusion. I hope that my explanations and assistance outlined in this article helps to answer any future questions users may have.
I don’t feel like I helped you learn anything now that I have handed you the answers
When you restart dnsmasq, if you get an error reading “dnsmasq: failed to create listening socket for port 53: Address already in use failed!” You will likely need to perform the following actions since you are running Ubuntu 14.04:
[url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#Additional_Steps_for_12.04.4.2C_12.04.5.2C_14.04.2C_14.10[/url]