The OpenNET Project / Index page

[ новости /+++ | форум | wiki | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Нужна помощь, не работает DHCP "
Вариант для распечатки  
Пред. тема | След. тема 
Форумы Открытые системы на сервере (DHCP / FreeBSD)
Изначальное сообщение [ Отслеживать ]

"Нужна помощь, не работает DHCP "  +/
Сообщение от Moreh on 12-Фев-10, 09:27 
Здравствуйте, прошу помоч.
Значит на интерфейсе rl1 одна локалка,на rl0 вторая в которой надо выдавать ip адреса.
Преблема заключается в ледующем: есть фряха 7.2 на ней пытаюсь поставить DHCP всё установил перезагружаюсь выходит ошибка.

moreh# cat /var/log/messages

Feb 12 09:09:44 moreh savecore: no dumps found
Feb 12 09:09:45 moreh kernel: rl0: link state changed to UP
Feb 12 09:09:45 moreh kernel: rl1: link state changed to UP
Feb 12 09:09:45 moreh dhcpd: Can't bind to dhcp address: Address already in use
Feb 12 09:09:45 moreh dhcpd: Please make sure there is no other dhcp server
Feb 12 09:09:45 moreh dhcpd: running and that there's no entry for dhcp or
Feb 12 09:09:45 moreh dhcpd: bootp in /etc/inetd.conf.   Also make sure you
Feb 12 09:09:45 moreh dhcpd: are not running HP JetAdmin software, which
Feb 12 09:09:45 moreh dhcpd: includes a bootp server.

Но dhcpd всё равно запускается, но не работает.

moreh# sockstat -4l | grep :67
dhcpd    dhcpd      822   5  udp4   *:67                  *:*
moreh# ps ax | grep dhcp
1134  ??  Is     0:00,00 /usr/local/sbin/dhcpd -q -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd


Потом пробую выключить его и включить снова - ошибки нет, но он не работает.

moreh# /usr/local/etc/rc.d/isc-dhcpd restart
Stopping dhcpd.
Starting dhcpd.

Не работает потому что делаю tcpdump запускаю на соседней машине получить ip и никаких пакетов неприходит, хотя если поставить статичный адрес и начать пинговать пакеты идут нормально, связь есть.

moreh# tcpdump -i rl0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on rl0, link-type EN10MB (Ethernet), capture size 96 bytes

Конфиги
moreh# cat /etc/rc.conf
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.

kern_securelevel="-1"
keymap="ru.koi8-r"
scrnmap="koi8-r2cp866"
font8x14="cp866-8x14"
font8x16="cp866b-8x16"
font8x8="cp866-8x8"
keyrate="fast"
mousechar_start="3"
saver="daemon"
#--------------------------------------------------------
hostname="londagw"
ifconfig_rl0="inet 192.170.0.1 netmask 255.255.255.0"
ifconfig_rl1="inet 192.168.0.101 netmask 255.255.255.0"
#--------------------------------------------------------
# set up static routing
defaultrouter="192.168.0.4"
#--------------------------------------------------------
# starting service daemons
sendmail_enable="NONE"
sshd_enable="YES"
inetd_enable="YES"
vsftpd_enable="YES"
mysql_enable="YES"
apache_enable="YES"
dovecot_enable="YES"
exim_enable="YES"
#squid_enable="YES"
hylafax_enable="YES"
clamav_freshclam_enable="YES"
firewall_enable="YES"
firewall_type="open"
firewall_logging="YES"
natd_enable="YES"
natd_interface="YES"
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="rl0"

moreh# cat /usr/local/etc/dhcpd.conf
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
option domain-name "Gate.my";
server-identifier 192.170.0.1;
option domain-name-servers 192.170.0.1;
ddns-updates on;
authoritative;
ddns-update-style interim;
ddns-domainname "home.local.";
ddns-rev-domainname "in-addr.arpa.";
deny client-updates;
option ip-forwarding off;
deny bootp;

subnet 192.170.0.0 netmask 255.255.255.0 {
    range 192.170.0.10 192.170.0.110;
    one-lease-per-client on;
    default-lease-time 3600;
    max-lease-time 3601;
    option routers 192.170.0.1;
    interface rl0;
}
Помогите уже 2 дня мучаюсь.

Высказать мнение | Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Нужна помощь, не работает DHCP "  +/
Сообщение от Сергей (??) on 12-Фев-10, 13:56 
Может вместо natd_interface="YES" написать natd_interface="rl0",
а вообще выключите все демоны, оставьте только firewall и dhcpd и начинайте смотреть...
Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

2. "Нужна помощь, не работает DHCP "  +/
Сообщение от pavel (??) on 12-Фев-10, 14:01 
/usr/local/sbin/dhcpd xxx rl0
должно быть.
Убери -q
Посмотри что говорит.
Скорее всего dhcpd пытается стать на все интерфейсы по умолчанию.Не поможет?
Поставь rc_debug="YES"
Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

3. "Нужна помощь, не работает DHCP "  +/
Сообщение от Moreh on 12-Фев-10, 14:38 
поставил rc_rebug вот что выдал
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: nscd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: ntpd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: powerd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: rarpd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: sdpd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: rfcomm_pppd_server_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: rtadvd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: rwhod_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: timed_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: ugidfw_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: nis_yppasswdd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: threeproxy_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: jail is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: jail is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: jail is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: pid file (/var/run/dhcpd/dhcpd.pid): not readable.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: run_rc_command: start_precmd: dhcpd_precmd
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: safe_run: safe_chmog /var/run/dhcpd /var/db/dhcpd
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_devfs_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: mounted: /var/run/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: precious: /var/run/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: lsmod: /var/run/dhcpd rc=0
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_devfs_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: mounted: /var/db/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: precious: /var/db/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: lsmod: /var/db/dhcpd rc=0
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: safe_run: safe_chmog /var/db/dhcpd/dhcpd.leases
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: precious: /var/db/dhcpd/dhcpd.leases rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: lsmod: /var/db/dhcpd/dhcpd.leases rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: safe_run: chown dhcpd:dhcpd /var/db/dhcpd/dhcpd.leases
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: run_rc_command: doit: /usr/local/sbin/dhcpd  -cf /usr/local/etc/dhcpd.conf -lf /
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: jail is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: jail is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: run_rc_command: start_precmd: dhcpd_precmd
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: paranoia is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: safe_run: safe_chmog /var/run/dhcpd /var/db/dhcpd
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_devfs_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: mounted: /var/run/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: precious: /var/run/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: lsmod: /var/run/dhcpd rc=0
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_devfs_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: mounted: /var/db/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: precious: /var/db/dhcpd rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: lsmod: /var/db/dhcpd rc=0
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: safe_run: safe_chmog /var/db/dhcpd/dhcpd.leases
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: precious: /var/db/dhcpd/dhcpd.leases rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: lsmod: /var/db/dhcpd/dhcpd.leases rc=1
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: safe_run: chown dhcpd:dhcpd /var/db/dhcpd/dhcpd.leases
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: run_rc_command: doit: /usr/local/sbin/dhcpd  -cf /usr/local/etc/dhcpd.conf -lf /
Feb 12 14:20:55 moreh dhcpd: Can't bind to dhcp address: Address already in use
Feb 12 14:20:55 moreh dhcpd: Please make sure there is no other dhcp server
Feb 12 14:20:55 moreh dhcpd: running and that there's no entry for dhcp or
Feb 12 14:20:55 moreh dhcpd: bootp in /etc/inetd.conf.   Also make sure you
Feb 12 14:20:55 moreh dhcpd: are not running HP JetAdmin software, which
Feb 12 14:20:55 moreh dhcpd: includes a bootp server.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: cupsd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: samba_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: samba_enable is set to YES.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: run_rc_command: start_precmd: samba_start_precmd
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: run_rc_command: doit: samba_cmd
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: nmbd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: smbd_enable is set to NO.
Feb 12 14:20:55 moreh root: /etc/rc: DEBUG: checkyesno: winbindd_enable is set to NO.
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: checkyesno: squid_enable is set to NO.
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: checkyesno: mysql_enable is set to YES.
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: pid file (/var/db/mysql/moreh.pid): not readable.
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: run_rc_command: start_precmd: mysql_prestart
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: checkyesno: mysql_limits is set to NO.
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: run_rc_command: doit: su -m mysql -c 'sh -c "/usr/local/bin/mysqld_safe  --defau
Feb 12 14:20:56 moreh root: /etc/rc: DEBUG: run_rc_command: start_postcmd: mysql_poststart
Feb 12 14:20:57 moreh root: /etc/rc: DEBUG: checkyesno: hylafax_enable is set to YES.
Feb 12 14:20:57 moreh root: /etc/rc: DEBUG: run_rc_command: doit: /usr/local/sbin/hylafax start
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: checkyesno: clamav_clamd_enable is set to NO.
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: checkyesno: clamav_freshclam_enable is set to YES.
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: pid file (/var/run/clamav/freshclam.pid): not readable.
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: run_rc_command: doit: /usr/local/bin/freshclam  --daemon -p /var/run/clamav/fres
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: checkyesno: exim_enable is set to YES.
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: pid file (/var/run/exim.pid): not readable.
Feb 12 14:20:58 moreh root: /etc/rc: DEBUG: run_rc_command: start_precmd: start_precmd


отключал всё в rc.conf такая же фигня

когда останавливаю и включаю снова видно что демон работает на rl0 интерфесе как и надо

morehw# /usr/local/etc/rc.d/isc-dhcpd start
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: jail is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: jail is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_enable is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: run_rc_command: start_precmd: dhcpd_precmd
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chroot_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: paranoia is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_chuser_enable is set to YES.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: safe_run: safe_chmog /var/run/dhcpd /var/db/dhcpd
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_devfs_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: mounted: /var/run/dhcpd rc=1
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: precious: /var/run/dhcpd rc=1
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: lsmod: /var/run/dhcpd rc=0
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_devfs_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: checkyesno: dhcpd_jail_enable is set to NO.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: mounted: /var/db/dhcpd rc=1
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: precious: /var/db/dhcpd rc=1
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: lsmod: /var/db/dhcpd rc=0
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: safe_run: safe_chmog /var/db/dhcpd/dhcpd.leases
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: precious: /var/db/dhcpd/dhcpd.leases rc=1
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: lsmod: /var/db/dhcpd/dhcpd.leases rc=1
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: safe_run: chown dhcpd:dhcpd /var/db/dhcpd/dhcpd.leases
Starting dhcpd.
/usr/local/etc/rc.d/isc-dhcpd: DEBUG: run_rc_command: doit: /usr/local/sbin/dhcpd  -cf /usr/local/etc/dhcpd.conf -lf /var/db/dhcpd/dhcpd.leases -pf /var/run/dhcpd/dhcpd.pid -user dhcpd -group dhcpd rl0
Internet Systems Consortium DHCP Server V3.0.7
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 leases to leases file.
Listening on Socket/rl0/192.170.0/24
Sending on   Socket/rl0/192.170.0/24

И так же  пакеты никакние не приходят на rl0 интерфейс.
Ещё интересный факт в том что если  руками  посылать с этой же сетёвки на неё же  броадскастный пакет с запросом ну типа dhclient rl0 то в tcpdump всё отобращается что пакеты приходят.
Даже сетёвку пробовал менять.
Может проблема в каких нибудь днс, или ещё что..

Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

4. "Нужна помощь, не работает DHCP "  +/
Сообщение от Сергей (??) on 13-Фев-10, 15:33 
Он у вас похоже скомпилирован для старта в jail, так что смотрите туда, в /etc/mtree...
Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

5. "Нужна помощь, не работает DHCP "  +/
Сообщение от Amator (ok) on 14-Фев-10, 17:04 

>subnet 192.170.0.0 netmask 255.255.255.0 {
>    range 192.170.0.10 192.170.0.110;
>    one-lease-per-client on;
>    default-lease-time 3600;
>    max-lease-time 3601;
>    option routers 192.170.0.1;
>    interface rl0;
>}

а interface rl0;
зачем?
я к примеру не знаю зачем эта опция в описании subnet,
если Вы явно задали слушающий интерфейс в rc.conf:

dhcpd_ifaces="rl0"

может в этом причина?
попробуйте закомментировать interface rl0;

Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

6. "Нужна помощь, не работает DHCP "  +/
Сообщение от pavel email(??) on 15-Фев-10, 01:46 
однозначно надо запускать в chroot но не в jail,так что надо просто удалить порт,переставить порт,
посмотреть на вывод pkg_message  или прочитать в нем,УБРАТЬ ВСЕ ПРО JAIL,оставить chroot ,забыл-для непонятливых -- добавить все в rc.conf
указать ИНТЕРФЕЙС обязательно и все будет.Если нет-смотреть фаервол.И на будущее-там где не должно быть
какого сервиса (DHCP) на этом интерфейсе он должен быть отключен.А то бывают случаи...

pavel

Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

7. "Нужна помощь, не работает DHCP "  +/
Сообщение от Moreh on 15-Фев-10, 08:33 
>[оверквотинг удален]
>
>а interface rl0;
>зачем?
>я к примеру не знаю зачем эта опция в описании subnet,
>если Вы явно задали слушающий интерфейс в rc.conf:
>
>dhcpd_ifaces="rl0"
>
>может в этом причина?
>попробуйте закомментировать interface rl0;

просто если а interface rl0; не поставить  то он будет ругатся на то что подсеть 192.168.0.0/24 на интерфейсе rl1 не описана и не запускается. Хз почему так не могу понять, в rc.conf прямо написано на каком интерфейсе работать.

если вывести

moreh# /usr/local/etc/rc.d/isc-dhcpd rcvar
# dhcpd
dhcpd_enable=YES

хотя в конфиге  описано больше переменных
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="rl0"
dhcpd_enable="YES"
#rc_debug="YES"

Высказать мнение | Ответить | Правка | ^ | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




Спонсоры:
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2020 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру