I have been trying to get a DHCP PXE server up for a few days now, this is what I got so far…
I am following this how-to
here are some outputs and what-nots, go to the last one to see the problem I am having.
the host network
:~> /sbin/ifconfig
br0 Link encap:Ethernet HWaddr 00:19:DB:62:97:20
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:dbff:fe62:9720/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:998918 errors:0 dropped:0 overruns:0 frame:0
TX packets:1161558 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:695623678 (663.3 Mb) TX bytes:501225142 (478.0 Mb)
eth0 Link encap:Ethernet HWaddr 00:19:DB:62:97:20
inet addr:192.168.1.2 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: fe80::219:dbff:fe62:9720/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1095032 errors:0 dropped:0 overruns:0 frame:0
TX packets:1237991 errors:0 dropped:0 overruns:0 carrier:0
collisions:25272 txqueuelen:1000
RX bytes:715447404 (682.3 Mb) TX bytes:506282637 (482.8 Mb)
Memory:fdce0000-fdd00000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:29359 errors:0 dropped:0 overruns:0 frame:0
TX packets:29359 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4036410 (3.8 Mb) TX bytes:4036410 (3.8 Mb)
Here is my /etc/dhcpd.conf
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
## option definitions common to all supported networks...
#
# All of this happens behind the firewall, and the whole domain
# is made-up anwyay, so this is mostly fluff.
#
option domain-name "li18nxboy.net";
# We don't have Nameservers... so let's just forget this item
#option domain-name-servers ns1.networkboot.org, ns2.networkboot.org;
default-lease-time 600;
max-lease-time 7200;
# if you do not use dynamical DNS updates:
#
# this statement is needed by dhcpd-3 needs at least this statement.
# you have to delete it for dhcpd-2, because it does not know it.
#
# if you want to use dynamical DNS updates, you should first read
# read /usr/share/doc/packages/dhcp-server/DDNS-howto.txt
ddns-update-style none; ddns-updates off;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
# We only want to respond to PXE DHCP requests
allow booting;
# define rules to identify DHCP Requests from PXE and Etherboot clients.
class "pxe" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
}
class "etherboot" {
match if substring (option vendor-class-identifier, 0, 9) = "Etherboot";
}
# This is our subnet for PXE boot/installation.
subnet 192.168.1.2 netmask 255.255.255.255 {
option broadcast-address 192.168.2.255;
pool {
range 192.168.1.101,255.255.255.255 192.168.1.150,255,255,255,255; # only need a few addresses
default-lease-time 180; # no long lease time required for booting
max-lease-time 360; # booted system does its own dhcp request
server-name "192.168.1.2"; # This happens to be the IP of this server too
next-server 192.168.1.2; # Address of the TFTP server
filename "pxelinux.0";
allow members of "pxe"; # only respond to PXE requests
allow members of "etherboot"; # allow etherboot, too
}
}
}
I get this error when restarting the server
service dhcpd restart
Shutting down ISC DHCPv4 4.x Server done
Starting ISC DHCPv4 4.x Server Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
/var/lib/dhcp//etc/dhcpd.conf line 52: expecting numeric value.
range 192.168.1.101,
^
/var/lib/dhcp//etc/dhcpd.conf line 60: Pool declaration with no address range.
}
^
Pool declarations must always contain at least
one range statement.
Configuration file errors encountered -- exiting
I admittedly dont know much about sub-netting, could someone please explain why this would not be a proper configuration?