Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Sample configuration file for ISC dhcpd for Debian
- #
- # Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
- # configuration file instead of this file.
- #
- #
- # 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;
- # No service will be given on this subnet, but declaring it helps the
- # DHCP server to understand the network topology.
- #subnet 192.168.2.0 netmask 255.255.255.0 {
- # range 192.168.2.50 192.168.2.255;
- # filename "pxelinux.0";
- # option subnet-mask 255.255.255.0;
- # option broadcast-address 192.168.2.255;
- # option routers 192.168.1.1;
- #}
- # This declaration allows BOOTP clients to get dynamic addresses,
- # which we don't really recommend.
- #subnet 10.254.239.32 netmask 255.255.255.224 {
- # range dynamic-bootp 10.254.239.40 10.254.239.60;
- # option broadcast-address 10.254.239.31;
- # option routers rtr-239-32-1.example.org;
- #}
- # A slightly different configuration for an internal subnet.
- subnet 192.168.0.0 netmask 255.255.0.0 {
- range 192.168.2.100 192.168.2.102;
- option subnet-mask 255.255.0.0;
- option broadcast-address 192.168.255.255;
- option routers 192.168.1.1;
- option domain-name-servers <dns ip>;
- default-lease-time 180;
- max-lease-time 360;
- host coreos-01 {
- hardware ethernet <mac address>;
- fixed-address 192.168.2.131;
- }
- host coreos-02 {
- hardware ethernet <mac address>;
- fixed-address 192.168.2.132;
- }
- host coreos-04 {
- hardware ethernet <mac address>;
- fixed-address 192.168.2.134;
- }
- host coreos-05 {
- hardware ethernet <mac address>;
- fixed-address 192.168.2.135;
- }
- host coreos-06 {
- hardware ethernet <mac address>;
- fixed-address 192.168.2.136;
- }
- }
- allow booting;
- allow bootp;
- #option option-128 code 128 = string;
- #option option-129 code 129 = text;
- option magic code 208 = string;
- option configfile code 209 = text;
- option pathprefix code 210 = text;
- option reboottime code 211 = unsigned integer 32;
- #next-server 192.168.2.130;
- filename "pxelinux.0";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement