>
>Единственно - напрягает копипаст конструкции host
>Никак нельзя считать MAC просто из текстового файла? ну ты и замутил :)
держи рабочий и проверенный конфиг, хз раз настроил - заработало оптимизировать далее было лень.
max-lease-time 5184000;
default-lease-time 432000;
deny unknown-clients;
### Managed by Linuxconf, you may edit by hand.
### Comments may not be fully preserved by linuxconf.
### Managed by Linuxconf, you may edit by hand.
### Comments may not be fully preserved by linuxconf.
server-identifier dhcp.test.ru;
ddns-update-style none;
#ddns-update-style interim;
# key DHCP_UPDATER {
# algorithm HMAC-MD5.SIG-ALG.REG.INT;
# secret Jn1eAmKV9lq2R0vE6kKyYw==;
# };
#
# zone test.ru. {
# primary 127.0.0.1;
# key DHCP_UPDATER;
# }
#
# zone 20.70.197.in-addr.arpa.{
# primary 127.0.0.1;
# key DHCP_UPDATER;
# }
#
# zone 0.70.197.in-addr.arpa.{
# primary 127.0.0.1;
# key DHCP_UPDATER;
# }
option domain-name "test.ru";
option domain-name-servers ns1.test.ru, ns2.test.ru;
option netbios-name-servers 10.70.1.11, 10.70.1.12;
option netbios-node-type 8;
option routers 10.70.255.254;
option subnet-mask 255.255.0.0;
authoritative;
# Digital Gate
shared-network test.ru {
max-lease-time 5184000;
default-lease-time 432000;
authoritative;
ddns-updates on;
ddns-rev-domainname "test.ru";
ddns-domainname "test.ru";
server-name "dhcp.test.ru";
# per.Leningradskiy 9
subnet 10.70.0.0 netmask 255.255.0.0 {
max-lease-time 5184000;
default-lease-time 432000;
authoritative;
ddns-updates on;
ddns-domainname "test.ru";
server-name "dhcp.test.ru";
range dynamic-bootp 10.70.20.1 10.70.20.254;
option domain-name "test.ru";
option domain-name-servers 10.70.1.1 , 10.70.1.2;
option netbios-name-servers 10.70.1.11 , 10.70.1.12;
option netbios-node-type 8;
option routers 10.70.255.254;
option subnet-mask 255.255.0.0;
option time-servers 10.70.1.11;
range dynamic-bootp 10.70.21.1 10.70.21.254;
}
}
# Andrey
host andrey {
deny unknown-clients;
option host-name "andrey.test.ru";
hardware ethernet 00:01:02:B0:DC:9A;
fixed-address 10.70.20.101;
}
# Adm
host fuck-you {
deny unknown-clients;
option host-name "virtual.test.ru";
hardware ethernet 00:80:48:17:3a:27;
fixed-address 10.70.20.100;
}
host nadya {
deny unknown-clients;
option host-name "nadya.test.ru";
hardware ethernet 00:0B:AB:04:57:16;
fixed-address 10.70.20.150;
}
# Kosty
host kosty {
deny unknown-clients;
option host-name "kosty.test.ru";
hardware ethernet 00:0d:88:f7:c7:1f;
fixed-address 10.70.20.254;
}
# Alex
host alex {
deny unknown-clients;
option host-name "alex.test.ru";
# hardware ethernet 00:e0:4c:48:ac:66;
hardware ethernet 00:13:77:05:8f:87;
fixed-address 10.70.20.253;
}
# Vint
host vint {
deny unknown-clients;
option host-name "vint.test.ru";
hardware ethernet 00:11:11:2b:c0:a9;
fixed-address 10.70.20.252;
}
# Petia
host petia {
deny unknown-clients;
option host-name "petia.test.ru";
hardware ethernet 00:13:d3:9e:54:a8;
fixed-address 10.70.20.251;
}