Страница 1 из 1
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-24 20:03:03
tj.anton
Всем привет! Установил isc сервер, настроил, при запуске вылетает ошибка, в чем проблема?
Консоль:
Код: Выделить всё
root@wwwmath:~ # /usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
/usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed
Лог:
Код: Выделить всё
Aug 24 22:00:45 wwwmath dhcpd: Internet Systems Consortium DHCP Server 4.3.2
Aug 24 22:00:45 wwwmath dhcpd: Copyright 2004-2015 Internet Systems Consortium.
Aug 24 22:00:45 wwwmath dhcpd: All rights reserved.
Aug 24 22:00:45 wwwmath dhcpd: Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-tf trace-output-file] [-play trace-input-file] [-pf pid-file] [--no-pid] [-s server] [if0 [...ifN]]
Aug 24 22:00:45 wwwmath dhcpd:
Aug 24 22:00:45 wwwmath dhcpd: If you think you have received this message due to a bug rather
Aug 24 22:00:45 wwwmath dhcpd: than a configuration issue please read the section on submitting
Aug 24 22:00:45 wwwmath dhcpd: bugs on either our web page at www.isc.org or in the README file
Aug 24 22:00:45 wwwmath dhcpd: before submitting a bug. These pages explain the proper
Aug 24 22:00:45 wwwmath dhcpd: process and the information we find helpful for debugging..
Aug 24 22:00:45 wwwmath dhcpd:
Aug 24 22:00:45 wwwmath dhcpd: exiting.
rc.conf
Код: Выделить всё
dhcpd_enable="YES"
dhcpd_iface="em0"
dhcpd_flags="-4"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_whisumask="022"
dhcpd_chuser_enable="YES"
dhcpd_withuser="dhcpd"
dhcpd_withgroup="dhcpd"
dhcpd_chroot_enable="YES"
dhcpd_devfs_enable="YES"
dhcpd_rootdir="/var/db/dhcpd"
dhcpd_includedir="/usr/local/etc"
dhcp.conf
Код: Выделить всё
option domain-name "site.ru";
option domain-name-servers 192.168.86.67;
default-lease-time 86400;
max-lease-time 86400;
authoritative;
log-facility local7;
ddns-update-style none;
subnet 192.168.86.64 netmask 255.255.255.224 {
range 192.168.86.66 192.168.86.66;
option routers 192.168.86.65;
option subnet-mask 255.255.255.255;
}
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-24 22:29:12
guest
tj.anton писал(а):Всем привет! Установил isc сервер, настроил, при запуске вылетает ошибка, в чем проблема?
Консоль:
Код: Выделить всё
root@wwwmath:~ # /usr/local/etc/rc.d/isc-dhcpd restart
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
/usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed
Лог:
Код: Выделить всё
Aug 24 22:00:45 wwwmath dhcpd: Internet Systems Consortium DHCP Server 4.3.2
Aug 24 22:00:45 wwwmath dhcpd: Copyright 2004-2015 Internet Systems Consortium.
Aug 24 22:00:45 wwwmath dhcpd: All rights reserved.
Aug 24 22:00:45 wwwmath dhcpd: Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-tf trace-output-file] [-play trace-input-file] [-pf pid-file] [--no-pid] [-s server] [if0 [...ifN]]
Aug 24 22:00:45 wwwmath dhcpd:
Aug 24 22:00:45 wwwmath dhcpd: If you think you have received this message due to a bug rather
Aug 24 22:00:45 wwwmath dhcpd: than a configuration issue please read the section on submitting
Aug 24 22:00:45 wwwmath dhcpd: bugs on either our web page at www.isc.org or in the README file
Aug 24 22:00:45 wwwmath dhcpd: before submitting a bug. These pages explain the proper
Aug 24 22:00:45 wwwmath dhcpd: process and the information we find helpful for debugging..
Aug 24 22:00:45 wwwmath dhcpd:
Aug 24 22:00:45 wwwmath dhcpd: exiting.
rc.conf
Код: Выделить всё
dhcpd_enable="YES"
dhcpd_iface="em0"
dhcpd_flags="-4"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_whisumask="022"
dhcpd_chuser_enable="YES"
dhcpd_withuser="dhcpd"
dhcpd_withgroup="dhcpd"
dhcpd_chroot_enable="YES"
dhcpd_devfs_enable="YES"
dhcpd_rootdir="/var/db/dhcpd"
dhcpd_includedir="/usr/local/etc"
dhcp.conf
Код: Выделить всё
option domain-name "site.ru";
option domain-name-servers 192.168.86.67;
default-lease-time 86400;
max-lease-time 86400;
authoritative;
log-facility local7;
ddns-update-style none;
subnet 192.168.86.64 netmask 255.255.255.224 {
range 192.168.86.66 192.168.86.66;
option routers 192.168.86.65;
option subnet-mask 255.255.255.255;
}
закоментарьте ваши опции в /etc/rc.conf и попробуйте следующие:
dhcpd_enable="YES"
# ipv4: -4 , debug to stdout: -d
dhcpd_flags="-4 -d"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="em0"
dhcpd_withumask="022"
да, с -d сервис стартует в foreground и отладка выдается на stdout
потом будете пробовать с chroot (если у вас isc-dhcp-server собран с опцией paranoia).
ps. в subnet конфига добавьте broadcast, это будет правильно.
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-24 22:50:15
tj.anton
тоже самое (( да, собран с параноей...
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 6:48:31
Dirty.Eager
tj.anton писал(а):Всем привет! Установил isc сервер, настроил, при запуске вылетает ошибка, в чем проблема?
Консоль:
Код: Выделить всё
/usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed
Ищите ошибку в конфигурационном файле...
tj.anton писал(а):
rc.conf
dhcp.conf
Кстати, он как у вас все-таки называется: dhcp.conf или dhcpd.conf ?
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 7:42:45
tj.anton
dhcpd.conf
Я скинул здесь этот файл, я там не могу найти ошибку её там нет, в чем проблема я не пойму (
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 8:23:02
snorlov
subnet-mask попробуйте убрать
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 8:46:30
tj.anton
не помогло (
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 8:58:12
Dirty.Eager
tj.anton писал(а):dhcpd.conf
Я скинул здесь этот файл, я там не могу найти ошибку её там нет, в чем проблема я не пойму (
Натурные опыты

показали, что если isc-dhcp43-server-4.3.2_1 собран без поддержки ipv6, то он не воспринимает опцию "-4".
А если собран с поддержкой ipv6, то опцию "-4" он воспринимает. В
man dhcpd этот нюанс не освещен.
Попробуйте убрать
dhcpd_flags="-4" из /etc/rc.conf
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 9:01:53
tj.anton
Dirty.Eager писал(а):tj.anton писал(а):dhcpd.conf
Я скинул здесь этот файл, я там не могу найти ошибку её там нет, в чем проблема я не пойму (
Натурные опыты

показали, что если isc-dhcp43-server-4.3.2_1 собран без поддержки ipv6, то он не воспринимает опцию "-4".
А если собран с поддержкой ipv6, то опцию "-4" он воспринимает. В
man dhcpd этот нюанс не освещен.
Попробуйте убрать
dhcpd_flags="-4" из /etc/rc.conf
Уже лучше, но ошибка осталась(((
Код: Выделить всё
root@wwwmath:~ # /usr/local/etc/rc.d/isc-dhcpd restart
dhcpd not running? (check /var/db/dhcpd/var/run/dhcpd/dhcpd.pid).
Starting dhcpd.
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /usr/local/etc/dhcpd.conf
Database file: /var/db/dhcpd/dhcpd.leases
PID file: /var/run/dhcpd/dhcpd.pid
Wrote 0 leases to leases file.
Listening on BPF/em0/0c:c4:7a:40:fc:2d/192.168.86.64/27
Sending on BPF/em0/0c:c4:7a:40:fc:2d/192.168.86.64/27
Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
/usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd
root@wwwmath:~ #
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 9:16:26
Dirty.Eager
Dirty.Eager писал(а): Натурные опыты

показали, что если isc-dhcp43-server-4.3.2_1 собран без поддержки ipv6, то он не воспринимает опцию "-4".
А если собран с поддержкой ipv6, то опцию "-4" он воспринимает. В man dhcpd этот нюанс не освещен.
Различия версий насчет этой опции наблюдаются только в подсказке командной строки:
С поддержкой IPv6:
Код: Выделить всё
# dhcpd -someoddparameter
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-4|-6] [-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Без поддержки IPv6:
Код: Выделить всё
# dhcpd -someoddparameter
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
Usage: dhcpd [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]
[-cf config-file] [-lf lease-file]
[-user user] [-group group] [-chroot dir]
[-tf trace-output-file]
[-play trace-input-file]
[-pf pid-file] [--no-pid] [-s server]
[if0 [...ifN]]
If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug. These pages explain the proper
process and the information we find helpful for debugging..
exiting.
Отправлено спустя 3 минуты 45 секунд:
tj.anton писал(а):
Уже лучше, но ошибка осталась(((
Код: Выделить всё
Can't bind to dhcp address: Address already in use
Здесь все гораздо проще, видимо уже запущен один dhcpd
Он, кстати, подсказывает, что надо сделать:
tj.anton писал(а):Код: Выделить всё
Please make sure there is no other dhcp server
running and that there's no entry for dhcp or
bootp in /etc/inetd.conf. Also make sure you
are not running HP JetAdmin software, which
includes a bootp server.
Например, вот так:
Код: Выделить всё
# sockstat -4 | grep ':67'
dhcpd dhcpd 23985 8 udp4 *:67 *:*
# kill 23985
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 9:19:22
tj.anton
О круто! Да заработало, а потом такого не будет? Или второй запустился он такого бардака с -4 ?
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 9:22:39
Dirty.Eager
tj.anton писал(а):О круто! Да заработало, а потом такого не будет? Или второй запустился он такого бардака с -4 ?
Возможно, в процессе манипуляций вы второй запустили из командной строки
#dhcpd, а не
#/usr/local/etc/rc.d/isc-dhcpd start.
А может и от
-4, мало ли, он мог жаловаться на конфиг, но успевал фактически запускаться и вешаться на 67/udp
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 9:32:35
tj.anton
Dirty.Eager писал(а):tj.anton писал(а):О круто! Да заработало, а потом такого не будет? Или второй запустился он такого бардака с -4 ?
Возможно, в процессе манипуляций вы второй запустили из командной строки
#dhcpd, а не
#/usr/local/etc/rc.d/isc-dhcpd start.
А может и от
-4, мало ли, он мог жаловаться на конфиг, но успевал фактически запускаться и вешаться на 67/udp
Хорошо, спасибо огромное!

FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 10:28:50
guest
tj.anton писал(а):Dirty.Eager писал(а):tj.anton писал(а):О круто! Да заработало, а потом такого не будет? Или второй запустился он такого бардака с -4 ?
Возможно, в процессе манипуляций вы второй запустили из командной строки
#dhcpd, а не
#/usr/local/etc/rc.d/isc-dhcpd start.
А может и от
-4, мало ли, он мог жаловаться на конфиг, но успевал фактически запускаться и вешаться на 67/udp
Хорошо, спасибо огромное!

isc-dhcp43-server-4.3.2_1 - без проблем работает как с ipv4 by default, так и с включенной
опцией сборки с ipv6 и соответственно с опциями "-4" и "-6".
Ошибок в конфиге не было, если только у Вас там не было символа "\r".
То что Вы запустили один демон, а затем пытались повторно запустить при уже
работающем - сам себе ССЗБ, проверяйте на будущее используя:
# ps axuww | grep daemon_name
или
# sockstat
или
# /usr/local/etc/rc.d/servicename status
и останавливайте или убивайте сервис перед последующим запуском или выполняйте restart,
плюс чтение man на предмет запуска для отладки и режимы background и/или foreground
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 11:21:53
Dirty.Eager
undefined писал(а): isc-dhcp43-server-4.3.2_1 - без проблем работает как с ipv4 by default, так и с включенной
опцией сборки с ipv6 и соответственно с опциями "-4" и "-6".
Нет. При сборке с ipv6 опции "-4" и "-6" он не обрабатывает и, встретив их в argv[], выплевывает usage()
Код: Выделить всё
$ grep -B 1 -A 3 '\-4' /usr/ports/net/isc-dhcp43-server/work/dhcp-4.3.2/server/dhcpd.c
#ifdef DHCPv6
} else if (!strcmp(argv[i], "-4")) {
if (local_family_set && (local_family != AF_INET)) {
log_fatal("Server cannot run in both IPv4 and "
"IPv6 mode at the same time.");
--
#ifdef DHCPv6
" [-4|-6] [-cf config-file] [-lf lease-file]\n"
#else /* !DHCPv6 */
" [-cf config-file] [-lf lease-file]\n"
#endif /* DHCPv6 */
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 12:24:27
guest
Dirty.Eager писал(а):undefined писал(а): isc-dhcp43-server-4.3.2_1 - без проблем работает как с ipv4 by default, так и с включенной
опцией сборки с ipv6 и соответственно с опциями "-4" и "-6".
Нет. При сборке с ipv6 опции "-4" и "-6" он не обрабатывает и, встретив их в argv[], выплевывает usage()
Код: Выделить всё
$ grep -B 1 -A 3 '\-4' /usr/ports/net/isc-dhcp43-server/work/dhcp-4.3.2/server/dhcpd.c
#ifdef DHCPv6
} else if (!strcmp(argv[i], "-4")) {
if (local_family_set && (local_family != AF_INET)) {
log_fatal("Server cannot run in both IPv4 and "
"IPv6 mode at the same time.");
--
#ifdef DHCPv6
" [-4|-6] [-cf config-file] [-lf lease-file]\n"
#else /* !DHCPv6 */
" [-cf config-file] [-lf lease-file]\n"
#endif /* DHCPv6 */
"at the same time"
Код: Выделить всё
# /usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd.
Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /usr/local/etc/dhcpd.conf
Database file: /var/db/dhcpd/dhcpd.leases
PID file: /var/run/dhcpd/dhcpd.pid
Wrote 1 leases to leases file.
Listening on BPF/em0/00:17:31:55:93:1b/192.168.86.64/27
Sending on BPF/em0/00:17:31:55:93:1b/192.168.86.64/27
Sending on Socket/fallback/fallback-net
Server starting service.
...
Код: Выделить всё
# ps axuww | grep dhcp
root 76999 0,0 0,1 17068 2728 2 S+ 12:18 0:00,01 /bin/sh /usr/local/etc/rc.d/isc-dhcpd start
dhcpd 77018 0,0 0,4 24864 13376 2 S+ 12:18 0:00,02 /usr/local/sbin/dhcpd -4 -d -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd -group dhcpd em0
#
Код: Выделить всё
# pkg info -f isc-dhcp43-server-4.3.2_1
isc-dhcp43-server-4.3.2_1
Name : isc-dhcp43-server
Version : 4.3.2_1
Installed on : Mon Aug 24 21:51:02 MSK 2015
Origin : net/isc-dhcp43-server
Architecture : freebsd:10:x86:64
Prefix : /usr/local
Categories : net
Licenses : ISCL
Maintainer : zi@FreeBSD.org
WWW : https://www.isc.org/products/DHCP/
Comment : ISC Dynamic Host Configuration Protocol server
Options :
BIND_SYMBOLS : off
IPV6 : on
LDAP : off
LDAP_SSL : on
PARANOIA : on
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 4.01MiB
Description :
The ISC Dynamic Host Configuration Protocol Distribution provides a
freely redistributable reference implementation of all aspects of the
DHCP protocol, through a suite of DHCP tools:
* A DHCP server (this port)
* A DHCP client
* A DHCP relay agent
WWW: https://www.isc.org/products/DHCP/
#
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 13:32:47
Dirty.Eager
Я здесь ошибся:
Dirty.Eager писал(а): Нет. При сборке с ipv6 опции "-4" и "-6" он не обрабатывает и, встретив их в argv[], выплевывает usage()
Следует читать "При сборке
без ipv6 опции "-4" и "-6" он не обрабатывает"
В общем, как я изначально и говорил:
Dirty.Eager писал(а): Натурные опыты

показали, что если isc-dhcp43-server-4.3.2_1 собран без поддержки ipv6, то он не воспринимает опцию "-4".
А если собран с поддержкой ipv6, то опцию "-4" он воспринимает. В man dhcpd этот нюанс не освещен.
У вас он собран с ipv6, поэтому опцию "-4" он понимает. У топикстартера - без ipv6, опцию "-4" не понимает.
undefined писал(а): "at the same time"
Код: Выделить всё
# pkg info -f isc-dhcp43-server-4.3.2_1
isc-dhcp43-server-4.3.2_1
Name : isc-dhcp43-server
Version : 4.3.2_1
..........
IPV6 : on
..........
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-25 14:48:56
guest
Dirty.Eager писал(а):Я здесь ошибся:
Dirty.Eager писал(а): Нет. При сборке с ipv6 опции "-4" и "-6" он не обрабатывает и, встретив их в argv[], выплевывает usage()
Следует читать "При сборке
без ipv6 опции "-4" и "-6" он не обрабатывает"
при сборке с ipv6, нет смысла ни в "-4" - понятно что другого не дано, ни тем более "-6" - ибо сборка
без ipv6.
Ну и по коду, это видно.
Как был собран dhcpd у ТС - неизвестно, изначально опции "-4" для запуска у него не было.
В самом первом ответе и было сказано:
- конфиг в порядке
- следует проверять опции запуска и для простоты убрать chroot-запуск
FreeBSD 10 + ISC DHCP
Добавлено: 2015-08-27 21:28:02
tj.anton
Ребят! Еще вопрос, добавил все хосты в свой конфиг
Но при запуске выходит ошибка
Код: Выделить всё
WARNING: Host declarations are global. They are not limited to the scope you declared them in.
Перечитал форумы пишут, что не там стоит скобка, весь конфиг на три раза перечитал не могу понять где трабл((
Код: Выделить всё
option domain-name "name";
option domain-name-servers 192.168.86.71;
default-lease-time 86400;
max-lease-time 86400;
authoritative;
log-facility local7;
ddns-update-style none;
##########################################################
subnet 192.168.86.64 netmask 255.255.255.224 {
option routers 192.168.86.65;
}
##########################################################
subnet 192.168.86.32 netmask 255.255.255.224 {
option routers 192.168.86.33;
host tariko {
hardware ethernet 00:22:15:65:B5:A7;
fixed-address 192.168.86.34;
}
}
##########################################################
subnet 192.168.86.96 netmask 255.255.255.224 {
option routers 192.168.86.97;
host dementev-416 {
hardware ethernet 00:15:F2:BD:7B:8B;
fixed-address 192.168.86.98;
}
host rudakov-418 {
hardware ethernet 00:02:44:77:17:98;
fixed-address 192.168.86.99;
}
host other-418 {
hardware ethernet 00:1F:C6:C4:F9:1D;
fixed-address 192.168.86.100;
}
host izergin-418 {
hardware ethernet 00:1F:C6:C4:E7:F5;
fixed-address 192.168.86.101;
}
host dver-419 {
hardware ethernet 90:2b:34:ac:c1:40;
fixed-address 192.168.86.109;
}
host center-419 {
hardware ethernet 00:25:22:AB:F4:66;
fixed-address 192.168.86.110;
}
host okno-419 {
hardware ethernet 00:25:22:9A:0D:BD;
fixed-address 192.168.86.111;
}
host fominykh-419 {
hardware ethernet 0C:4D:E9:B3:81:05;
fixed-address 192.168.86.112;
}
host mitina-419 {
hardware ethernet 00:08:A1:20:03:D7;
fixed-address 192.168.86.113;
}
host xerox-419 {
hardware ethernet 9C:93:4E:18:52:00;
fixed-address 192.168.86.114;
}
host buffalo-419 {
hardware ethernet 10:6F:3F:CD:47:E3;
fixed-address 192.168.86.115;
}
}
##########################################################
subnet 192.168.86.192 netmask 255.255.255.192 {
option routers 192.168.86.193;
host sbrodova-440 {
hardware ethernet 74:D4:35:71:7C:43;
fixed-address 192.168.86.194;
}
host skorynin-442 {
hardware ethernet 00:1F:E2:5C:20:76;
fixed-address 192.168.86.195;
}
host stakheeva-442 {
hardware ethernet 00:1F:E2:5C:20:6C;
fixed-address 192.168.86.196;
}
host tarasova-442 {
hardware ethernet 00:1F:C6:C4:E8:30;
fixed-address 192.168.86.197;
}
host xerox3300-442 {
hardware ethernet 00:00:AA:C1:38:BB;
fixed-address 192.168.86.198;
}
host xerox5020-442 {
hardware ethernet 08:00:37:CE:A8:5A;
fixed-address 192.168.86.199;
}
host tihonova-451 {
hardware ethernet E0:CB:4E:50:64:62;
fixed-address 192.168.86.205;
}
host ukhobotov-451 {
hardware ethernet 00:19:DB:CC:DD:F7;
fixed-address 192.168.86.206;
}
host nikitina-434 {
hardware ethernet 74:D4:35:71:0E:BA;
fixed-address 192.168.86.207;
}
host pavlenko-438 {
hardware ethernet 00:60:97:BF:DD:5D;
fixed-address 192.168.86.216;
}
host left1-438 {
hardware ethernet 74:D4:35:71:0F:12;
fixed-address 192.168.86.217;
}
host left2-438 {
hardware ethernet 00:24:1D:3E:58:F9;
fixed-address 192.168.86.218;
}
host left3-438 {
hardware ethernet 00:14:85:15:58:90;
fixed-address 192.168.86.219;
}
host xerox-447 {
hardware ethernet 00:00:AA:F7:CE:C5;
fixed-address 192.168.86.227;
}
host fedorov-447 {
hardware ethernet 90:2B:34:AC:C1:54;
fixed-address 192.168.86.228;
}
host right1-447 {
hardware ethernet 90:2b:34:ac:c2:13;
fixed-address 192.168.86.229;
}
host right2-447 {
hardware ethernet 00:1D:92:2C:A5:70;
fixed-address 192.168.86.230;
}
host right3-447 {
hardware ethernet 00:80:AD:8E:61:78;
fixed-address 192.168.86.231;
}
}
##########################################################
subnet 192.168.86.128 netmask 255.255.255.224 {
option routers 192.168.86.129;
host math422-0 {
hardware ethernet 38:2C:4A:BF:28:1B;
fixed-address 192.168.86.130;
}
host math422-1-1 {
hardware ethernet 38:2C:4A:BF:28:1C;
fixed-address 192.168.86.131;
}
host math422-1-2 {
hardware ethernet 38:2C:4A:BF:1D:B0;
fixed-address 192.168.86.132;
}
host math422-1-3 {
hardware ethernet 38:2C:4A:BF:27:9E;
fixed-address 192.168.86.133;
}
host math422-2-1 {
hardware ethernet 38:2C:4A:BF:24:F6;
fixed-address 192.168.86.134;
}
host math422-2-2 {
hardware ethernet 38:2C:4A:BF:28:1F;
fixed-address 192.168.86.135;
}
host math422-2-3 {
hardware ethernet 38:2C:4A:BF:28:25;
fixed-address 192.168.86.136;
}
host math422-3-1 {
hardware ethernet 38:2C:4A:BF:24:F9;
fixed-address 192.168.86.137;
}
host math422-3-2 {
hardware ethernet 38:2C:4A:BF:28:1D;
fixed-address 192.168.86.138;
}
host math422-3-3 {
hardware ethernet 38:2C:4A:BF:1D:F2;
fixed-address 192.168.86.139;
}
host math422-4-1 {
hardware ethernet 38:2C:4A:BF:24:CB;
fixed-address 192.168.86.140;
}
host math422-4-2 {
hardware ethernet 38:2C:4A:BF:27:E0;
fixed-address 192.168.86.141;
}
host math422-4-3 {
hardware ethernet 38:2C:4A:BF:1A:36;
fixed-address 192.168.86.142;
}
}
##########################################################
subnet 192.168.86.160 netmask 255.255.255.224 {
option routers 192.168.86.161;
}
##########################################################
FreeBSD 10 + ISC DHCP
Добавлено: 2015-09-29 18:27:15
lap
Попробуйте хосты вытащить за пределы сабнета