birdyb
Goto Top

Ucarp: Interface wird nicht gestartet

Hallo zusammen,

ich habe 2 Loadbalancer mit HAProxy aufgesetzt, die ich mit UCARP ausfallsicher machen möchte.
Nun habe ich ucarp nach dieser Anleitung: http://www.debian-administration.org/articles/678 konfiguriert.
Leider startet das ucarp Interface auf keinem der beiden Hosts. Wenn ich versuche das Interface manuell zu starten (ifup eth0:ucarp), erhalte ich folgende Fehlermeldung:
root@***:~# ifup eth0:ucarp
Missing required variable: address
Missing required configuration variables for interface eth0:ucarp/inet.
Failed to bring up eth0:ucarp.

obwohl ich in der /etc/network/interfaces folgende Konfiguration stehen habe:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
	address 10.10.20.15
	mask 255.255.255.0
	gateway 10.10.20.2

# UCARP Setup

        # vid : The ID of the virtual server [1-255]
        ucarp-vid 3
        # vip : The virtual address
        ucarp-vip 10.10.20.25
        # password : A password used to encrypt Carp communications
        ucarp-password secret
        # advskew : Advertisement skew [1-255]
        ucarp-advskew 1
        # advbase : Interval in seconds that advertisements will occur
        ucarp-advbase 1
        # master : determine if this server is the master
        ucarp-master yes

# The carp network interface, on top of eth1
iface eth0:ucarp inet static
        address 10.10.20.25
        netmask 255.255.255.0

weiß jemand einen Rat? Danke für die Hilfe und Grüße!

Berthold

Content-Key: 222409

Url: https://administrator.de/contentid/222409

Printed on: April 19, 2024 at 19:04 o'clock

Member: BirdyB
BirdyB Nov 19, 2013 at 23:22:07 (UTC)
Goto Top
Okay, UCARP reagiert sehr allergisch auf Leerzeichen am Anfang einer Zeile...
Jetzt funktioniert es auch.