Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eth0 beim Booten
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
Flotombo
n00b
n00b


Joined: 23 Nov 2003
Posts: 16

PostPosted: Sun Nov 23, 2003 10:52 pm    Post subject: eth0 beim Booten Reply with quote

Hallo,

Ich benutze mein Laptop an vielen Orten. Solange ich eine Netzwerkverbindung habe und der Stecker drin steckt, ist auch alles in Ordnung.

Wenn ich aber kein Netzwerkkabel drinstecken habe, dauert es beim booten sehr lange, bis er weitermacht. Er bleibt also bei eth0 eine Weile stehen.

Jetzt will ich aber, dass er das einfach im Hintergrund macht. Es soll also beim Bootvorgang erst mal "übergangen" werden und "nebenher" erledigt werden.

Wo und wie kann man so was einstellen ?

Danke

Flotombo
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Sun Nov 23, 2003 11:20 pm    Post subject: Reply with quote

Quote:
... dauert es beim booten sehr lange, bis er weitermacht.

Wahrscheinlich hast Du DHCP aktiviert (in /etc/conf.d/net) und er probiert eine IP-Adresse von DHCP-Server zu beziehen (findet aber keinen Server).
Wenn Du eine fixe IP-Adresse einstellst solltest Du einen schnellen Boot haben und kannst bei Bedarf auf DHCP umstellen:
Code:
/etc/init.d/net.eth0 stop
vim /etc/conf.d/net
/etc/init.d/net.eth0 start oder rc default ...
Back to top
View user's profile Send private message
Flotombo
n00b
n00b


Joined: 23 Nov 2003
Posts: 16

PostPosted: Sun Nov 23, 2003 11:41 pm    Post subject: Reply with quote

Wenn ich eine Adresse per dhcp kriege, aber eine feste eingetragen habe, dann bekomme ich ja keine Verbindung. Ich muss also in einem solchen Fall dann manuel das dhcp starten ?

Das ist aber eigentlich umständlich. Gibt es keine Möglicheit die Suche nach einem Server beim Booten per dhcp zu starten, aber dann trotzdem weiterzugehen und die Suche in den Hintergrund zu verlagern. Also während den nächsten Bootschritten weiterzusuchen ?
Es spielt ja dann keine Rolle, ob er einen findet oder nicht. Im Fall dass ich ein Kabel drin habe, wird er sicher gleich fündig. Im anderen Fall soll es mir dann egal sein, wann er (k)einen findet, da ich ja sowieso keine Verbindung möchte.
Back to top
View user's profile Send private message
boris64
Veteran
Veteran


Joined: 04 Oct 2003
Posts: 1770
Location: Vechelde/Peine

PostPosted: Mon Nov 24, 2003 12:40 pm    Post subject: Reply with quote

probier doch mal folgendes:

editiere die datei
Code:
/etc/conf.d/rc


dann setz mal die variable
Code:
RC_PARALLEL_STARTUP="yes"

(sollte sich in Zeile 14 befinden)

das hat zur folge, dass beim starten versucht wird,
dienste parallel zu starten. funktioniert leider nicht
ganz fehlerfrei bei allen diensten, aber nen versuch
ist es wohl wert...

falls das nix nützt, stell die variable wieder auf "no"
und vergiss diese möglichkeit fürs erste ;)
_________________
boris64.net 200x / visit my desktop / try these tiny kernel patches ;)
Back to top
View user's profile Send private message
Flotombo
n00b
n00b


Joined: 23 Nov 2003
Posts: 16

PostPosted: Mon Nov 24, 2003 3:34 pm    Post subject: Reply with quote

Also so gings auch nich. Habs aber jetzt anderst hinbekommen.

Und zwar habe ich in der etc/init.d/net.eth0 folgende Zeilen:
Code:
else
      # Check that eth0 was not brough up by the kernel ...
      if [ "${status_IFACE}" != "up" ]
      then
         # Check that the interface has a carrier
         if [ "${carrier_IFACE}" = "running" ]
         then
            /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null  || {
               retval=$?
               end ${retval} "Failed to bring ${IFACE} up"
               return ${retval}
            }
         else
            eend 1 "${IFACE} is not plugged in or has no carrier signal"
            return 1
         fi
      fi


durch folgende ersetzt:
Code:
else
      # Check that eth0 was not brough up by the kernel ...
      if [ "${status_IFACE}" != "up" ]
      then
         # Check that the interface has a carrier
         #if [ "${carrier_IFACE}" = "running" ]
         #then
            /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null &
               #|| {
               #retval=$?
               #eend ${retval} "Failed to bring ${IFACE} up"
               #return ${retval}
            #}
         #else
            #eend 1 "${IFACE} is not plugged in or has no carrier signal"
            #return 1
         #fi
      fi


Und jetzt sucht er einfach im Hintergrund weiter. Allerdings gibt er mir bei nicht finden keine Fehlermeldung mehr, was aber ja nicht schlimm ist, da ich ja weiss , dass ich keinen Stecker drinhab.
Back to top
View user's profile Send private message
[MSMC]Jesus_C
n00b
n00b


Joined: 31 Aug 2003
Posts: 28

PostPosted: Mon Nov 24, 2003 3:54 pm    Post subject: Reply with quote

Wie wäre es denn hiermit:

http://www.lohmueller.ch/gentoo/net.any/
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