Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fastweb e dhcp
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Thu Jun 26, 2003 5:39 pm    Post subject: Fastweb e dhcp Reply with quote

Scusate la strafaq...
Qualcuno ha i passaggi semplici e veloci per far girare il dhcp per fastweb?
Cioe', ho smanettato come un cretino per giorni, ma "dhcpcd eth0" termina senza esito, ifconfig non serve, e nemmeno esiste /etc/network/interfaces in gentoo...
Una manina? :)
Back to top
View user's profile Send private message
g
n00b
n00b


Joined: 25 Mar 2003
Posts: 16

PostPosted: Thu Jun 26, 2003 9:43 pm    Post subject: Reply with quote

premessa: non ho fastweb ma uso anche io il dhcp

ho editato /etc/conf.d/net
ho scommentato iface_eth0="dhcp" e commentato quell'altro sopra...
e poi: rc-update add net.eth0 default

e funziona senza problemi

ADDENDUM: ora che ci penso ho configurato gentoo ad un amico con fastweb, stessa identica cosa, funziona senza problemi
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Fri Jun 27, 2003 8:33 am    Post subject: Re: Fastweb e dhcp Reply with quote

The Bard wrote:
"dhcpcd eth0" termina senza esito


sarebbe a dire?
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Fri Jun 27, 2003 8:55 am    Post subject: Re: Fastweb e dhcp Reply with quote

Peach wrote:
The Bard wrote:
"dhcpcd eth0" termina senza esito


sarebbe a dire?


Sarebbe a dire che parte, mi mette in attesa circa un minuto e poi mi rida' il prompt senza nemmeno darmi l'errore di timeout. E' lecito pensare che sia partito, e invece no...
Ora provo il metodo di g...
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Fri Jun 27, 2003 9:17 am    Post subject: Reply with quote

fai come ha detto g e parte :)
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Fri Jun 27, 2003 1:39 pm    Post subject: Reply with quote

g wrote:

ho editato /etc/conf.d/net
ho scommentato iface_eth0="dhcp" e commentato quell'altro sopra...
e poi: rc-update add net.eth0 default


Ho fatto il tutto e mi ritrovo, in avvio:

"ERROR: "/etc/init.d/net.eth0" has syntax errors in it; not executing...
Bringing eth0 up...
Failed to bring eth0 up

ERROR: problem to start the needed services.
"netmount" was not started.
Starting syslogd, klogd...
Starting local...
Error setting event mask Device or resource busy"

Ho cuttato un pochino, ma questi sono gli ultimi errori che ricevo, non so se le ultime 5 righe siano rilevanti o siano un problema a se' stante...
Ho guardato /etc/init.d/net.eth0, ma purtroppo capisco ben poco di bash scripting.

Idee?
Back to top
View user's profile Send private message
Ibanez-RgX
Apprentice
Apprentice


Joined: 19 Mar 2003
Posts: 165
Location: Rome

PostPosted: Fri Jun 27, 2003 2:02 pm    Post subject: Reply with quote

posta /etc/conf.d/net
anch'io ho configurato fastweb in quel modo alla mia ragazza su gentoo e va senza problemi
_________________
Home page http://www.gentoo-italia.net
Wiki http://wiki.gentoo-italia.net
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Fri Jun 27, 2003 5:57 pm    Post subject: Reply with quote

Allora, The Bard ha fatto bene, se fastweb risponde a canoni standard di dhcp.
Ossia, lanciare
Code:
# dhcpcd eth0

deve funzionare.

Puoi postare una 20 di righe del comando
Code:
# ifconfig eth0 up
# tcpdump -i eth0

????
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Sat Jun 28, 2003 10:42 pm    Post subject: Reply with quote

cerri wrote:
Allora, The Bard ha fatto bene, se fastweb risponde a canoni standard di dhcp.
Ossia, lanciare
Code:
# dhcpcd eth0

deve funzionare.

Puoi postare una 20 di righe del comando
Code:
# ifconfig eth0 up
# tcpdump -i eth0

????


In teoria fastweb segue gli standard, a sentire gli altri...
dhcpcd eth0, come detto, e' muto.
se do
# ifconfig eth0 up && tcpdump -i eth0 > dump.txt
mi ritrovo un file vuoto. Insomma, niente dati scmbiati con l'esterno.

In avvio mi diceva che net.eth0 contiene degli errori e non me lo eseguiva.

Ora il sistema si pianta dopo l'esecuzione di local.start, a quanto avevo visto in casi precedenti, sul tentativo di comunicazione dhcp. Nemmeno arrivo al login. Ora scrivo dal livecd...

Sto davvero impazzendo, sapete che posso fare? :(
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Sat Jun 28, 2003 10:43 pm    Post subject: Reply with quote

cerri wrote:
Allora, The Bard ha fatto bene, se fastweb risponde a canoni standard di dhcp.
Ossia, lanciare
Code:
# dhcpcd eth0

deve funzionare.

Puoi postare una 20 di righe del comando
Code:
# ifconfig eth0 up
# tcpdump -i eth0

????


In teoria fastweb segue gli standard, a sentire gli altri...
dhcpcd eth0, come detto, e' muto.
se do
# ifconfig eth0 up && tcpdump -i eth0 > dump.txt
mi ritrovo un file vuoto. Insomma, niente dati scmbiati con l'esterno.

In avvio mi diceva che net.eth0 contiene degli errori e non me lo eseguiva.

Ora il sistema si pianta dopo l'esecuzione di local.start, a quanto avevo visto in casi precedenti, sul tentativo di comunicazione dhcp. Nemmeno arrivo al login. Ora scrivo dal livecd...

Sto davvero impazzendo, sapete che posso fare? :(
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Sat Jun 28, 2003 11:38 pm    Post subject: Reply with quote

ti copio i miei /etc/init.d/net.eth0 e /etc/conf.d/net così spero che vada :D

Code:
solka@swamp solka $ cat /etc/conf.d/net
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $
 
# Global config file for net.* rc-scripts
 
# This is basically the ifconfig argument without the ifconfig $iface
#
#iface_eth0="192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"
 
# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
iface_eth0="dhcp"
#dhcpcd_eth0="..."
 
# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"
 
# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.  Leave commented to assign
# defaults for that interface.
#
#broadcast_eth0="192.168.0.255 192.168.0.255"
#netmask_eth0="255.255.255.0 255.255.255.0"
 
 
# For setting the default gateway
#
#gateway="eth0/192.168.0.1"


Code:

solka@swamp solka $ cat /etc/init.d/net.eth0
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/net.eth0,v 1.28 2003/03/16 08:03:19 azarah Exp $
 
#NB: Config is in /etc/conf.d/net
 
 
# For pcmcia users. note that pcmcia must be added to the same
# runlevel as the net.* script that needs it.
depend() {
        use hotplug pcmcia
}
 
checkconfig() {
        if [ -z "${iface_IFACE}" ]
        then
                eerror "Please make sure that /etc/conf.d/net has \$iface_$IFACE set"
                return 1
        fi
}
 
setup_env() {
        # No reason to check these multiple times in the file
        iface_IFACE="$(eval echo \$\{iface_${IFACE}\})"
        dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${IFACE}\})"
        inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})"
        alias_IFACE="$(eval echo \$\{alias_${IFACE}\})"
        status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')"
}
 
start() {
        local retval=0
 
        setup_env
        checkconfig || return 1
 
        ebegin "Bringing ${IFACE} up"
        if [ "${iface_IFACE}" != "dhcp" ]
        then
                /sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {
                        retval=$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}
                }
                # ifconfig do not always return failure ..
                /sbin/ifconfig ${IFACE} &> /dev/null || {
                        retval=$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}
                }
        else
                # Check that eth0 was not brough up by the kernel ...
                if [ "${status_IFACE}" != "up" ]
                then
                        /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || {
                                retval=$?
                                eend ${retval} "Failed to bring ${IFACE} up"
                                return ${retval}
                        }
                fi
        fi
        eend 0
 
        if [ -n "${alias_IFACE}" ]
        then
                local x=""
                local num=0
                local aliasbcast=""
                local aliasnmask=""
 
                ebegin "  Adding aliases"
                for x in ${alias_IFACE}
                do
                        aliasbcast="$(eval echo \$\{broadcast_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
                        if [ -n "${aliasbcast}" ]
                        then
                                aliasbcast="broadcast ${aliasbcast}"
                        fi
 
                        aliasnmask="$(eval echo \$\{netmask_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
                        if [ -n "${aliasnmask}" ]
                        then
                                aliasnmask="netmask ${aliasnmask}"
                        fi
 
                        ebegin "    ${IFACE}:${num}"
                        /sbin/ifconfig ${IFACE}:${num} ${x} \
                                ${aliasbcast} ${aliasnmask} >/dev/null
                        num=$((num + 1))
                        eend 0
                done
                save_options "alias" "${alias_IFACE}"
        fi
 
        if [ -n "${inet6_IFACE}" ]
        then
                local x=""
                ebegin "  Adding inet6 addresses"
                for x in ${inet6_IFACE}
                do
                        ebegin "    ${IFACE} inet6 add ${x}"
                        /sbin/ifconfig ${IFACE} inet6 add ${x} >/dev/null
                        eend 0
                done
                save_options "inet6" "${inet6_IFACE}"
        fi
 
        if [ -n "${gateway}" ] && [ "${gateway%/*}" = "${IFACE}" ]
        then
                ebegin "  Setting default gateway"
                # First delete any existing routes if it was setup by kernel ..
                /sbin/route del default dev ${gateway%/*} &>/dev/null
                /sbin/route add default gw ${gateway#*/} dev ${gateway%/*} \
                        netmask 0.0.0.0 metric 1 >/dev/null || {
 
                        local error=$?
                        ifconfig ${IFACE} down &>/dev/null
                        eend ${error} "Failed to bring ${IFACE} up"
                        stop
                        return ${error}
                }
                eend 0
        fi
 
        # Enabling rp_filter causes wacky packets to be auto-dropped by
        # the kernel
        if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
        then
                echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter
        fi
}
 
stop() {
        local myalias="$(get_options alias)"
        local myinet6="$(get_options inet6)"
 
        setup_env
 
        ebegin "Bringing ${IFACE} down"
 
        # Also down the inet6 interfaces
        if [ -n "${myinet6}" ]
        then
                local x=""
                for x in ${myinet6}
                do
                        /sbin/ifconfig ${IFACE} inet6 del ${x} >/dev/null
                done
        fi
 
        # Do some cleanup in case the amount of aliases change
        if [ -n "${myalias}" ]
        then
                local x=""
                local num=0
                for x in ${myalias}
                do
                        /sbin/ifconfig ${IFACE}:${num} down >/dev/null
                        num=$((num + 1))
                done
        fi
 
        if [ "${iface_IFACE}" = "dhcp" ]
        then
                local count=0
                while /sbin/dhcpcd -k ${IFACE} &>/dev/null && [ "${count}" -lt 9 ]
                do
                        # Give dhcpcd time to properly shutdown
                        sleep 1
                        count=$((count + 1))
                done
                if [ "${count}" -ge 9 ]
                then
                        eerror "Timed out trying to stop dhcpcd"
                fi
        else
                /sbin/ifconfig ${IFACE} down >/dev/null
        fi
        eend 0
}
 
 
# vim:ts=4

_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Sun Jun 29, 2003 12:01 am    Post subject: Reply with quote

Grazie solka, quando riusciro' a riavviare lo provero', cmq gia' dal diff ho verificato che e' diverso in un bel po' di punti... praticamente tutto! ;-)
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Jun 29, 2003 12:21 am    Post subject: Reply with quote

Si ma non c'entra niente.
Il fatto che il tcpdump sia vuoto e' grave, ossia la tua sk non vede per nulla traffico, quindi neppure il broadcast del server dhcp (e cmq altro broadcast, arp request ecc.).
Non credo che c'entrino i files postati da solka, poiche' sono solo dei "configuratori" mentre mi pare di capire che il tuo problema sia ben altrove...
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Sun Jun 29, 2003 12:25 am    Post subject: Reply with quote

scusa, il problema non sta qui?

The Bard wrote:

"ERROR: "/etc/init.d/net.eth0" has syntax errors in it; not executing...
Bringing eth0 up...
Failed to bring eth0 up


cmq boh, tiro solo a indovinare :D
_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Sun Jun 29, 2003 12:28 am    Post subject: Reply with quote

No, perche' quell'errore dice solo che ci sono errori nel file per configurare la sk al boot.
Non so quali sono gli errori, ma i comandi che gli ho fatto lanciare indicano che prima di tutto bisogna vedere come mai la sk non "vede" traffico.
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Sun Jun 29, 2003 10:39 pm    Post subject: Reply with quote

A questo punto vado sul drastico: come posso fare per reinstallare tutti i programmi di rete, resettare gli script di conf (tipo rc e net.eth0) e tutto senza reinstallare il sistema o comunque facendo meno danni possibile?
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Mon Jun 30, 2003 12:05 am    Post subject: Reply with quote

Mmmmhhhh.... mi sembra una domanda un po' troppo "windows" ... :P
Posta il tuo net.eth0, ma ripeto: IL PROBLEMA NON E' LI, la tua scheda non vede la rete!
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Tue Jul 01, 2003 2:07 pm    Post subject: Reply with quote

cerri wrote:
Mmmmhhhh.... mi sembra una domanda un po' troppo "windows" ... :P


:) Si', lo so, ma visto che il sistema crasha prima di riuscire ad avviare per il dhcp (o almeno cosi' mi pare di aver capito) vorrei togliere lui e net.eth0 dall'esecuzione automatica, deemergerli (almeno il primo, il secondo basterebbe sostituirlo con uno script di un altro con fw) e riemergerli...

Quote:
Posta il tuo net.eth0, ma ripeto: IL PROBLEMA NON E' LI, la tua scheda non vede la rete!


Lo so che il problema non e' la, ma non so che altro fare, dato che nemmeno posso bootare. Nemmeno sono riuscito a provare l'altro che mi hanno mandato...
Comunque eccolo qua:


Code:

cdimage root # cat /etc/init.d/net.eth0
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/net.eth0,v 1.28 2003/03/16 08:03:19 azarah Exp $

#NB: Config is in /etc/conf.d/net


# For pcmcia users. note that pcmcia must be added to the same
# runlevel as the net.* script that needs it.
depend() {
        use hotplug pcmcia
}

checkconfig() {
        if [ -z "${iface_IFACE}" ]
        then
                eerror "Please make sure that /etc/conf.d/net has \$iface_$IFACE set"
                return 1
        fi
}

setup_env() {
        # No reason to check these multiple times in the file
        iface_IFACE="$(eval echo \$\{iface_${IFACE}\})"
        dhcpcd_IFACE="$(eval echo \$\{dhcpcd_${IFACE}\})"
        inet6_IFACE="$(eval echo \$\{inet6_${IFACE}\})"
        alias_IFACE="$(eval echo \$\{alias_${IFACE}\})"
        status_IFACE="$(ifconfig | gawk -v IFACE="${IFACE}" '/Link/ { if ($1 == IFACE) print "up" }')"
}

start() {
        local retval=0

        setup_env
        checkconfig || return 1

        ebegin "Bringing ${IFACE} up"
        if [ "${iface_IFACE}" != "dhcp" ]
        then
                /sbin/ifconfig ${IFACE} ${iface_IFACE} >/dev/null || {
                        retval=$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}
                }
                # ifconfig do not always return failure ..
                /sbin/ifconfig ${IFACE} &> /dev/null || {
                        retval=$?
                        eend ${retval} "Failed to bring ${IFACE} up"
                        return ${retval}
                }
        else
                # Check that eth0 was not brough up by the kernel ...
                if [ "${status_IFACE}" != "up" ]
                then
                        /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || {
                                retval=$?
                                eend ${retval} "Failed to bring ${IFACE} up"
                                return ${retval}
                        }
                fi
        fi
        eend 0

        if [ -n "${alias_IFACE}" ]
        then
                local x=""
                local num=0
                local aliasbcast=""
                local aliasnmask=""

                ebegin "  Adding aliases"
                for x in ${alias_IFACE}
                do
                        aliasbcast="$(eval echo \$\{broadcast_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
                        if [ -n "${aliasbcast}" ]
                        then
                                aliasbcast="broadcast ${aliasbcast}"
                        fi

                        aliasnmask="$(eval echo \$\{netmask_${IFACE}\} \| awk \'\{ print \$$((num + 1)) \}\')"
                        if [ -n "${aliasnmask}" ]
                        then
                                aliasnmask="netmask ${aliasnmask}"
                        fi

                        ebegin "    ${IFACE}:${num}"
                        /sbin/ifconfig ${IFACE}:${num} ${x} \
                                ${aliasbcast} ${aliasnmask} >/dev/null
                        num=$((num + 1))
                        eend 0
                done
                save_options "alias" "${alias_IFACE}"
        fi

        if [ -n "${inet6_IFACE}" ]
        then
                local x=""
                ebegin "  Adding inet6 addresses"
                for x in ${inet6_IFACE}
                do
                        ebegin "    ${IFACE} inet6 add ${x}"
                        /sbin/ifconfig ${IFACE} inet6 add ${x} >/dev/null
                        eend 0
                done
                save_options "inet6" "${inet6_IFACE}"
        fi

        if [ -n "${gateway}" ] && [ "${gateway%/*}" = "${IFACE}" ]
        then
                ebegin "  Setting default gateway"
                # First delete any existing routes if it was setup by kernel ..
                /sbin/route del default dev ${gateway%/*} &>/dev/null
                /sbin/route add default gw ${gateway#*/} dev ${gateway%/*} \
                        netmask 0.0.0.0 metric 1 >/dev/null || {

                        local error=$?
                        ifconfig ${IFACE} down &>/dev/null
                        eend ${error} "Failed to bring ${IFACE} up"
                        stop
                        return ${error}
                }
                eend 0
        fi

        # Enabling rp_filter causes wacky packets to be auto-dropped by
        # the kernel
        if [ -e /proc/sys/net/ipv4/conf/${IFACE}/rp_filter ]
        then
                echo 1 > /proc/sys/net/ipv4/conf/${IFACE}/rp_filter
        fi
}

stop() {
        local myalias="$(get_options alias)"
        local myinet6="$(get_options inet6)"

        setup_env

        ebegin "Bringing ${IFACE} down"

        # Also down the inet6 interfaces
        if [ -n "${myinet6}" ]
        then
                local x=""
                for x in ${myinet6}
                do
                        /sbin/ifconfig ${IFACE} inet6 del ${x} >/dev/null
                done
        fi

        # Do some cleanup in case the amount of aliases change
        if [ -n "${myalias}" ]
        then
                local x=""
                local num=0
                for x in ${myalias}
                do
                        /sbin/ifconfig ${IFACE}:${num} down >/dev/null
                        num=$((num + 1))
                done
        fi

        if [ "${iface_IFACE}" = "dhcp" ]
        then
                local count=0
                while /sbin/dhcpcd -k ${IFACE} &>/dev/null && [ "${count}" -lt 9 ]
                do
                        # Give dhcpcd time to properly shutdown
                        sleep 1
                        count=$((count + 1))
                done
                if [ "${count}" -ge 9 ]
                then
                        eerror "Timed out trying to stop dhcpcd"
                fi
        else
                /sbin/ifconfig ${IFACE} down >/dev/null
        fi
        eend 0
}


# vim:ts=4
Back to top
View user's profile Send private message
koma
Advocate
Advocate


Joined: 06 Jun 2003
Posts: 2702
Location: Italy

PostPosted: Tue Jul 01, 2003 2:11 pm    Post subject: Reply with quote

The Bard controlla nel kernel se nelle opzioni di network hai messo il supporto dhcp =) io ho sklerato 2 gg così poi ho scoperto ke nn avevo messo il supporto :oops:

Comunque capita spesso
_________________
http://www.youtube.com/watch?v=_yoJI-Tl94g GLORY GLORY HYPNOTOAD
Back to top
View user's profile Send private message
maur8
Apprentice
Apprentice


Joined: 04 Mar 2003
Posts: 229
Location: Pescara (in serie B!!!), Italy

PostPosted: Wed Jul 02, 2003 3:51 pm    Post subject: Reply with quote

Per togliere un servizio dall'avvio automatico esegui da root
Code:
rc-update del service_name

Non serve unmerg-are i pacchetti.
_________________
Maur8.
"They decided our fate in a microsecond. Extermination"
Sgt. Kyle Rise, The Terminator
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Wed Jul 02, 2003 11:06 pm    Post subject: Reply with quote

koma wrote:
The Bard controlla nel kernel se nelle opzioni di network hai messo il supporto dhcp =) io ho sklerato 2 gg così poi ho scoperto ke nn avevo messo il supporto


Supporto dhcp? E dove, scusa?
Back to top
View user's profile Send private message
solka
Apprentice
Apprentice


Joined: 25 Jun 2003
Posts: 287
Location: Torino - ITA

PostPosted: Thu Jul 03, 2003 8:03 am    Post subject: Reply with quote

Sotto networking options


Code:
 │                                             <*> Packet socket                                                                                    │ │
  │ │                                             [ ]   Packet socket: mmapped IO                                                                      │ │
  │ │                                             < > Netlink device emulation                                                                         │ │
  │ │                                             [ ] Network packet filtering (replaces ipchains)                                                     │ │
  │ │                                             [*] Socket Filtering                                                                                 │ │
  │ │                                             <*> Unix domain sockets                                                                              │ │
  │ │                                             [*] TCP/IP networking                                                                                │ │
  │ │                                             [*]   IP: multicasting                                                                               │ │
  │ │                                             [ ]   IP: advanced router                                                                            │ │
  │ │                                             [*]   IP: kernel level autoconfiguration                                                             │ │
  │ │                                             [*]     IP: DHCP support                                                                             │ │
  │ │                                             [*]     IP: BOOTP support                                                                            │ │
  │ │                                             [ ]     IP: RARP support                 

_________________
"The only reason of the man's sadness
is that he can't stay peacefully in his room."

Blaise Pascal
Back to top
View user's profile Send private message
cerri
Bodhisattva
Bodhisattva


Joined: 05 Mar 2003
Posts: 2957
Location: # init S

PostPosted: Thu Jul 03, 2003 8:28 am    Post subject: Reply with quote

Quell'opzione non serve. Tutto quello sotto "IP: kernel level autoconfiguration " non e' necessario.

The Bard, puoi postare il tuo dmesg?
_________________
Enjoy your freedom.
Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you.
<----------------------->
Andrea Cerrito
Back to top
View user's profile Send private message
g
n00b
n00b


Joined: 25 Mar 2003
Posts: 16

PostPosted: Thu Jul 03, 2003 8:43 am    Post subject: Reply with quote

The Bard wrote:

Ho fatto il tutto e mi ritrovo, in avvio:

"ERROR: "/etc/init.d/net.eth0" has syntax errors in it; not executing...
Bringing eth0 up...
Failed to bring eth0 up


Quell'ERROR arriva dalla funzione setup_env() in /etc/init.d/net.eth0, visto che te lo da prima di dirti "Bringing eth0 up..."
Back to top
View user's profile Send private message
The Bard
n00b
n00b


Joined: 13 Jun 2003
Posts: 40

PostPosted: Thu Jul 03, 2003 5:54 pm    Post subject: Reply with quote

cerri wrote:
Quell'opzione non serve. Tutto quello sotto "IP: kernel level autoconfiguration " non e' necessario.

The Bard, puoi postare il tuo dmesg?


Attualmente, no. Non posso nemmeno bootare. Il mio dmesg, comunque, e' stato sovrascritto chrootando in hda dal livecd, quindi non si puo' nemmeno recuperare.

Un Bardo che ora affianca una Debian...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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