320 lines
7.9 KiB
Plaintext
320 lines
7.9 KiB
Plaintext
#
|
|
# Sample configuration file for ISC dhcpd for Debian
|
|
#
|
|
#
|
|
|
|
# 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;
|
|
|
|
# option definitions common to all supported networks...
|
|
|
|
option subnet-mask 255.255.255.0;
|
|
option broadcast-address 192.168.72.255;
|
|
|
|
|
|
option domain-name "ro.netz";
|
|
option domain-name-servers 192.168.72.1;
|
|
#option domain-name "example.org";
|
|
#option domain-name-servers ns1.example.org, ns2.example.org;
|
|
option routers 192.168.72.254;
|
|
|
|
|
|
default-lease-time 86400;
|
|
max-lease-time 259200;
|
|
|
|
# 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.72.0 netmask 255.255.255.0 {
|
|
|
|
# --- 192.168.72.160/27 ---
|
|
# network address....: 192.168.72.160
|
|
# Broadcast address..: 192.168.72.191
|
|
# netmask............: 255.255.255.224
|
|
# network range......: 192.168.72.160 - 192.168.72.191
|
|
# Usable range.......: 192.168.72.161 - 192.168.72.190
|
|
|
|
range 192.168.72.161 192.168.72.190;
|
|
option domain-name "ro.netz";
|
|
option domain-name-servers nscache.ro.netz;
|
|
option subnet-mask 255.255.255.0;
|
|
option broadcast-address 192.168.72.255;
|
|
option domain-name-servers 192.168.72.1;
|
|
option routers 192.168.72.254;
|
|
default-lease-time 86400;
|
|
max-lease-time 259200;
|
|
|
|
}
|
|
|
|
## - Fileserver
|
|
## -
|
|
host file-ro {
|
|
## - alter server
|
|
#hardware ethernet 00:1f:c6:67:24:b2;
|
|
hardware ethernet 0c:c4:7a:0e:67:f4;
|
|
fixed-address file-ro.ro.netz ;
|
|
}
|
|
|
|
## - Drucker
|
|
## -
|
|
host hp-2600n {
|
|
hardware ethernet 00:1b:78:12:db:19;
|
|
fixed-address hp-2600n.ro.netz ;
|
|
}
|
|
host hp-p2055dn {
|
|
hardware ethernet 00:23:7d:87:a5:2c;
|
|
fixed-address hp-p2055dn.ro.netz ;
|
|
}
|
|
# - HP Color LaserJet Pro MFP M177fw
|
|
# - Büro Maria
|
|
host hp-mfp-m177fw {
|
|
hardware ethernet c8:d3:ff:11:19:6f;
|
|
fixed-address hp-mfp-m177fw.ro.netz ;
|
|
}
|
|
host brother-mfc-l2700DW {
|
|
hardware ethernet 30:05:5c:60:1b:d2;
|
|
fixed-address brother-mfc-l2700DW.ro.netz ;
|
|
}
|
|
host brother-mfc-9332cdw {
|
|
hardware ethernet 3c:2a:f4:0b:fb:f2;
|
|
fixed-address brother-mfc-9332cdw.ro.netz ;
|
|
}
|
|
|
|
#host km-1635 {
|
|
# hardware ethernet ;
|
|
# fixed-address km-1635.ro.netz ;
|
|
#}
|
|
|
|
## - Buero PCs
|
|
## -
|
|
host pc101-alt {
|
|
hardware ethernet d0:67:e5:18:a5:4e;
|
|
fixed-address pc101-alt.ro.netz ;
|
|
}
|
|
|
|
host pc101 {
|
|
hardware ethernet 80:ee:73:ba:4a:d7;
|
|
fixed-address pc101.ro.netz ;
|
|
}
|
|
|
|
host pc102 {
|
|
# - ALT
|
|
#hardware ethernet 00:13:8f:49:01:31;
|
|
hardware ethernet bc:5f:f4:50:a5:76;
|
|
fixed-address pc102.ro.netz ;
|
|
}
|
|
|
|
host pc103 {
|
|
#hardware ethernet 00:13:8f:49:01:1d;
|
|
hardware ethernet 68:05:ca:2a:4b:13;
|
|
fixed-address pc103.ro.netz ;
|
|
}
|
|
|
|
host pc104 {
|
|
hardware ethernet b8:ae:ed:7b:61:f1;
|
|
fixed-address pc104.ro.netz ;
|
|
}
|
|
|
|
host pc104_alt {
|
|
hardware ethernet d0:67:e5:18:a4:30;
|
|
fixed-address pc104-alt.ro.netz ;
|
|
}
|
|
|
|
host pc105 {
|
|
## - ALT
|
|
#hardware ethernet 00:1b:b9:ac:39:3d;
|
|
#hardware ethernet 68:05:ca:2a:4b:13;
|
|
hardware ethernet 40:8d:5c:36:ac:33;
|
|
fixed-address pc105.ro.netz ;
|
|
}
|
|
|
|
host pc106 {
|
|
hardware ethernet 74:d4:35:8d:05:b5;
|
|
fixed-address pc106.ro.netz ;
|
|
}
|
|
|
|
host pc106-alt {
|
|
hardware ethernet 00:1e:c9:7e:2e:97;
|
|
fixed-address pc106-alt.ro.netz ;
|
|
}
|
|
|
|
host pc107 {
|
|
## - alter Rechner
|
|
## -
|
|
#hardware ethernet 00:19:db:c4:62:87;
|
|
hardware ethernet 20:25:64:0c:53:84;
|
|
fixed-address pc107.ro.netz ;
|
|
}
|
|
|
|
host pc108 {
|
|
hardware ethernet 80:ee:73:bd:b2:73;
|
|
# - nicht benutzt:
|
|
# -
|
|
#hardware ethernet 80:ee:73:bd:b2:72;
|
|
fixed-address pc108.ro.netz ;
|
|
}
|
|
|
|
## - Telefonanlage
|
|
## -
|
|
host TKA {
|
|
hardware ethernet 00:08:5d:88:c5:0b;
|
|
fixed-address tka.ro.netz ;
|
|
}
|
|
|
|
## - Telefone
|
|
## -
|
|
host app01 {
|
|
hardware ethernet 00:08:5D:92:25:5B;
|
|
fixed-address app01.ro.netz ;
|
|
}
|
|
|
|
host app02 {
|
|
hardware ethernet 00:08:5D:92:24:2D;
|
|
fixed-address app02.ro.netz ;
|
|
}
|
|
|
|
host app03 {
|
|
hardware ethernet 00:08:5D:92:29:41 ;
|
|
fixed-address app03.ro.netz ;
|
|
}
|
|
|
|
## - Laptops LAN
|
|
## -
|
|
## - Sanchita - ALT
|
|
host pc121 {
|
|
hardware ethernet 00:1b:24:1f:c7:10;
|
|
fixed-address pc121.ro.netz ;
|
|
}
|
|
## - Sanchita
|
|
host pc122 {
|
|
hardware ethernet 28:d2:44:8a:63:a9;
|
|
fixed-address pc122.ro.netz ;
|
|
}
|
|
## - Biplab
|
|
host pc123 {
|
|
hardware ethernet 54:ee:75:b1:87:bf;
|
|
fixed-address pc123.ro.netz ;
|
|
}
|
|
|
|
## - wireless LAN
|
|
subnet 192.168.73.0 netmask 255.255.255.0 {
|
|
|
|
|
|
|
|
# --- 192.168.73.160/27 ---
|
|
# network address....: 192.168.73.160
|
|
# Broadcast address..: 192.168.73.191
|
|
# netmask............: 255.255.255.224
|
|
# network range......: 192.168.73.160 - 192.168.73.191
|
|
# Usable range.......: 192.168.73.161 - 192.168.73.190
|
|
|
|
range 192.168.73.161 192.168.73.190;
|
|
option domain-name "ro.netz";
|
|
option domain-name-servers nscache.ro.netz;
|
|
option subnet-mask 255.255.255.0;
|
|
option broadcast-address 192.168.73.255;
|
|
option domain-name-servers 192.168.72.1;
|
|
option routers 192.168.73.254;
|
|
default-lease-time 86400;
|
|
max-lease-time 259200;
|
|
}
|
|
|
|
host ap-unifi-1 {
|
|
hardware ethernet 80:2a:a8:c6:8f:1e;
|
|
fixed-address ap-unifi-1.ro.netz;
|
|
}
|
|
|
|
host ap-unifi-2 {
|
|
hardware ethernet 80:2a:a8:c6:8f:25 ;
|
|
fixed-address ap-unifi-2.ro.netz;
|
|
}
|
|
|
|
#subnet 10.152.187.0 netmask 255.255.255.0 {
|
|
#}
|
|
|
|
# This is a very basic subnet declaration.
|
|
|
|
#subnet 10.254.239.0 netmask 255.255.255.224 {
|
|
# range 10.254.239.10 10.254.239.20;
|
|
# option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
|
|
#}
|
|
|
|
# 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 10.5.5.0 netmask 255.255.255.224 {
|
|
# range 10.5.5.26 10.5.5.30;
|
|
# option domain-name-servers ns1.internal.example.org;
|
|
# option domain-name "internal.example.org";
|
|
# option routers 10.5.5.1;
|
|
# option broadcast-address 10.5.5.31;
|
|
# default-lease-time 600;
|
|
# max-lease-time 7200;
|
|
#}
|
|
|
|
# Hosts which require special configuration options can be listed in
|
|
# host statements. If no address is specified, the address will be
|
|
# allocated dynamically (if possible), but the host-specific information
|
|
# will still come from the host declaration.
|
|
|
|
#host passacaglia {
|
|
# hardware ethernet 0:0:c0:5d:bd:95;
|
|
# filename "vmunix.passacaglia";
|
|
# server-name "toccata.fugue.com";
|
|
#}
|
|
|
|
# Fixed IP addresses can also be specified for hosts. These addresses
|
|
# should not also be listed as being available for dynamic assignment.
|
|
# Hosts for which fixed IP addresses have been specified can boot using
|
|
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
|
|
# be booted with DHCP, unless there is an address range on the subnet
|
|
# to which a BOOTP client is connected which has the dynamic-bootp flag
|
|
# set.
|
|
#host fantasia {
|
|
# hardware ethernet 08:00:07:26:c0:a5;
|
|
# fixed-address fantasia.fugue.com;
|
|
#}
|
|
|
|
# You can declare a class of clients and then do address allocation
|
|
# based on that. The example below shows a case where all clients
|
|
# in a certain class get addresses on the 10.17.224/24 subnet, and all
|
|
# other clients get addresses on the 10.0.29/24 subnet.
|
|
|
|
#class "foo" {
|
|
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
|
|
#}
|
|
|
|
#shared-network 224-29 {
|
|
# subnet 10.17.224.0 netmask 255.255.255.0 {
|
|
# option routers rtr-224.example.org;
|
|
# }
|
|
# subnet 10.0.29.0 netmask 255.255.255.0 {
|
|
# option routers rtr-29.example.org;
|
|
# }
|
|
# pool {
|
|
# allow members of "foo";
|
|
# range 10.17.224.10 10.17.224.250;
|
|
# }
|
|
# pool {
|
|
# deny members of "foo";
|
|
# range 10.0.29.10 10.0.29.230;
|
|
# }
|
|
#}
|