Strona 2 z 2

: 23 października 2009, 21:30
autor: Shakez

: 24 października 2009, 08:03
autor: xneit
dhcp.conf:

Kod: Zaznacz cały

# DHCP Configuration

subnet 192.168.2.0 netmask 255.255.255.0 {
  option domain-name domena;
  option domain-name-servers 192.168.2.99;
  option routers 192.168.2.99;
  option broadcast-address 192.168.2.111;
  range 192.168.2.101 192.168.2.110;

        default-lease-time 7200;
        max-lease-time 14400;

}
Taki mam błąd, co zrobiłem źle ?

Kod: Zaznacz cały

Server:~# /etc/init.d/dhcp3-server start
Starting DHCP server: dhcpd3check syslog for diagnostics. failed!
 failed!

: 24 października 2009, 15:04
autor: lessmian2
xneit pisze:dhcpd3check syslog for diagnostics
Sprawdziłeś logi?

: 24 października 2009, 15:16
autor: xneit

Kod: Zaznacz cały

Server:~# dhcpd3 check syslog for diagnostics
Internet Systems Consortium DHCP Server V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/sw/dhcp/[/url]
Wrote 0 leases to leases file.

No subnet declaration for diagnostics (0.0.0.0).
** Ignoring requests on diagnostics.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface diagnostics is attached. **


No subnet declaration for for (0.0.0.0).
** Ignoring requests on for.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface for is attached. **


No subnet declaration for syslog (0.0.0.0).
** Ignoring requests on syslog.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface syslog is attached. **


No subnet declaration for check (0.0.0.0).
** Ignoring requests on check.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface check is attached. **


Not configured to listen on any interfaces!
Czyli coś nie tak z dhcpd.conf ale sam nie wiem co jest źle, całą zawartość pliku pokazałem.

: 24 października 2009, 16:27
autor: lessmian2
Pierwszą czynnością po sprawdzeniu logów i stwierdzeniu że nie wiesz jak rozwiązać problem, jest wklepanie komunikatu błędu w google. Zazwyczaj można zneleźć podobny problem. Przeczytaj, może wpadniesz na rozwiązanie.

: 25 października 2009, 08:48
autor: xneit
Tu podam wszystko co i jak robiłem ale sam nie wiem o co tu chodzi, co jest nie tak?

ifconfig:

Kod: Zaznacz cały

Server:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0e:2e:44:bf:18
          inet addr:192.168.0.104  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:2eff:fe44:bf18/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9940 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:340363 (332.3 KiB)  TX bytes:1071092 (1.0 MiB)
          Interrupt:18 Base address:0xd000

eth1      Link encap:Ethernet  HWaddr 00:14:2a:55:c1:68
          inet addr:192.168.2.100  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:23 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:840 (840.0 B)  TX bytes:840 (840.0 B)
/etc/default/dhcp3-server:

Kod: Zaznacz cały

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/dhcp3-server by the maintainer scripts

#
# This is a POSIX shell fragment
#

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth1"
/etc/dhcp3/dhcpd.conf:

Kod: Zaznacz cały

# DHCP Configuration

subnet 192.168.2.0 netmask 255.255.255.0 {
  option domain-name domena;
  option domain-name-servers 192.168.2.99;
  option routers 192.168.2.99;
  option broadcast-address 192.168.2.111;
  range 192.168.2.101 192.168.2.110;

        default-lease-time 7200;
        max-lease-time 14400;

}
Logi dhcp3:

Kod: Zaznacz cały

Server:~#  dhcpd3 check syslog for diagnostics
Internet Systems Consortium DHCP Server V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit [url]http://www.isc.org/sw/dhcp/[/url]
Wrote 1 leases to leases file.

No subnet declaration for diagnostics (0.0.0.0).
** Ignoring requests on diagnostics.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface diagnostics is attached. **


No subnet declaration for for (0.0.0.0).
** Ignoring requests on for.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface for is attached. **


No subnet declaration for syslog (0.0.0.0).
** Ignoring requests on syslog.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface syslog is attached. **


No subnet declaration for check (0.0.0.0).
** Ignoring requests on check.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface check is attached. **


Not configured to listen on any interfaces!