View previous topic :: View next topic |
Author |
Message |
Christoph Schnauß Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/141640639641c333d67e8e6.gif)
Joined: 17 Dec 2004 Posts: 553 Location: Berlin
|
Posted: Mon Nov 06, 2006 7:50 pm Post subject: gateway für Netzwerkrechner nicht erreichbar [erledigt] |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Finswimmer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1672586922424daf205ec26.jpg)
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Mon Nov 06, 2006 8:06 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Christoph Schnauß Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/141640639641c333d67e8e6.gif)
Joined: 17 Dec 2004 Posts: 553 Location: Berlin
|
Posted: Mon Nov 06, 2006 8:16 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Finswimmer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1672586922424daf205ec26.jpg)
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Mon Nov 06, 2006 8:19 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Christoph Schnauß Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/141640639641c333d67e8e6.gif)
Joined: 17 Dec 2004 Posts: 553 Location: Berlin
|
Posted: Mon Nov 06, 2006 8:43 pm Post subject: |
|
|
[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 |
|
![](templates/gentoo/images/spacer.gif) |
Finswimmer Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1672586922424daf205ec26.jpg)
Joined: 02 Sep 2004 Posts: 5467 Location: Langen (Hessen), Germany
|
Posted: Mon Nov 06, 2006 8:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Christoph Schnauß Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/141640639641c333d67e8e6.gif)
Joined: 17 Dec 2004 Posts: 553 Location: Berlin
|
Posted: Mon Nov 06, 2006 10:04 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|