Mam problem z konfiguracją serwera DHCP na Debianie, poniżej załączam moje pliki konfiguracyjne:
Kod: Zaznacz cały
/etc/dhcp/dhcpd.conf
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;
option domain-name-servers 194.74.65.68;
authoritative;
subnet 192.168.1.0
netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.254;
}
Kod: Zaznacz cały
/etc/default/isc-dhcp-server
INTERFACES="eth0"
Kod: Zaznacz cały
ifconfig -a
eth0
Link encap:Ethernet HWaddr 00:0f:ea:1e:b3:39
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:0xe800
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:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7452 (7.2 KiB)
TX bytes:7452 (7.2 KiB)
Kod: Zaznacz cały
/etc/resolv.conf
nameserver 217.116.100.65
nameserver 79.163.127.70
Kod: Zaznacz cały
/etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
Kod: Zaznacz cały
/etc/init.d/isc-dhcp-server start
Kod: Zaznacz cały
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. failed! failed!
/var/log/syslog
Kod: Zaznacz cały
Nov 1 16:11:48 debian dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Nov 1 16:11:48 debian dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Nov 1 16:11:48 debian dhcpd: All rights reserved.
Nov 1 16:11:48 debian dhcpd: For info, please visit [URL]https://www.isc.org/software/dhcp/[/URL]
Nov 1 16:11:48 debian dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Nov 1 16:11:48 debian dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Nov 1 16:11:48 debian dhcpd: All rights reserved.
Nov 1 16:11:48 debian dhcpd: For info, please visit [URL]https://www.isc.org/software/dhcp/[/URL]
Nov 1 16:11:48 debian dhcpd: Wrote 0 leases to leases file.
Nov 1 16:11:48 debian dhcpd:
Nov 1 16:11:48 debian dhcpd: No subnet declaration for eth0 (no IPv4 addresses).
Nov 1 16:11:48 debian dhcpd: ** Ignoring requests on eth0. If this is not what
Nov 1 16:11:48 debian dhcpd: you want, please write a subnet declaration
Nov 1 16:11:48 debian dhcpd: in your dhcpd.conf file for the network segment
Nov 1 16:11:48 debian dhcpd: to which interface eth0 is attached. **
Nov 1 16:11:48 debian dhcpd:
Nov 1 16:11:48 debian dhcpd:
Nov 1 16:11:48 debian dhcpd:
Not configured to listen on any interfaces!
Kod: Zaznacz cały
uname -a
Linux debian 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686 GNU/Linux
dpkg --print-architecture
i386
Pozdrawiam,
Tesla