DHCP - nie mog

Ogólne pytania dotyczące systemu
Shakez
Beginner
Posty: 179
Rejestracja: 18 stycznia 2009, 14:36
Lokalizacja: Wronki

Post autor: Shakez »

xneit
Posty: 16
Rejestracja: 03 lutego 2009, 20:41

Post 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!
Awatar użytkownika
lessmian2
Member
Posty: 1088
Rejestracja: 30 kwietnia 2008, 19:38
Lokalizacja: Kraków

Post autor: lessmian2 »

xneit pisze:dhcpd3check syslog for diagnostics
Sprawdziłeś logi?
xneit
Posty: 16
Rejestracja: 03 lutego 2009, 20:41

Post 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.
Awatar użytkownika
lessmian2
Member
Posty: 1088
Rejestracja: 30 kwietnia 2008, 19:38
Lokalizacja: Kraków

Post 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.
xneit
Posty: 16
Rejestracja: 03 lutego 2009, 20:41

Post 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!
ODPOWIEDZ