LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Debian Squeeze - isc-dhcp3-server failed to start (subnet problem?) (https://www.linuxquestions.org/questions/linux-networking-3/debian-squeeze-isc-dhcp3-server-failed-to-start-subnet-problem-844037/)

uezelbruezel2000 11-13-2010 07:28 AM

Debian Squeeze - isc-dhcp3-server failed to start (subnet problem?)
 
Hi there,

I'm now trying since a week to configure my system. I have one ethernet card eth0 which i use for pppoe and like to use as a dhcp server. So the point is really to have other pcs to get an ip from my debian server. I have uninstalled the netword daemon from debian, but I have installed dnsmasq and pppoeconf. Internet is working but not the dhcp server.

Here is my network/interfaces
---------------------------
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
iface eth0 inet dhcp

auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
provider dsl-provider

auto eth0:1
iface eth0:1 inet static
address 192.168.1.1
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
dns-nameservers 192.168.1.1
---------------------------
Here is the output of ifconfig
----------------------------
addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:70 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4744 (4.6 KiB) TX bytes:4744 (4.6 KiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:85.181.200.189 P-t-P:213.191.89.22 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:4105 errors:0 dropped:0 overruns:0 frame:0
TX packets:4356 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:3261928 (3.1 MiB) TX bytes:630045 (615.2 KiB)

----------------------------
Here is my dhcpd.conf cat /etc/dhcp/dhcpd.conf
-----------------------------------
cat /etc/dhcp/dhcpd.conf
#
# Sample configuration file for ISC dhcpd for Debian
#
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;

#

subnet 192.168.1.0 netmask 255.255.255.0 {
option domain-name "mylan";

option domain-name-servers 192.168.1.1;
option routers 192.168.1.1;

option subnet-mask 255.255.255.0;

range 192.168.1.100 192.168.1.200;
}

-----------------------------------
And here is the error I get:
-----------------------------------
/etc/init.d/isc-dhcp-server restart
Stopping ISC DHCP server: dhcpd failed!
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
failed!

-----------------------------------

And here is the /var/log/syslog
------------------------------------
hcp/
Nov 13 14:23:38 ion dhcpd: Internet Systems Consortium DHCP Server 4.1.1-P1
Nov 13 14:23:38 ion dhcpd: Copyright 2004-2010 Internet Systems Consortium.
Nov 13 14:23:38 ion dhcpd: All rights reserved.
Nov 13 14:23:38 ion dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Nov 13 14:23:38 ion dhcpd: Wrote 0 leases to leases file.
Nov 13 14:23:38 ion dhcpd:
Nov 13 14:23:38 ion dhcpd: No subnet declaration for eth0:1 (no IPv4 addresses).
Nov 13 14:23:38 ion dhcpd: ** Ignoring requests on eth0:1. If this is not what
Nov 13 14:23:38 ion dhcpd: you want, please write a subnet declaration
Nov 13 14:23:38 ion dhcpd: in your dhcpd.conf file for the network segment
Nov 13 14:23:38 ion dhcpd: to which interface eth0:1 is attached. **
Nov 13 14:23:38 ion dhcpd:
Nov 13 14:23:38 ion dhcpd:
Nov 13 14:23:38 ion dhcpd: Not configured to listen on any interfaces!

-----------------------------------
And here is my 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:1"

----------------------------------


Additionally it seems that pppoe overwrites my /etc/resolv.conf. I have uninstalled resolvconf.


I do not know what to do any more. Any ideas?

Thanks

w7hd 11-15-2010 09:03 PM

INTERFACES="eth0:1" is incorrect.
This should read:
INTERFACES="eth0" -OR-
INTERFACES="eth0 eth1" for two interfaces

uezelbruezel2000 11-16-2010 01:55 AM

Thanks. Indeed that was the problem. Additionally I did the iptables with the option -o ppp.

Rgds


All times are GMT -5. The time now is 03:51 AM.