On Fri, Jun 12, 2009 at 5:29 AM, Tom Browntom@ng23.net wrote:
I am seeing the following.....
in my dhcp template i have
subnet 10.70.201.0 netmask 255.255.255.0 { next-server 10.70.201.217; filename "pxelinux.0"; default-lease-time 21600; max-lease-time 43200; }
so hosts in 10.70.201.x should have those network details however boxes in that network have a dhcp configuration generated that look like the below.
host generic3 { hardware ethernet 00:1f:29:e3:be:00; fixed-address 10.70.201.202; filename "/pxelinux.0"; next-server 10.70.205.7; }
the 'next-server' is wrong - any clue?
Is it being overwritten by the next_server directive in /etc/cobbler/settings? Here is how we get around that. Assuming you have a dns zone for every subnet you also do dhcp for, add a dns A or CNAME record from the name cobbler to whatever place it should be. Stuff like that allows us to cheat and use the same settings file everywhere. You could also just edit the template to not include the next-server line for each system record. It should be /etc/cobbler/dhcp.template. Does that work for you?
## Cobbler defaults to $next_server, but some users ## like to use $iface.system.server for proxied setups ## next-server $iface.next_server;