Configure PXE server on RHEL 6
I am trying to configure /etc/dhcp/dhcpd.conf file to get a PXE server working on RHEL6 server. But the client complains about "no DHCP offers were received."
I have the conf file as below and then I just restart the dhcpd service. The pxelinux.0 is in /var/lib/tftpboot/ directory. What am i doing wrong? 192.168.95.12 is the port of the server. ======== authoritative; ddns-update-style none; allow booting; allow bootp; subnet 192.168.80.0 netmask 255.255.240.0 { range 192.168.84.64 192.168.84.127; default-lease-time 36000; max-lease-time 100000; next-server 192.168.95.12; filename "pxelinux.0"; } |
Check syslog for dhcpd errors.
Check the leases file to see if the server thinks it offered a lease. If it's not the server, try ping 192.168.95.12 from the client to make sure the net is working. |
Thanks for the reply. I see my IPs there (from the range I gave) but not MACs are not for my clients. How is that? I am using vlan for this pxe setup. So this is vlan issue?
====== # The format of this file is documented in the dhcpd.leases(5) manual page. # This lease file was written by isc-dhcp-4.1.1-P1 lease 192.168.85.5 { this is the IP from my range starts 4 2012/05/10 17:01:51; ends 4 2012/05/10 17:11:51; tstp 4 2012/05/10 17:11:51; cltt 4 2012/05/10 17:01:51; binding state free; hardware ethernet 2c:27:d7:52:bb:b0; NOT MY MAC uid "\001,'\327R\273\260"; } lease 192.168.85.6 { this is the IP from my range starts 4 2012/05/10 17:01:54; ends 4 2012/05/10 17:11:54; tstp 4 2012/05/10 17:11:54; cltt 4 2012/05/10 17:01:54; binding state free; hardware ethernet 2c:27:d7:52:bb:b4; NOT MY MAC uid "\001,'\327R\273\264"; } server-duid "\000\001\000\001\027<A\373\000\300\335\020v\364"; |
Thanks. It was a vlan issue. It works now.
|
All times are GMT -5. The time now is 04:22 AM. |