Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] dhcpd startet nach update auf 3.0.3-r2 nicht mehr
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Caipi
n00b
n00b


Joined: 06 Nov 2004
Posts: 43

PostPosted: Tue Feb 21, 2006 10:52 am    Post subject: [SOLVED] dhcpd startet nach update auf 3.0.3-r2 nicht mehr Reply with quote

Hallo,

habe gestern mal wieder ein emerge -pDu world gemacht und dabei auf dhcp-3.0.3-r2 upgedated. Danach mit etc-update die neuen init-scripte übernommen, eit dem startet der dhcp nur noch über /usr/bin/dhcp und nicht mer über /etc/init.d/dhcp start.

Irgendein Tipp? Oder muss ich downgraden? Koennte mir das kurz jemand erklaeren habe ich nämlich noch nie gemacht :oops: geht das dann über
Code:

echo "<=net-misc/dhcp-3.0.3-r2" >> /etc/portage/packages.keywords



Grüße

Caipi
_________________
SPEED IS NOTHING WITHOUT CONTROL


Last edited by Caipi on Fri Feb 24, 2006 4:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Tue Feb 21, 2006 11:59 am    Post subject: Re: dhcpd startet nach update auf 3.0.3-r2 nicht mehr Reply with quote

Caipi wrote:
Danach mit etc-update die neuen init-scripte übernommen

Nur die init-scripte, oder auch Konfigurationsfiles? Wenn Du letztere blind übernommen hast, hast Du eine vorhandene Konfiguration ggf. überschrieben. Bitte nie einfach alle Änderungen per etc-update übernehemen, sonst wäre das Tool relativ sinnlos.

Ein Downgrade ist natürlich möglich, zum Test per
Code:
emerge =net-misc/dhcp-<alte Version>

Permanent kannst Du das ganze durch Maskieren in /etc/portage/package.mask machen, dabei ist
Code:
man portage
Dein Freund :wink:

Aber schau doch zuerst mal im Log nach, das sollte die Ursachen aufzeigen, bzw. poste das Log hier im Forum!
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
Caipi
n00b
n00b


Joined: 06 Nov 2004
Posts: 43

PostPosted: Tue Feb 21, 2006 3:13 pm    Post subject: Reply with quote

Hi,

also meine config ist noch da, die habe ich natürlich belassen.
Das Log ist unfassbar aussagelos:
Code:

#/etc/init.d/dhcp start
 * Starting dhcpd ...                                                                                               [ !! ]
#cat /var/log/messages
[...]
Feb 21 16:09:51 server dhcpd: Internet Systems Consortium DHCP Server V3.0.3
Feb 21 16:09:51 server dhcpd: Copyright 2004-2005 Internet Systems Consortium.
Feb 21 16:09:51 server dhcpd: All rights reserved.
Feb 21 16:09:51 server dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Feb 21 16:09:51 server dhcpd: Wrote 0 deleted host decls to leases file.
Feb 21 16:09:51 server dhcpd: Wrote 0 new dynamic host decls to leases file.
Feb 21 16:09:51 server dhcpd: Wrote 0 leases to leases file.
Feb 21 16:09:51 server dhcpd:


Ich vergebe die IPs übrigens nach MAC-Adressen, deshalb kommt glaube ich das "Wrote 0....".


Grüße

Caipi
_________________
SPEED IS NOTHING WITHOUT CONTROL
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Tue Feb 21, 2006 3:36 pm    Post subject: Reply with quote

ist das schon der Output nach dem Downgrade (ich dachte, der dhcpd startet nicht mehr...)?
Auch bei einer MAC-basierten sollten leases vergeben werden, allerdings erst, wenn ein Client eine Adresse bezieht.
:arrow: was passiert im log, wenn ein Client versucht, eine Adresse zu beziehen?
_________________
http://blog.selbsthilfenetzwerk-cannabis-medizin.de
Back to top
View user's profile Send private message
Caipi
n00b
n00b


Joined: 06 Nov 2004
Posts: 43

PostPosted: Tue Feb 21, 2006 3:47 pm    Post subject: Reply with quote

Ne ist noch ohne downgrade.
Ist aber genau der Verlauf:
1. Ich starte den dhcp über /etc/init.d/dhcp start,
2. der sagt mir er kann nicht starten
3. die Ausgabe im log sagt aber nicht wirklich das was falsch ist, die clients bekommen aber keine IPs

Starte ich über:
/usr/bin/dhcp -d -f, geht es ich sehe dann auch wie die clients IP-Adresse zugewiesen bekommen.
Dann sollte das doch an den neuen init-Scripten liegen, oder? Will nur sicher gehen das ich da nicht flasch denke und ein Downgrade nicht notwendig waere. Die dhcpd.conf ist ja anscheinend OK, sonst würde doch /usr/bin/dhcp -d -f nicht gehen!?
_________________
SPEED IS NOTHING WITHOUT CONTROL
Back to top
View user's profile Send private message
Caipi
n00b
n00b


Joined: 06 Nov 2004
Posts: 43

PostPosted: Fri Feb 24, 2006 11:10 am    Post subject: Reply with quote

Tja, jetzt kam heute ein update auf 3.0.3-r4 raus, aber ledier startet er immer noch nur von hand. könnte mir jemand vielleicht sein /etc/init.d/dhcp posten? dann koennte ich das so übernehmen.

Grüße
_________________
SPEED IS NOTHING WITHOUT CONTROL
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Fri Feb 24, 2006 2:04 pm    Post subject: Reply with quote

Code:
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcp.init,v 1.6 2006/02/23 16:21:24 uberlord Exp $

depend() {
        need net
        use logger dns
}

get_var() {
        sed -n 's/^[[:blank:]]\?'"$1"' "*\([^#";]\+\).*/\1/p' \
                "${CHROOT}/etc/dhcp/dhcpd.conf"
}

start() {
        if [[ ! -f "${CHROOT}/etc/dhcp/dhcpd.conf" ]] ; then
                eerror "${CHROOT}/etc/dhcp/dhcpd.conf does not exist"
                return 1
        fi

        local leasefile="$(get_var lease-file-name)"
        leasefile="${CHROOT}/${leasefile:-/var/lib/dhcp/dhcpd.leases}"
        if [[ ! -f ${leasefile} ]] ; then
                ebegin "Creating ${leasefile}"
                touch "${leasefile}"
                chown dhcp:dhcp "${leasefile}"
                eend $? || return 1
        fi

        # Ensure that LD_PRELOAD is really exported
        [[ -n ${LD_PRELOAD} ]] && export LD_PRELOAD="${LD_PRELOAD}"

        local pidfile="$(get_var pid-file-name)"
        pidfile="${pidfile:-/var/run/dhcp/dhcpd.pid}"

        ebegin "Starting ${CHROOT:+chrooted }dhcpd"
        start-stop-daemon --start --exec /usr/sbin/dhcpd \
                --pidfile "${CHROOT}/${pidfile}" \
                -- -q -pf "${pidfile}" \
                -user dhcp -group dhcp ${DHCPD_OPTS} \
                ${CHROOT:+-chroot} ${CHROOT} ${IFACE}
        eend $? && save_options pidfile "${CHROOT}/${pidfile}"
}

stop() {
        local pidfile="$(get_options pidfile)" chrooted=""
        [[ ${pidfile} != //var/run/dhcp/dhcpd.pid ]] && chrooted="chrooted "
        ebegin "Stopping ${chrooted}dhcpd"
        start-stop-daemon --stop --exec /usr/sbin/dhcpd \
            --pidfile "${pidfile}"
        eend $?
}


Ist die aktuelle nach dem Update auf dhcp-3.0.3-r4 heute!
Back to top
View user's profile Send private message
Caipi
n00b
n00b


Joined: 06 Nov 2004
Posts: 43

PostPosted: Fri Feb 24, 2006 2:48 pm    Post subject: Reply with quote

Dumme frage, nur um sicher zu gehen. Bei dir funktioniert das, also Du startest damit den DHCP?
_________________
SPEED IS NOTHING WITHOUT CONTROL
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Fri Feb 24, 2006 3:11 pm    Post subject: Reply with quote

Caipi wrote:
Dumme frage, nur um sicher zu gehen. Bei dir funktioniert das, also Du startest damit den DHCP?


Ja noch nie Probleme gehabt!

Meine Config-Dateien:


Code:

root@nemesis: pts/1: 15 files 774Kb -> cat /etc/conf.d/dhcp |grep -v "#"

IFACE="eth0"

DHCPD_OPTS="-q


Code:
root@nemesis: pts/1: 15 files 774Kb -> cat /etc/dhcp/dhcpd.conf |grep -v "#"
option domain-name "ycn.com";
ddns-update-style ad-hoc;
option subnet-mask 255.255.255.0;
option routers 192.168.0.253;
default-lease-time 600;
max-lease-time 7200;
authoritative;



deny unknown-clients;

subnet 192.168.0.0 netmask 255.255.255.0 {

}
  host artec  {
        hardware ethernet xxxxxxxxxxxx
          fixed-address 192.168.0.52;
                               }

  host wlanrouter {
    hardware ethernet xxxxxxxx;
    fixed-address 192.168.0.5;
  }

  host vmware-windows {
    hardware ethernet 0xxxxxxxxxxxxxx;
    fixed-address 192.168.0.3;
  }

  host laptop-lan {
     hardware ethernet xxxxxxxxxxxxxx;
     fixed-address 192.168.0.2;
  }

  host laptop {
    hardware ethernet xxxxxxxxxxxxx;
    fixed-address 192.168.0.1;
}

  host vmware-test1 {
    hardware ethernet xxxxxxxxxxxxx;
    fixed-address 192.168.0.199;
}

  host vmware-test2 {
      hardware ethernet xxxxxxxxxx;
          fixed-address 192.168.0.189;
          }


So schaut der Prozess dann aus

Code:
root@nemesis: pts/1: 15 files 774Kb -> !ps
ps ax|grep dhcp
23479 ?        Ss     0:00 /usr/sbin/dhcpd -q -pf /var/run/dhcp/dhcpd.pid -user dhcp -group dhcp -q eth0
32091 pts/1    S+     0:00 grep dhcp

Fre Feb 24 16:10:56 CET 2006
/home/markus
root@nemesis: pts/1: 15 files 774Kb ->
Back to top
View user's profile Send private message
Caipi
n00b
n00b


Joined: 06 Nov 2004
Posts: 43

PostPosted: Fri Feb 24, 2006 4:01 pm    Post subject: Reply with quote

DANKE!

Weil es bei mir immer noch nicht wollte, habe ich dhcp nochmal unmerged und ausserdem alles was noch so übrigbleibt per hand gelöscht. da emerge und er läuft, ich weiss zwar leider noch nicht was es war, aber es tut wieder.
_________________
SPEED IS NOTHING WITHOUT CONTROL
Back to top
View user's profile Send private message
tuxian
l33t
l33t


Joined: 26 Jan 2004
Posts: 766
Location: Austria

PostPosted: Fri Feb 24, 2006 4:16 pm    Post subject: Reply with quote

Okay super dann mach bitte ein solved aus dem Threadtitel!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum