ubuntuusers.de

dhcpd startet nicht / No subnet declaration for eth0 ?

Status: Gelöst | Ubuntu-Version: Ubuntu 12.04 (Precise Pangolin)
Antworten |

Tobias_Z.

Anmeldungsdatum:
1. Juni 2012

Beiträge: Zähle...

Wohnort: Oberhausen

Hallo zusammen,

ich hatte schon viel gegoogled doch ich kann nicht verstehen warum dhcpd nicht startet und mir den Fehler ausgibt! Ich komme leider nicht weiter ... ☹

/var/log/syslog

Nov  8 10:05:55 tzserver dhcpd: No subnet declaration for eth0 (192.168.1.64).
Nov  8 10:05:55 tzserver dhcpd: ** Ignoring requests on eth0.  If this is not what
Nov  8 10:05:55 tzserver dhcpd:    you want, please write a subnet declaration
Nov  8 10:05:55 tzserver dhcpd:    in your dhcpd.conf file for the network segment
Nov  8 10:05:55 tzserver dhcpd:    to which interface eth0 is attached. **

Die subnet habe ich doch überall angegeben? Fehlt mir da noch was? Vielen Dank für Hilfe! Anbei mal meine Configs

Meine /etc/dhcp/dhcpd.conf

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
ddns-update-style none;
option domain-name "server.intern";
option domain-name-servers 192.168.1.1;
default-lease-time 600;
max-lease-time 7200;

authoritative;

  subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.100 192.168.1.200;
  option domain-name-servers 192.168.1.1;
  option domain-name "server.tz";
  interface eth0;
  option routers 192.168.1.1;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.1.255;
  default-lease-time 600;
  max-lease-time 7200;
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
root@tzserver:~# cat /etc/default/isc-dhcp-server 
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-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="eth0"

/etc/network/interfaces

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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
auto eth0
iface eth0 inet static
address 192.168.1.64
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

auto eth1
iface eth1 inet static
address 192.168.2.111
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255


auto eth2
iface eth2 inet static
address 192.168.3.100
netmask 255.255.255.0
network 192.168.3.0
braodcast 192.168.3.255

Isegrim

Avatar von Isegrim

Anmeldungsdatum:
29. Dezember 2006

Beiträge: 535

Hallo,

/etc/default/isc-dhcp-server

INTERFACES=""

Viele Grüße

Yalman

Anmeldungsdatum:
21. Juli 2012

Beiträge: Zähle...

Yalman

Anmeldungsdatum:
21. Juli 2012

Beiträge: Zähle...

Hallo,

nach einem eingehenden Studium der <Galileo Computing> Open Books und der man-Pages. -VIELENVIELEN DANK GALILEO COMPUTING FÜR EURE SUPER BOOKS!- / habe ich das Problem mit dem nicht startenden DHCP-Server gelöst.

Und zwar hatte das Interface keine IP-Adresse zugewiesen bekommen was ich mit dem Befehl

1
ifconfig eth0 192.168.0.2 

vorgenommen habe.

Gruß Yalcin

Antworten |