View previous topic :: View next topic |
Author |
Message |
ayin n00b
Joined: 29 Mar 2007 Posts: 17
|
Posted: Thu Mar 29, 2007 7:38 am Post subject: Keine Netzwerkverbindung |
|
|
Hallo erstmal!
Ich habe soeben Gentoo von der CD frisch installiert.
Nun wollte ich die Netzwerkkarte aktivieren, war nicht da.
Ok, ich hab sie nachinstalliert mit modprobe 8139too und mit rc-update add net.eth0 default. danach ein abschliessendes rc und die Karte ist da.
Ok, geh ich an die Konfiguration:
ifconfig eth0 up 192.168.0.19 netmask 192.168.0.1 broadcast 192.169.0.255
route add default gw 192.168.0.1
danach ein ping an 192.168.0.1 liefert nur ein destination host unreachable
leider komm ich nicht an meinem router ran. was mach ich da falsch? |
|
Back to top |
|
|
Finswimmer Bodhisattva
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Thu Mar 29, 2007 7:42 am Post subject: |
|
|
Kabel drin?
net.eth0 und "per-Hand-ifconfig" machen beide das gleiche, und eventuell blocken sie sich.
Also trag die Daten in /etc/conf.d/net ein und starte dann net.eth0
Alternativ:
net.eth0 stoppen und per ifconfig alles einrichten.
Tobi _________________ Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke |
|
Back to top |
|
|
ayin n00b
Joined: 29 Mar 2007 Posts: 17
|
Posted: Thu Mar 29, 2007 7:46 am Post subject: |
|
|
Klar ist das Kabel drin
Ich hab zusätzlich auch die /etc/conf.d/net eingetragen
sieht bei mir so aus:
Code: | config_eth0=( "192.168.0.19 netmask 255.255.255.0 brd 192.168.0.255" )
routes_eth0=( "default gw 192.168.0.1" )
gateways_eth0=( "192.168.0.1" )
dns_servers_eth0=( "192.168.0.1" ) |
Aber das geht leider noch nicht, weil zu diesem Zeitpunkt eth0 noch nicht aktiv ist und ich noich nicht herausgefunden in welcher datei ich das modul 8139too vorher aktivieren muss. Bei Fedora hatte ich ein /etc/rc.d/local wo ich das machen konnte, bei gentoo scheint das irgendwo anders zu sein
mfg,
ayin |
|
Back to top |
|
|
aleph-muc Apprentice
Joined: 23 Jun 2004 Posts: 205 Location: Auf dem Land
|
Posted: Thu Mar 29, 2007 7:52 am Post subject: |
|
|
Um das Modul für die Karte vorher zu starten mußt Du das Modul in die Datei
/etc/modules.autoload/kernel-2.6 (oder bei Bedarf Kernel-2.4) eintragen.
Gruß
aleph |
|
Back to top |
|
|
Finswimmer Bodhisattva
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Thu Mar 29, 2007 7:52 am Post subject: |
|
|
mit modprobe $foo lädst du das Modul und dann muss die Karte auch da sein (bei ifconfig)
Hier kannst du das Modul eintragen, um es beim Start automatisch zu laden:
/etc/modules.autoload.d/kernel-2.6
Tobi _________________ Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke |
|
Back to top |
|
|
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Thu Mar 29, 2007 8:41 am Post subject: Re: Keine Netzwerkverbindung |
|
|
ayin wrote: |
ifconfig eth0 up 192.168.0.19 netmask 192.168.0.1 broadcast 192.169.0.255
was mach ich da falsch? |
Ich würde auf die netmask tippen. Die heißt bei meinem Netz 255.255.255.0
ayin wrote: | Aber das geht leider noch nicht, weil zu diesem Zeitpunkt eth0 noch nicht aktiv ist und ich noich nicht herausgefunden in welcher datei ich das modul 8139too vorher aktivieren muss. Bei Fedora hatte ich ein /etc/rc.d/local wo ich das machen konnte, bei gentoo scheint das irgendwo anders zu sein |
Eigentlich sollte das mit dem Autoload überflüssig sein. Udev erkennt die Hardware beim Start und lädt automatisch die passenden Module. Und das ist per default auch so in der /etc/conf.d/rc eingestellt:
Code: |
# Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no"
# NOTE: This does not affect anything hotplug/udev related, just the
# starting/stopping of the init.d service triggered by hotplug.
RC_HOTPLUG="yes"
# Dynamic /dev managers can trigger coldplug events which cause services to
# start before we are ready for them. If this happens, we can defer these
# services to start in the boot runlevel. Set RC_COLDPLUG="no" if you don't
# want this.
# NOTE: This also affects module coldplugging in udev-096 and higher
# If you want module coldplugging but not coldplugging of services then you
# can set RC_COLDPLUG="yes" and RC_PLUG_SERVICES="!*"
RC_COLDPLUG="yes"
# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
# The following values are allowed:
# none - The 'net' service is always considered up.
# no - This basically means that at least one net.* service besides net.lo
# must be up. This can be used by notebook users that have a wifi and
# a static nic, and only wants one up at any given time to have the
# 'net' service seen as up.
# lo - This is the same as the 'no' option, but net.lo is also counted.
# This should be useful to people that do not care about any specific
# interface being up at boot.
# yes - For this ALL network interfaces MUST be up for the 'net' service to
# be considered up.
RC_NET_STRICT_CHECKING="no"
|
Also da läuft bei Dir irgendwas anderes noch schief.
Gib mal ein:
Da sollte bei Dir sowas in der Art erscheinen:
Code: |
lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:207579 errors:0 dropped:0 overruns:0 frame:0
TX packets:207579 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:10590444 (10.0 Mb) TX bytes:10590444 (10.0 Mb)
|
Wenn das schon mal funktioniert, dann kannst du an anderer Stelle weitersuchen. Falls das nicht vorhanden ist, mußt du das net.lo device erstmal in Ordnung bringen, da die anderen Net-Services net.lo als Basis benötigen. |
|
Back to top |
|
|
ayin n00b
Joined: 29 Mar 2007 Posts: 17
|
Posted: Thu Mar 29, 2007 8:55 am Post subject: |
|
|
Hi!
Die netmask hab ich richtig eingetragen, blos hier im Forum komischerweise falsch reingeschrieben.
Das Device lo ist bei mir vorhanden und sieht ähnlich aus wie bei dir.
Ich versuchs mal mit der /etc/modules.autoload.d/kernel-2.6
also
ifconfig liefert mir folgendes:
eth0:
link encap:ethernet hwaddr xx:xx:xx...
inet addr:192.168.0.19 bcast:192.178.0.255 mask:255.255.255.0
up boradcast running multicast mtu:1500 metric:1
rx packets:28 errors:0 dropped:0 overruns:0 frame:0
tx packets:26 errors:0 dropped:0 overruns:0 carriers:0
collissions:0 tcqueuelen:1000
rx bytes:2827 (2,7kb) tx byte: 1560 (1,5 kb)
interrupt:20 base address:0xa000
lo:
Link encap:local loopback
inet addr:127.0.0.1 mask 255.0.0.0
up loopback running mtu:16439 mask:255.0.0.0
rx packets:11 errors:0 dropped:0 overruns:0 frame:0
tx packets:11 errors:0 dropped:0 overruns:0 carriers:0
collissions:0 tcqueuelen:0
rx bytes:1112 (1,0kb) tx byte: 1112 (1,0 kb)
route liefert mir:
destination gateway genmask flags metric ref use iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
ping 192.168.0.1 liefert mir:
from 192.168.0.19 icmp_seq=2 destination host unreachable
Last edited by ayin on Thu Mar 29, 2007 9:06 am; edited 1 time in total |
|
Back to top |
|
|
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Thu Mar 29, 2007 9:04 am Post subject: |
|
|
ayin wrote: |
inet addr:192.168.0.19 bcast:192.178.0.255 mask:255.255.255.0
|
Änder die 178 mal auf 168. Der Rest sieht soweit gut aus. |
|
Back to top |
|
|
manuels Advocate
Joined: 22 Nov 2003 Posts: 2146 Location: Europe
|
|
Back to top |
|
|
ayin n00b
Joined: 29 Mar 2007 Posts: 17
|
Posted: Thu Mar 29, 2007 9:07 am Post subject: |
|
|
musv wrote: | ayin wrote: |
inet addr:192.168.0.19 bcast:192.178.0.255 mask:255.255.255.0
|
Änder die 178 mal auf 168. Der Rest sieht soweit gut aus. |
Ist geändert. leider auch kein Erfolg
Und nein, es ist keine WLan-karte, es ist eine ganz normaler 100mbit onboard-kabelanschluss, der mit der live-cd einwandfrei funktioniert.
EDIT: Danke für eure bemühungen, hab das Problem gefunden. Hab mich mit einem anderen Rechner an den Router gehängt und musste leider feststellen, dass der Router sich aufgehängt hatte.
Trotzdem vielen lieben Dank für eure Hilfe, hab durch euch eh noch einen Konfigurationsfehler entdecken können. |
|
Back to top |
|
|
musv Advocate
Joined: 01 Dec 2002 Posts: 3337 Location: de
|
Posted: Thu Mar 29, 2007 9:11 am Post subject: |
|
|
Kannst du die Karte selber anpingen?
|
|
Back to top |
|
|
|