Isc dhcpd-tip

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.