Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
User avatar
isotopp
Posts: 471
Joined: 2003-08-21 10:21
Location: Berlin
 

Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by isotopp »

Um endlich mal mehr Leistung zu bekommen, bin ich dabei meine Altersschwache MR2 bei Strato durch eine SR7 zu ersetzen (4G RAM, 4 Cores, 500G RAID1). Die Installation ist eine Suse 11.1 ohne Plesk.

Aktuell wäre eine (von Strato nicht unterstützte) 11.2 (ohne Pest). Das Upgrade funktioniert wie in http://de.opensuse.org/Upgrade beschrieben ganz wunderbar - mit einem Haken: Nach dem Upgrade hat die Kiste kein Netz mehr.

Nähere Untersuchung zeigt, woran es liegt: Eine Default-Route wird nicht gesetzt. Ursache ist die kaputte DHCP-Konfiguration von Strato, die vom neuen DHCP-Client Version 3 strikt abgelehnt wird.

Man löst das Problem, indem man in die Rescue bootet und den Output von

Code: Select all

h1755802:~# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
85.214.48.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth0
0.0.0.0         85.214.48.1     0.0.0.0         UG        0 0          0 eth0
notiert. Mein Default-Router ist also die 85.214.48.1.

Jetzt bootet man wieder in das kaputte Produktion-Linux ohne Netz, via Console. Danach fügt man vorne in die /etc/sysconfig/network/ifroute-eth0 die folgenden 2 Zeilen ein:

Code: Select all

85.214.48.1     0.0.0.0 255.255.255.255 eth0
0.0.0.0 85.214.48.1     0.0.0.0 eth0
Das Problem besteht im wesentlichen darin, daß der DHCP-Client darauf besteht, daß der Router teil des lokalen Netzes ist, Strato aber eine 255.255.255.255er Netmask für die zugeteilte IP sendet.

Zeile 1 der o.a. ifroute-eth0 definiert nun eine Link Local Route zum Router, erklärt dem Kernel also manuell, daß der Router tatsächlich Teil des lokalen Netzes ist, auch wenn die Netmask gegenteiliges behauptet.

Zeile 2 legt dann eine Default Route 'via diesen Router da' und damit ist die Kiste wieder am Netz.

Die Idee stammt von Zugschlus, dessen Blog mal wieder die entscheidenden Informationen hatte.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by oxygen »

isotopp wrote: Nähere Untersuchung zeigt, woran es liegt: Eine Default-Route wird nicht gesetzt. Ursache ist die kaputte DHCP-Konfiguration von Strato, die vom neuen DHCP-Client Version 3 strikt abgelehnt wird.
Kaputt würde ich diese Konfiguration nicht nennen. classless static routes sind zwar ungewöhnlich, aber Standardkonform: http://www.ietf.org/rfc/rfc3442.txt

andere DHCP Clients wie dhcpcd kommen damit auch problemlos klar. Weiterhin hat Debian z.B. Standardmäßig einen Hack für dhclient, so dass das ganze dort auch läuft.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11190
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by Joe User »

Welchen code nutzen die Clients von openSUSE und Debian denn? 121 oder 249? Und welchen nutzen die diversen Server-Anbieter?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by oxygen »

Die (Standard-)Konfiguration von dhclient unter Debian kann Option 121 handhaben.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11190
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by Joe User »

Und ich gehe mal davon aus, dass die Anbieter auf Grund der Windows-Server Code 249 senden und es daher bei nicht-Windows-Kisten zu Problemen kommen kann.
Last edited by Joe User on 2010-05-11 14:24, edited 1 time in total.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by oxygen »

Ich weiß es nicht, nötige wäre es aber nicht. Windows ab Version Vista / Server 2003 kann mit beiden (inhaltlich sowieso identischen) Optionen umgehen.
User avatar
isotopp
Posts: 471
Joined: 2003-08-21 10:21
Location: Berlin
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by isotopp »

matzewe01 wrote:Meiner Einschätzung nach ist das eher ein Problem eines missglückten upgrades.
Auch zu 11.1 waren noch unterschiedliche PPaketmanager im einsatz und das sorgt speziell bei 10.3 auf 11 und 11.0 auf 11.1 für sehr viel Ärger.
Das Upgrade war

• 11.1 ohne Pest installieren lassen
• Upgrade nach 11.2 gemäß Link oben

und das ging auch sauber durch.

Code: Select all

h1755802:~ # ps axuwww | grep dhcp
root     13611  0.0  0.0   6376   504 ?        Ss   13:44   0:00 /sbin/dhclient -cf /var/lib/dhcp/dhclient.eth0.conf -lf /var/lib/dhcp/dhclient.eth0.lease -pf /var/run/dhclient.eth0.pid -q -H h1755802 eth0
root     14143  0.0  0.0   6404   764 pts/2    R+   13:47   0:00 grep dhcp
h1755802:~ # rpm -qif /sbin/dhclient
Name        : dhcp-client                  Relocations: (not relocatable)
Version     : 3.1.2p1                           Vendor: openSUSE
Release     : 4.5                           Build Date: Tue Oct 20 15:33:10 2009
Install Date: Sat May  8 21:17:26 2010         Build Host: build12
Group       : Productivity/Networking/Boot/Clients   Source RPM: dhcp-3.1.2p1-4.5.src.rpm
Size        : 478176                           License: BSD 3-clause (or similar)
Signature   : RSA/8, Tue Oct 20 15:33:54 2009, Key ID b88b2fd43dbdc284
Packager    : http://bugs.opensuse.org
URL         : http://www.isc.org/isc/dhcp.html
Summary     : ISC DHCP Client
Description :
This is an alternative DHCP client, the ISC DHCP client for Linux. Like
"dhcpcd" (the client that is installed by default), it can be used to
configure the network setup.  IP address, hostname, routing,
nameserver, netmask, and broadcast can be dynamically assigned while
booting the machine.

It is configurable via the configuration file /etc/dhclient.conf and
you can define your own 'hooks' to be used by the /sbin/dhclient-script
(which is called by the daemon).



Authors:
--------
    Ted Lemon <mellon@fugue.com>
Distribution: openSUSE 11.2

h1755802:~ # tcpdump -r out -vvvvv -ttttt -n
reading from file out, link-type EN10MB (Ethernet)
00:00:00.000000 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 328)
    0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:24:21:af:8b:65, length 300, xid 0x46e66614, secs 5, Flags [none] (0x0000)
          Client-Ethernet-Address 00:24:21:af:8b:65
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: Request
            Lease-Time Option 51, length 4: 3600
            Requested-IP Option 50, length 4: 85.214.51.51
            Hostname Option 12, length 8: "h1755802"
            Parameter-Request Option 55, length 17: 
              Subnet-Mask, BR, Default-Gateway, MTU
              Hostname, Domain-Name, Domain-Name-Server, YD
              YS, Option 87, Option 85, Option 86
              Netbios-Name-Server, WDD, Netbios-Node, Netbios-Scope
              NTP
            END Option 255, length 0
            PAD Option 0, length 0, occurs 15
00:00:00.002647 IP (tos 0x0, ttl 255, id 24322, offset 0, flags [none], proto UDP (17), length 338)
    85.214.1.18.67 > 85.214.51.51.68: [udp sum ok] BOOTP/DHCP, Reply, length 310, hops 1, xid 0x46e66614, secs 5, Flags [none] (0x0000)
          Your-IP 85.214.51.51
          Server-IP 85.214.7.21
          Gateway-IP 85.214.1.18
          Client-Ethernet-Address 00:24:21:af:8b:65
          file "pxelinux.0"
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: ACK
            Server-ID Option 54, length 4: 81.169.163.98
            Lease-Time Option 51, length 4: 43200
            Subnet-Mask Option 1, length 4: 255.255.255.255
            Default-Gateway Option 3, length 4: 85.214.48.1
            Hostname Option 12, length 8: "h1755802"
            Domain-Name Option 15, length 16: "stratoserver.net"
            Domain-Name-Server Option 6, length 12: 81.169.163.106,85.214.7.22,81.169.148.34
            END Option 255, length 0
00:00:00.002680 IP (tos 0x0, ttl 255, id 24323, offset 0, flags [none], proto UDP (17), length 338)
    85.214.1.18.67 > 85.214.51.51.68: [udp sum ok] BOOTP/DHCP, Reply, length 310, hops 1, xid 0x46e66614, secs 5, Flags [none] (0x0000)
          Your-IP 85.214.51.51
          Server-IP 81.169.163.98
          Gateway-IP 85.214.1.18
          Client-Ethernet-Address 00:24:21:af:8b:65
          file "pxelinux.0"
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: ACK
            Server-ID Option 54, length 4: 85.214.7.21
            Lease-Time Option 51, length 4: 43200
            Subnet-Mask Option 1, length 4: 255.255.255.255
            Default-Gateway Option 3, length 4: 85.214.48.1
            Hostname Option 12, length 8: "h1755802"
            Domain-Name Option 15, length 16: "stratoserver.net"
            Domain-Name-Server Option 6, length 12: 85.214.7.22,81.169.163.106,81.169.148.34
            END Option 255, length 0
00:00:00.021639 IP (tos 0x0, ttl 255, id 13033, offset 0, flags [none], proto UDP (17), length 338)
    85.214.1.17.67 > 85.214.51.51.68: [udp sum ok] BOOTP/DHCP, Reply, length 310, hops 1, xid 0x46e66614, secs 5, Flags [none] (0x0000)
          Your-IP 85.214.51.51
          Server-IP 81.169.163.98
          Gateway-IP 85.214.1.17
          Client-Ethernet-Address 00:24:21:af:8b:65
          file "pxelinux.0"
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: ACK
            Server-ID Option 54, length 4: 85.214.7.21
            Lease-Time Option 51, length 4: 43200
            Subnet-Mask Option 1, length 4: 255.255.255.255
            Default-Gateway Option 3, length 4: 85.214.48.1
            Hostname Option 12, length 8: "h1755802"
            Domain-Name Option 15, length 16: "stratoserver.net"
            Domain-Name-Server Option 6, length 12: 85.214.7.22,81.169.163.106,81.169.148.34
            END Option 255, length 0
00:00:00.021669 IP (tos 0x0, ttl 255, id 13034, offset 0, flags [none], proto UDP (17), length 338)
    85.214.1.17.67 > 85.214.51.51.68: [udp sum ok] BOOTP/DHCP, Reply, length 310, hops 1, xid 0x46e66614, secs 5, Flags [none] (0x0000)
          Your-IP 85.214.51.51
          Server-IP 85.214.7.21
          Gateway-IP 85.214.1.17
          Client-Ethernet-Address 00:24:21:af:8b:65
          file "pxelinux.0"
          Vendor-rfc1048 Extensions
            Magic Cookie 0x63825363
            DHCP-Message Option 53, length 1: ACK
            Server-ID Option 54, length 4: 81.169.163.98
            Lease-Time Option 51, length 4: 43200
            Subnet-Mask Option 1, length 4: 255.255.255.255
            Default-Gateway Option 3, length 4: 85.214.48.1
            Hostname Option 12, length 8: "h1755802"
            Domain-Name Option 15, length 16: "stratoserver.net"
            Domain-Name-Server Option 6, length 12: 81.169.163.106,85.214.7.22,81.169.148.34
            END Option 255, length 0
User avatar
isotopp
Posts: 471
Joined: 2003-08-21 10:21
Location: Berlin
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by isotopp »

Und die Antwort ist:
Description :
This is an alternative DHCP client, the ISC DHCP client for Linux. Like
"dhcpcd" (the client that is installed by default), it can be used to
configure the network setup.
Suse 11.1 (Strato bietet keine 11.2 im Menue an) installiert dhcp-client von ISC, eine reine Suse 11.2 installiert dhcpcd per Default.

Nach einem Upgrade (notwendig, da keine direkte 11.2 Installation verfügbar ist) existieren beide, und dhcp-client hat Vorrang vor dhcpcd. Verwendet man dhcpcd, geht es auch ohne Hack.

Es ist also ausreichend:

Code: Select all

# rpm -e dhcp-client
# rcnetwork restart
User avatar
isotopp
Posts: 471
Joined: 2003-08-21 10:21
Location: Berlin
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by isotopp »

matzewe01 wrote:Kann das dann die Ursache sein, dass der Host nicht mehr von extern erreichbar ist, wenn man das vlan und damit verbunden ein statisches Routing des eth1 ins vlan einrichtet?
Vlan und ClusterIP werden nicht verwendet.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11190
Joined: 2003-02-27 01:00
Location: Hamburg
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by Joe User »

Ungetestet: Folgende dhclient.conf sollte laut Google auch funktionieren:

Code: Select all

option ms-classless-static-routes code 249 = array of unsigned integer 8;
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
request subnet-mask, broadcast-address, time-offset, routers, interface-mtu, ms-classless-static-routes, rfc3442-classless-static-routes;
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
dhi
Posts: 2
Joined: 2010-10-21 11:06
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by dhi »

Hy,

gleiches Problem bei Ubuntu 8.04 mit VLAN und dhclient(Internet Systems Consortium DHCP Client V3.0.6). Seltsamer Weise stimmen die Routen bei mir:

Code: Select all

Ziel            Router          Genmask         Flags   MSS Fenster irtt Iface
85.214.48.1     0.0.0.0         255.255.255.255 UH        0 0          0 eth0
0.0.0.0         85.214.48.1     0.0.0.0         UG        0 0          0 eth0
Seltsam sind ebenfalls die Angaben zum DHCP Server im alten Lease und der von Strato per Braodcast gelieferte:

Code: Select all

#cat /var/lib/dhcp3/dhclient.eth0.leases
...
option dhcp-server-identifier 81.169.163.98;
#/etc/init.d/networking restart bzw. ifup eth0
...
DHCPACK of 85.214.xxx.xxx from 85.214.1.17
:?:
:paling:
Aus http://www.ietf.org/rfc/rfc3442.txt:
"DHCP Server Administrator Responsibilities

Many clients may not implement the Classless Static Routes option.
DHCP server administrators should therefore configure their DHCP
servers to send both a Router option and a Classless Static Routes
option, and should specify the default router(s) both in the Router
option and in the Classless Static Routes option.

When a DHCP client requests the Classless Static Routes option and
also requests either or both of the Router option and the Static
Routes option, and the DHCP server is sending Classless Static Routes
options to that client, the server SHOULD NOT include the Router or
Static Routes options."

:paling: Hat schon jemand den letzten Fakt mal überprüft? Wie ich das sehe wird bei mir die DHCP Option nicht mitgeliefert. Wie ist das bei euch?
#cat /var/lib/dhcp3/dhclient.eth0.leases

Code: Select all

lease {
  interface "eth0";
  fixed-address 85.214.xx.xx;
  filename "pxelinux.0";
  option subnet-mask 255.255.255.255;
  option routers 85.214.48.1;
  option dhcp-lease-time 86400;
  option dhcp-message-type 5;
  option domain-name-servers 81.169.163.106,85.214.7.22,81.169.148.34;
  option dhcp-server-identifier 81.169.163.98;
  option host-name "hxxxx";
  option domain-name "stratoserver.net";
  renew 4 2010/10/21 07:58:45;
  rebind 4 2010/10/21 07:58:45;
  expire 4 2010/10/21 07:58:45;
}
Danke und Gruß
Last edited by dhi on 2010-10-21 11:38, edited 1 time in total.
dhi
Posts: 2
Joined: 2010-10-21 11:06
 

Re: Strato Server nach Upgrade auf openSUSE 11.2 ohne Netz

Post by dhi »

Hab nochmal den Vorschlag versucht den Server im Rescue Modus zu booten und die route auszulesen. Jedoch stand dort nichts anderes als im normalen Boot Modus. Also habe ich beim Strato Support angerufen und gefragt welche IP/NETZMASKE/GATEWAY ich für meine NIC konfigurieren muss. Die Aussage war: "Das ist ein Root Server. Sie sind der Administrator und können setzen was sie wollen....Wie ist die IP Adresse des Gateways?...Wie schon gesagt, sie sind der Administrator und können in den Einstellungen eintragen was sie möchten." Danach habe ich die Informationen aus dem DHCP Lease in der NIC Konfig eingetragen. Das Interface wollte nicht starten. Auf Basis dieses Sachverhalts und Aussage habe ich einen HW Test beauftragt und siehe da...es kam eine sehr aufschlussreiche Meldung des Testergebnis zurück:

"Sehr geehrter xy,

ich mvchte Sie mit dieser E-Mail |ber den Bearbeitungsstand Ihres Troubleticket informieren.

Bei einer Hardware|berpr|fung konnten wir einen Hardwaredefekt feststellen. Wir bieten Ihnen deshalb einen Tausch der Hardware an.

In Ihrem Kundenservicebereich [https://config.stratoserver.net/] haben wir unter dem Men|punkt Serverkonfiguration > Neuinstallation die Mvglichkeit den Tausch Ihres Servers zu veranlassen. Sie finden dort die zusdtzliche Option Mit dem Aktivieren dieser Checkbox wird ein Hardwaretausch durchgef|hrt. Durch das Setzten beider Optionen wird Ihr Server getauscht und auf der neuen Hardware das von Ihnen gewdhlte Betriebssystem installiert.

Bitte beachten Sie, dass die Option zum Tauschen der Hardware maximal 48 Stunden zur Verf|gung stehen wird. Sie kvnnen somit zuvor jede gew|nschte Datensicherung durchf|hren und den Zeitpunkt des Tausches selbst bestimmen."


Das ist doch mal was! Keine Fehlerbeschreibung, "nur" 48h Zeit um einen Server umzuziehen und das ganze auch noch in falscher Zeichenkodierung. Wohlgemerkt, auf einen Anruf hin versicherte man mir ganz professionel, dass die Zeit ab Beendigung des Tests und nicht des nächsten Werktags zu laufen beginnt. :))

Der neue Server zeigt nach routinemäßiger Überprüfung mit smartctl /dev/sda Temperatur is 39 C,/dev/sdb Temperatur is 35 C. Ein Glück das die Server laut Strato Telefon Support alle gleich gut klimatisiert sind. Die Überlisten soger die Thermik.

Die Bude ist wirklich ein Witz! 8-}

Ich glaube ich mache einen neuen Vorschlag für http://de.wikipedia.org/wiki/Liste_von_ ... zjargon%29

CYFH = Change Your Fucking Hoster

Greetings
Last edited by dhi on 2010-10-28 15:39, edited 6 times in total.