View previous topic :: View next topic |
Author |
Message |
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Mon Sep 22, 2003 11:33 am Post subject: sshd kill netzwerkverbindung |
|
|
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 |
|
|
dertobi123 Retired Dev
Joined: 19 Nov 2002 Posts: 2679 Location: Oberhausen, Germany
|
|
Back to top |
|
|
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Mon Sep 22, 2003 9:18 pm Post subject: |
|
|
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 |
|
|
dertobi123 Retired Dev
Joined: 19 Nov 2002 Posts: 2679 Location: Oberhausen, Germany
|
|
Back to top |
|
|
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Thu Sep 25, 2003 12:10 pm Post subject: |
|
|
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 |
|
|
dertobi123 Retired Dev
Joined: 19 Nov 2002 Posts: 2679 Location: Oberhausen, Germany
|
Posted: Thu Sep 25, 2003 12:15 pm Post subject: |
|
|
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 |
|
|
tacki Guru
Joined: 29 Jun 2002 Posts: 418 Location: Germany
|
Posted: Thu Sep 25, 2003 1:45 pm Post subject: |
|
|
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 |
|
|
dertobi123 Retired Dev
Joined: 19 Nov 2002 Posts: 2679 Location: Oberhausen, Germany
|
|
Back to top |
|
|
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Fri Sep 26, 2003 6:11 am Post subject: |
|
|
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 |
|
|
dertobi123 Retired Dev
Joined: 19 Nov 2002 Posts: 2679 Location: Oberhausen, Germany
|
|
Back to top |
|
|
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Fri Sep 26, 2003 1:59 pm Post subject: |
|
|
jo sicha, sonst koennte ich ja gerade im mom nicht surfen |
|
Back to top |
|
|
toskala Advocate
Joined: 14 Dec 2002 Posts: 2080 Location: hamburg, germany
|
Posted: Sat Sep 27, 2003 1:17 pm Post subject: |
|
|
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 |
|
|
lorschy Apprentice
Joined: 16 Jul 2002 Posts: 191
|
Posted: Sun Sep 28, 2003 2:00 am Post subject: |
|
|
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 |
|
|
toskala Advocate
Joined: 14 Dec 2002 Posts: 2080 Location: hamburg, germany
|
Posted: Sun Sep 28, 2003 6:54 am Post subject: |
|
|
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 |
|
|
|