LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-13-2010, 07:28 AM   #1
uezelbruezel2000
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Rep: Reputation: 0
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

Last edited by uezelbruezel2000; 11-13-2010 at 07:35 AM.
 
Old 11-15-2010, 09:03 PM   #2
w7hd
Member
 
Registered: Aug 2004
Location: Tucson, AZ
Distribution: Ubuntu 9.04 & 10.10, RHEL 4 & 5
Posts: 48
Blog Entries: 3

Rep: Reputation: 16
INTERFACES="eth0:1" is incorrect.
This should read:
INTERFACES="eth0" -OR-
INTERFACES="eth0 eth1" for two interfaces
 
Old 11-16-2010, 01:55 AM   #3
uezelbruezel2000
LQ Newbie
 
Registered: Nov 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks. Indeed that was the problem. Additionally I did the iptables with the option -o ppp.

Rgds
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
red5 streaming server installation on debian squeeze failed. tkmsr Linux - Software 0 04-28-2010 06:26 AM
X Server won't start, /dev/fb0 not found, clean install of Debian Squeeze frumpus Linux - Hardware 12 02-26-2010 03:27 PM
debian etch dhcp3 server problem after upgrade rotezecke Linux - Newbie 14 12-16-2008 08:47 PM
ISC dhcp3 (ver. 3.04) vlan setup giving out of improper subnet addresses Valkyr1e Linux - Server 1 07-26-2008 11:15 AM
DHCP - Multiple range in 1 subnet??? - Debian Sarge 3.1, DHCP3.0 kenwoodgt Linux - Networking 1 01-24-2008 03:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration