Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gateway für Netzwerkrechner nicht erreichbar [erledigt]
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
Christoph Schnauß
Guru
Guru


Joined: 17 Dec 2004
Posts: 553
Location: Berlin

PostPosted: Mon Nov 06, 2006 7:50 pm    Post subject: gateway für Netzwerkrechner nicht erreichbar [erledigt] Reply with quote

hallo,

irgendwas stelle ich bei meiner Netzwerkkarte noch falsch ein. Ich will einen Netzwerkrechner über den Hostrechner im lokalen Netz online bringen, wenn ich ihn von der CD starte, gehts auch. Starte ich das System, erhalte ich eine Bootmeldung:
Code:
gw: No address associated with name !!
. Ping funktioniert auf den Hostrechner, andersherum auch, in der /etc/hosts gibt es selbstverständlich einen Namen für den Hostrechner. In /etc/conf.d/net steht
Code:
gateways_eth0="192.168.0.1"
.
An der Routingtabelle (netstat -ar) kann ich keine Fehler entdecken. Wenn ich "ping www.google.de" versuche, erhalte ich auch die Google-IP (209.85.135.104) angezeigt, dann kommt aber: "From pc3 (192.168.0.3) icmp_seq=2 Destination Host Unreachable".

Was könnte da klemmen?


Last edited by Christoph Schnauß on Mon Nov 06, 2006 10:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Mon Nov 06, 2006 8:06 pm    Post subject: Reply with quote

Code:
routes_eth0=( "default gw 192.168.0.1" )


Probier das mal.

Und bitte gib den ganzen Output von ping, ich versteh grad nicht, wann der "Fehler" kommt.

Tobi
Back to top
View user's profile Send private message
Christoph Schnauß
Guru
Guru


Joined: 17 Dec 2004
Posts: 553
Location: Berlin

PostPosted: Mon Nov 06, 2006 8:16 pm    Post subject: Reply with quote

Finswimmer wrote:
Code:
routes_eth0=( "default gw 192.168.0.1" )

Das steht schon drin, muß allerdings korrekt heißen:
Code:
routes_eth0=( "default via 192.168.0.1" )
. In der Form, die du angibst, funktioniert auch ein ping auf 192.168.0.1 nicht.

Finswimmer wrote:
Und bitte gib den ganzen Output von ping, ich versteh grad nicht, wann der "Fehler" kommt.

Der "Fehler" ist die Angabe "Unreachable". Es bringt nichts, wenn ich die bereits angegebene Zeile ein dutzendmal wiederhole, eine andere Information als
Code:
From pc3 (192.168.0.3) icmp_seq=2 Destination Host Unreachable
erhalte ich für ping nicht. Übrigens nicht nur, wenn ich Google probiere. Dasselbe passiert auch bei anderen Namen - na gut, da könnte noch ein DNS-Problem vorliegen, aber ein Ping auf 209.85.135.104 erbringt auch nichts anderes.
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Mon Nov 06, 2006 8:19 pm    Post subject: Reply with quote

Hmm. Bei mir geht es mit dieser Zeile.

Code:
[I] sys-apps/baselayout
     Available versions:  ~1.11.13-r2 1.11.14-r8 1.11.15-r3 1.12.4-r7 1.12.5-r2 1.12.6 [M]1.13.0_alpha2-r1 [M]1.13.0_alpha3 [M]1.13.0_alpha4 [M]1.13.0_alpha5
     Installed:           1.12.6[20:34:48 05.11.2006][-bootstrap -build -static unicode]
     Homepage:            http://www.gentoo.org/
     Description:         Filesystem baselayout and init scripts


Probiers mal manuell.
Code:

/etc/init.d/net.eth0 stop

ifconfig eth0 192.168.0.3 up

route add default gw 192.168.0.1


Tobi
Back to top
View user's profile Send private message
Christoph Schnauß
Guru
Guru


Joined: 17 Dec 2004
Posts: 553
Location: Berlin

PostPosted: Mon Nov 06, 2006 8:43 pm    Post subject: Reply with quote

[quote="Finswimmer"]Hmm. Bei mir geht es mit dieser Zeile.
Code:
[I] sys-apps/baselayout
     Available versions:  ~1.11.13-r2 1.11.14-r8 1.11.15-r3 1.12.4-r7 1.12.5-r2 1.12.6 [M]1.13.0_alpha2-r1 [M]1.13.0_alpha3

Baselayout ist Version 1.12.6. Die neueren sind offenbar noch maskiert, und alpha-Versionen mag ich nicht so besonders.

Finswimmer wrote:
Probiers mal manuell.

Mehrfach geschehen - ich nehme gewohnheitsmäßig
Code:
/etc/init.d/net.eth0 restart
. Ein "route add default gw 192.168.0.1" wird wegen falscher Syntax abgelehnt.[/code]
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Mon Nov 06, 2006 8:51 pm    Post subject: Reply with quote

Code:
[21:34:41]|[root@tobi-rechner]|/tmp$/etc/init.d/net.eth0 stop
 * Stopping dnsmasq ...                                                                                                                                                    [ ok ]
 * Unmounting network filesystems ...                                                                                                                                      [ ok ]
 * samba -> stop: smbd ...                                                                                                                                                 [ ok ]
 * samba -> stop: nmbd ...                                                                                                                                                 [ ok ]
 * Stopping sshd ...                                                                                                                                                       [ ok ]
 * Stopping eth0
 *   Loading networking modules for eth0
 *     modules: apipa arping ccwgroup iptunnel macchanger macnet rename ifconfig ip6to4 system
 *   Bringing down eth0
[21:50:04]|[root@tobi-rechner]|/tmp$ifconfig eth0 192.168.0.3 up
[21:50:16]|[root@tobi-rechner]|/tmp$route add default gw 192.168.0.1
[21:50:27]|[root@tobi-rechner]|/tmp$ping web.de
PING web.de (217.72.195.42) 56(84) bytes of data.
64 bytes from ha-42.web.de (217.72.195.42): icmp_seq=1 ttl=54 time=11.5 ms
64 bytes from ha-42.web.de (217.72.195.42): icmp_seq=2 ttl=54 time=11.0 ms
64 bytes from ha-42.web.de (217.72.195.42): icmp_seq=3 ttl=54 time=12.3 ms

--- web.de ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 11.072/11.652/12.308/0.522 ms


Tut mir leid, dann kann ich dir auch nicht helfen, sofern du nicht doch irgendwo Tippfehler oder ähnliches hast.

Tobi
Back to top
View user's profile Send private message
Christoph Schnauß
Guru
Guru


Joined: 17 Dec 2004
Posts: 553
Location: Berlin

PostPosted: Mon Nov 06, 2006 10:04 pm    Post subject: Reply with quote

hallo,

hab den Fehler gefunden. Es lag an falsch gesetzten Anführungszeichen in /etc/conf.d/net. Ich hatte dort stehen:
Code:
routes_eth0=(default via "192.168.0.1")

Peinlich. Danke für deine Hinweise.
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