Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd kill netzwerkverbindung
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
lorschy
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 191

PostPosted: Mon Sep 22, 2003 11:33 am    Post subject: sshd kill netzwerkverbindung Reply with quote

Code:

 * Bringing eth0 up...                                                                                                                                                              [ ok ]
 *   Setting default gateway...
SIOCADDRT: File exists
 * Failed to bring eth0 up                                                                                                                                                          [ !! ]

 * Bringing eth0 down...                                                                                                                                                            [ ok ]
 * ERROR:  Problem starting needed services.
 *         "sshd" was not started.


kann mir jmd mal sagen wie ich das umgehen kann? mein netzwerk wird vor dem sshd gestarted, und geht dann auch super, aber sobald sshd an der reihe ist passiert das oben geschriebene.
[/code]
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Mon Sep 22, 2003 11:37 am    Post subject: Reply with quote

Das Problem ist nicht der sshd, sondern das Gateway. Schau also mal nach ob das wirklich richtig konfiguriert ist.

Gruß Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
lorschy
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 191

PostPosted: Mon Sep 22, 2003 9:18 pm    Post subject: Reply with quote

wie ob der richtig konfiguriert ist? klar isser, das is ein olle elsa router, und der macht seinen job schon seit 2 jahren, und keiner hat daran was geaendert
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Mon Sep 22, 2003 10:04 pm    Post subject: Reply with quote

Gut, ich präzisiere: Konfiguration des Gateway in der /etc/conf.d/net

Gruß Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
lorschy
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 191

PostPosted: Thu Sep 25, 2003 12:10 pm    Post subject: Reply with quote

jo das stimmt alles, wenn ich /etc/init.d/net.eth0 start mach gehts ja, wenn ich sshd aus dem boot runlevel raus lass dann auch, wenn sshd vor eth0 gestarted wird dann gehts auch.

nur wenn er dann versucht nochmal, nachdem sshd gestarted ist das net.eth0 zu starten fliegt er auf die fresse, da es ja schon einen gateway fuer eth0 gibt.

ich mach jetz mal folgendes und schmeiss net.eth0 ausn runlevels und schau das es von sshd gestarted wird, wenn das nicht geht dann versuch ichs nochmal andersrum, und wenn das auch nicht hilft dann spring ich ausm fenster (ne kleiner scherz)
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Thu Sep 25, 2003 12:15 pm    Post subject: Reply with quote

lorschy wrote:
nur wenn er dann versucht nochmal, nachdem sshd gestarted ist das net.eth0 zu starten fliegt er auf die fresse, da es ja schon einen gateway fuer eth0 gibt.
Kannst du das bitte näher erklären und deine /etc/conf.d/net posten? IMHO hat der sshd mit dem Gateway rein gar nix zu tun.

Gruß Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
tacki
Guru
Guru


Joined: 29 Jun 2002
Posts: 418
Location: Germany

PostPosted: Thu Sep 25, 2003 1:45 pm    Post subject: Reply with quote

der ssh kann nicht gestartet werden weil das netzwerk (eth0) nicht verfügbar ist. ohne netz macht ein ssh auch nicht viel sinn.

so weit so gut

das netzwerk aber konnte nicht gestartet werden, weil etwas mit dem default gateway nicht stimmt.

am besten du postest mal deine /etc/conf.d/net
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Thu Sep 25, 2003 1:51 pm    Post subject: Reply with quote

hehe, genau das versuche ich auch schon ihm zu erklären ;)

Gruß Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
lorschy
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 191

PostPosted: Fri Sep 26, 2003 6:11 am    Post subject: Reply with quote

hmmm na guuuut, hier is meine conf, (ok ihr hab schon recht in /etc/init.d/sshd steht ja auch need net(is aber echt so das ich wenn kein net da is, sprich ifconfig mir nur lo anzeigt ich sshd starten kann und es mir eth0 hochbringt))

Code:

# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.5 2002/09/07 13:31:29 azarah Exp $

# Global config file for net.* rc-scripts

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="172.26.7.112 broadcast 172.26.7.255 netmask 255.255.255.0"
#iface_eth1="192.168.1.200 broatcast 192.168.1.255 netmask 255.255.255.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="eth1/192.168.1.0"
gateway="eth0/172.26.7.2"
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Fri Sep 26, 2003 6:34 am    Post subject: Reply with quote

Dein "oller elsa-router" hat auch _wirklich_ die IP 172.26.7.2 ?

Gruß Tobias
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
lorschy
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 191

PostPosted: Fri Sep 26, 2003 1:59 pm    Post subject: Reply with quote

jo sicha, sonst koennte ich ja gerade im mom nicht surfen
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Sat Sep 27, 2003 1:17 pm    Post subject: Reply with quote

kommentier doch bitte mal den eintrag für dein defaultgw aus und kuck was dann passiert.

es sollte dein netz starten. hoffnungsvoll auch dein sshd, wenn das dann geht weisst du, dass an deiner gw einstellung was nicht stimmt. analysier dein problem mal stückchenweise.
_________________
adopt an unanswered post
erst denken, dann posten
Back to top
View user's profile Send private message
lorschy
Apprentice
Apprentice


Joined: 16 Jul 2002
Posts: 191

PostPosted: Sun Sep 28, 2003 2:00 am    Post subject: Reply with quote

hmmm tja wie ich mir dachte, wenn ich net.eth0 aus den runlevels rausnehm und das sshd alleine machen lass dann is mein netz und mein sshd da und alles rennt wunderbar.

bin nur selber gerade bischen verwirrt weil sshd doch von net abhaengt.
naja wat solls so gehts auf alle faelle auch und dann lass ich es erstmal dabei.
Back to top
View user's profile Send private message
toskala
Advocate
Advocate


Joined: 14 Dec 2002
Posts: 2080
Location: hamburg, germany

PostPosted: Sun Sep 28, 2003 6:54 am    Post subject: Reply with quote

naja, eigentlich sollte der ssh nicht von net abhängig sein *kopfkratz* dem reichts schon wenn du ein "lo" hast, dann kannst dich ja auch auf der maschine selber einloggen.
_________________
adopt an unanswered post
erst denken, dann posten
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