authoritative;
ddns-update-style none;
#eth2 unterrichtsnetz
subnet 192.168.100.0 netmask 255.255.255.0 {
range 192.168.100.60 192.168.100.200;
default-lease-time 3456;
max-lease-time 691200;
option broadcast-address 192.168.100.255;
option routers 192.168.100.254;
option subnet-mask 255.255.255.0;
option netbios-name-servers 192.168.100.254;
option netbios-node-type 8;
option domain-name-servers 193.170.221.1, 8.8.8.8;
#option domain-name-servers 8.8.8.8, 193.171.4.60;
option ntp-servers 193.170.221.1;
# pxe
filename "pxelinux.0";
next-server 192.168.100.14;
}
# eth1 verwaltungsnetz
subnet 192.168.238.0 netmask 255.255.255.0 {
range 192.168.238.100 192.168.238.200;
default-lease-time 345600;
max-lease-time 691200;
option broadcast-address 192.168.238.255;
option routers 192.168.238.254;
option subnet-mask 255.255.255.0;
option netbios-name-servers 193.170.221.1;
option domain-name-servers 8.8.8.8, 193.170.221.1, 8.8.8.8;
#option domain-name-servers 8.8.8.8, 193.171.4.60;
option ntp-servers 193.170.221.1;
}
- fixed-address.sh
#!/bin/bash
cat macs | tr [A-Z] [a-z] > macs2
for nr in {01..30}; do
mac=$(awk 'NR=='$nr'' macs2)
echo " host ikt-$nr {"
echo " hardware ethernet $mac;"
nr=$(echo $nr | sed -e 's/^0*//')
nnr=$(($nr+60))
echo " fixed-address 192.168.100.$nnr;"
echo " }"
echo " "
done