#tar zxvf dhcp-4.1.0.tar.gz
#cd dhcp-4.1.0
#./configure –prefix=/usr/local/isc-dhcpd

(過程省略)
#make install clean

就裝好了

設定如下
config file : dhcpd.conf 在 /usr/local/isc-dhcpd/etc/dhcpd.conf 如下
—————————————————————
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#

# option definitions common to all supported networks…
option domain-name “xxx.com.tw”;
option domain-name-servers ns.xxx.com.tw, dns1.seed.net.tw;
(說明:指定 dns server)
default-lease-time 600;
max-lease-time 7200;

# Use this to enble / disable dynamic dns updates globally.
#ddns-update-style none;

# 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;

# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.

subnet 10.10.24.0 netmask 255.255.255.0 {
range dynamic-bootp 10.10.24.70 10.10.24.90;
option broadcast-address 10.10.24.255;
option subnet-mask 255.255.255.0;
option netbios-name-servers 10.10.24.252; (說明:指定Wins server)
option routers 10.10.24.199; (說明:指定default route)
}
—————————————————————

啟動的方式,個人是採用,指定 dhcpd.conf file 路徑
/usr/local/isc-dhcpd/sbin/dhcpd -cf /usr/local/isc-dhcpd/etc/dhcpd.conf myk0
(說明:參數 -cf + dhcpd.conf 路徑 , myk0 是dhcp server 發ip網段的interface 代號)

tcpdump log 資料如下
tcpdump -i em1 | grep 10.10.25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em1, link-type EN10MB (Ethernet), capture size 96 bytes
13:16:21.520749 IP 10.10.25.254.bootps > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 300
13:16:21.520767 IP 10.10.24.31 > 10.10.25.254: ICMP 10.10.24.31 udp port bootps unreachable, length 36
13:16:25.519320 IP 10.10.25.254.bootps > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 300
13:16:25.519337 IP 10.10.24.31 > 10.10.25.254: ICMP 10.10.24.31 udp port bootps unreachable, length 36
13:16:32.518193 IP 10.10.25.254.bootps > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 300
13:16:32.518204 IP 10.10.24.31 > 10.10.25.254: ICMP 10.10.24.31 udp port bootps unreachable, length 36
13:16:49.518244 IP 10.10.25.254.bootps > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 300
13:16:49.518262 IP 10.10.24.31 > 10.10.25.254: ICMP 10.10.24.31 udp port bootps unreachable, length 36

啟動 dhcpd 之後即ok
root[/usr/home/dfnoc]tcpdump -i em1 | grep 10.10.25
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em1, link-type EN10MB (Ethernet), capture size 96 bytes
13:25:19.934863 IP 10.10.25.254.bootps > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 300
13:25:19.951530 IP 10.10.24.31 > 10.10.25.100: ICMP echo request, id 47105, seq 0, length 28
13:25:20.000927 IP 10.10.24.31.bootps > 10.10.25.254.bootps: BOOTP/DHCP, Reply, length: 300
13:25:20.003696 IP 10.10.25.254.bootps > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 328
13:25:20.007130 IP 10.10.24.31.bootps > 10.10.25.254.bootps: BOOTP/DHCP, Reply, length: 300
13:25:22.114165 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST
13:25:22.114182 IP 10.10.24.31 > 10.10.25.100: ICMP 10.10.24.31 udp port netbios-ns unreachable, length 36
13:25:22.862086 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST
13:25:22.862101 IP 10.10.24.31 > 10.10.25.100: ICMP 10.10.24.31 udp port netbios-ns unreachable, length 36
13:25:23.612255 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST
13:25:23.612272 IP 10.10.24.31 > 10.10.25.100: ICMP 10.10.24.31 udp port netbios-ns unreachable, length 36
13:25:24.362050 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST
13:25:24.362064 IP 10.10.24.31 > 10.10.25.100: ICMP 10.10.24.31 udp port netbios-ns unreachable, length 36
13:25:24.630262 IP 10.10.25.100.bootpc > 10.10.24.31.bootps: BOOTP/DHCP, Request from 00:1d:60:a6:33:20 (oui Unknown), length: 316
13:25:24.631477 IP 10.10.24.31.bootps > 10.10.25.100.bootpc: BOOTP/DHCP, Reply, length: 300
13:25:25.112719 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST
13:25:25.112734 IP 10.10.24.31 > 10.10.25.100: ICMP 10.10.24.31 udp port netbios-ns unreachable, length 36
13:25:25.862139 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST
13:25:25.862153 IP 10.10.24.31 > 10.10.25.100: ICMP 10.10.24.31 udp port netbios-ns unreachable, length 36
13:25:26.612184 IP 10.10.25.100.netbios-ns > 10.10.24.31.netbios-ns: NBT UDP PACKET(137): REGISTRATION; REQUEST; BROADCAST