Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@infra1:/etc/dhcp# cat dhcpd.conf
- # dhcpd.conf
- # option definitions common to all supported networks...
- option domain-name "lab.test";
- # option domain-name-servers ns1.example.org, ns2.example.org;
- option domain-name-servers infra1.lab.test;
- # For dynamic updates
- ddns-updates on;
- ddns-update-style interim;
- ignore client-updates;
- update-static-leases on;
- authoritative;
- default-lease-time 600;
- max-lease-time 7200;
- # The ddns-updates-style parameter controls whether or not the server will
- # attempt to do a DNS update when a lease is confirmed. We default to the
- # behavior of the version 2 packages ('none', since DHCP v2 didn't
- # have support for DDNS.)
- 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;
- #
- include "/etc/dhcp/ddns-keyfile.key";
- zone lab.test. {
- primary 127.0.0.1;
- key ddns-key;
- }
- zone 10.10.10.in-addr.arpa. {
- primary 127.0.0.1;
- key ddns-key;
- }
- # A slightly different configuration for an internal subnet.
- subnet 10.10.10.0 netmask 255.255.255.0 {
- range 10.10.10.100 10.10.10.200;
- option domain-name-servers infra1.lab.test;
- option domain-name "lab.test";
- option routers 10.10.10.1;
- option broadcast-address 10.10.10.255;
- default-lease-time 600;
- max-lease-time 7200;
- }
- host testhost {
- hardware ethernet xx:xx:xx:xx:xx:xx;
- fixed-address 10.10.10.25;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement