# # # DHCP Conf File # -------------- # /etc/dhcpd.conf /etc/dhcpd/dhcpd.conf # # DHCP Lease File # --------------- # /var/state/dhcp/dhcpd.leases # # Original Files # --------------- # http://www.Linux-Boot.net/Boot/Network/DHCP # http://www.Linux-Sec.net/DHCP # http://www.isc.org # # # To Reload Changes # ----------------- # /etc/rc.d/init.d/dhcpd reload # # # # # No subnet declaration for eth0 ( ww.xx.yy.zz ) # # Not configured to listen on any interfaces! # # # # # Additional Docs # --------------- # man dhcpd.conf dhcpd.leases # # http://config-dhcpd.sourceforge.net/ # # http://kerneltrap.org/node/833 # http://linuxreviews.org/man/dhcpd.conf # http://www.edoceo.com/liberum/?l=dhcpd # http://www.johncooke.info/linux/dhcpdconf.html # http://www.linuxquestions.org/questions/answers.php?action=viewarticle&artid=276 # http://www.wavesec.org/server/dhcpd.conf # http://www.zinkwazi.com/unix/notes/dhcpd.conf # http://www.unix.org.ua/orelly/networking/tcpip/ch09_05.htm # # # 12-Mar-05 amo Date-of-Birth # # # # # # Redhat 9.0 NEEDS THIS LINE ( interim == dynamic dns ) # # # ddns-update-style interim; # # the first thing we need to do is set a Dynamic DNS update style # --------------------------------------------------------------- # # ddns-update-style ad-hoc; ddns-update-style none; # # ddns-updates off; # # omapi-port 7911; # # # For Testing .. use short time # ============================== # # TIME SECONDS # 1hr 3600 # 2hrs 7200 # 4hrs 14400 # 12hrs 43200 # 1 86400 # 2 172800 # 3 259200 # 4 345600 # 5 432000 # 6 518400 # # # Sets the time loan time in seconds before computers must renew thier leases # default-lease-time 120; # default-lease-time 600; # default-lease-time 3600; # default-lease-time 7200; # default-lease-time 2592000; # # # Set the maximum amount of time a pc can hold a lease for # max-lease-time 120; # max-lease-time 600; # max-lease-time 3600; # max-lease-time 7200; # max-lease-time 5184000; # # boot-unknown-clients false; # ignore client-updates; # # one-lease-per-client true; # # # option routers 192.168.1.1; option domain-name-servers 192.168.1.2, 192.168.1.3; option ntp-servers 192.168.1.5; # #ption lpr-servers 192.168.1.6; # option domain-name "Your-Domain.com"; option nis-domain "NIS.Your-Domain.com"; # # # option interface-mtu 1500; # # server-name DHCPServer; server-identifier 192.168.1.4; # # # =============== # For PXE Booting # =============== # option root-path "/SomeDirectory/RootFS"; # option tftp-server-name "192.168.1.11"; # option host-name "EachNode"; # # # allow bootp; # allow booting; # # filename "pxeboot"; # # # # # http://www.ncsysadmin.org/june2002/img17.html # # # filename "/opt/kickstart" # next-server xxxx; # # # listen-on # { # # 127.0.0.1; # 192.168.0.1; # }; # # # If this DHCP server is the official DHCP server for the local # network, the authoritative directive should be uncommented. # # Sets the server as the master for the network authoritative; # # # Use this to send dhcp log messages to a different log file # # log-facility local7; # # # in order to use secure dns you will need to create a key # -------------------------------------------------------- # dnssec-keygen -a HMAC-MD5 -b 128 -n USER DHCP_UPDATER # # # # # important to use the same key name in both dhcpd.conf and named.conf # # # key dhcpServer.Your-Domain.com { # # # algorithm HMAC-MD5; # secret "secret-jibberish"; # # # }; # # # # zone 2.168.192.in-addr.arpa. { # # # key update.2.1168.192.in-addr.arpa.; # primary 192.168.1.254; # # # } # # # Empty subnet definiton to fix: # ----------------------------- # # # # No subnet declaration for eth0 ( ww.xx.yy.zz ) # # Not configured to listen on any interfaces! # # subnet 172.21.0.0 netmask 255.255.0.0 { # # range 172.21.2.20 172.21.2.200; # } # empty # # # ================== # Subnet of 16 hosts # ================== # # subnet 192.168.16.0 netmask 255.255.255.240 { # # # range 192.168.16.2 192.168.16.15; # # # } # 16 hosts # # # # Class C DHCP ip# range # ---------------------- # subnet 192.168.1.0 netmask 255.255.255.0 { # range 192.168.1.10 192.168.1.250; # # range dynamic-bootp 192.168.1.10 192.168.1.250; # # option subnet-mask 255.255.255.0; option broadcast-address 192.168.1.255; # # option routers 192.168.1.1; # option domain-name-servers 192.168.1.2, 192.168.1.3; # # # option domain-name "Your-Domain.com"; # option nis-domain "NIS.Your-Domain.com"; # # # pass the packets to the dhcp clients ( use firewalls too ) # ------------------------------------ option ip-forwarding on; # # # # WINS server address # option netbios-name-servers 192.168.1.12; # option netbios-dd-server 192.168.1.12; # option netbios-node-type 8; # # # DHCP Server # ------------ # host DHCPServer { # hardware ethernet 00:02:96:02:34:7C; fixed-address 192.168.1.4; # # option host-name "DHCPServer"; # } # DHCPServer # # # Same IP# ( 192.168.1.101 ) for a specific MAC# # --------- # host Laptop { # hardware ethernet AA:BB:CC:DD:EE:FF; fixed-address 192.168.1.101; # # option host-name "Laptop"; # } # laptop # # # Allowed Laptops, but variable ip# # host Laptop1 { hardware ethernet 11:22:33:44:55:66; } host Laptop2 { hardware ethernet aa:bb:cc:dd:ee:ff; } # # } # dhcp # # # Group machines together # ----------------------- # #group { # # # host conferenceRoom { ... } ; # host LunchRoom { ... } ; # # #} # Outsiders # # # # http://linuxreviews.org/man/dhcpd.conf/ # #subnet 10.0.0.0 netmask 255.255.255.0 { # # # option routers 10.0.0.254; # # # # Unknown clients get this pool # # --------------- # # # pool { # option domain-name-servers bogus.example.com; # max-lease-time 300; # range 10.0.1.200 10.0.1.253; # allow unknown-clients; # } # # # # Known clients get this pool # # ------------- # # # pool { # option domain-name-servers ns1.example.com, ns2.example.com; # max-lease-time 28800; # range 10.0.0.5 10.0.0.199; # deny unknown-clients; # } # # #} # Class10 # # # # Failover # --------- # # Primary - Secondary # ------------------- # # # End of file