Server-identifier 192.168.1.254; // specify the address bound to HDCP
Option domain-name "example.org"; // specify the Domain Name of the domain searched by DHCP Client by default
Option domain-name-servers ns1.example.org, ns2.example.org; // specify the DNS server. Multiple DNS servers are separated by commas (,).
Default-lease-time 600; // The default lease time is in seconds.
Max-lease-time 7200; // maximum lease time
Ddns-Update-style ad-hoc; // whether to update the DNS when the IP address is accepted or released.
Ddns-Update-style none; // disable
Subnet 10.152.187.0 netmask 255.255.255.0 {// set dhcp ip/netmast
}
Option broadcast-address 10.254.239.31; // broadcast address
Option routers rtr-239-32-1.example.org; // Gateway
Range 10.254.239.10 10.254.239.20; // address pool range
Host Fantasia {
Hardware Ethernet 08: 00: 07: 26: C0: A5; // you can specify the MAC address as the specified IP address.
Fixed-address fantasia.fugue.com; // The host name to be specified. You can also use the IP address
}
Bytes ---------------------------------------------------------------------------------------
Column
Server-identifier 192.168.1.254;
Ddns-Update-style none;
Option domain-name-servers 61.139.2.69, 218.89.0.124;
Option routers 192.168.1.254;
Option broadcast-address 192.168.1.255;
Default-lease-time 5500000;
Max-lease-time 7700000;
Subnet 192.168.1.0 netmask 255.255.255.0 {
Range 192.168.1.10 192.168.1.20;
Range 192.168.1.50 192.168.1.60;
}
Host {
Hardware Ethernet 00: E0: 4C: D9: BA: 12;
Fixed-address 192.168.1.155;
}
Bytes --------------------------------------------------------------------------------------
Cp dhcpd. conf. Sample DHCPD. conf ~
Vi dhcpd. conf ~
Grep-V "#" DHCPD. conf ~ > DHCPD. conf
Chmod 400 DHCPD. conf
---------------------------------------------------------------------------
Related Files
/Usr/local/sbin/DHCPD
/Usr/local/etc/DHCPD. conf
/Var/DB/DHCPD. Leases
/Usr/local/sbin/dhcrelay