47 lines
2.3 KiB
Text
47 lines
2.3 KiB
Text
# Virtual IP configuration file for UCARP
|
|
# The number (from 001 to 255) in the name of the file is the identifier
|
|
# $Id: vip-001.conf.example,v 1.3 2006/11/29 12:00:11 thias Exp $
|
|
|
|
# Set the same password on all machines sharing the same virtual router ID.
|
|
PASSWORD="love"
|
|
|
|
# UCARP daemon by default uses the first PCAP-capable interface as returned by
|
|
# pcap_lookupdev(), this is often "eth0". This option allows you to change
|
|
# this behaviour.
|
|
BIND_INTERFACE="eth0"
|
|
|
|
# This is a mandatory option. UCARP daemon will use this IP address for its
|
|
# announces regardless of the addresses actually assigned to the interface.
|
|
#BIND_ADDRESS="10.0.0.2"
|
|
|
|
# There is a simple and an advanced way to configure UCARP. In both ways you
|
|
# have two physical routers with distinct IP addresses on the same IP network.
|
|
|
|
# In the simple scenario, you want a single virtual IP address from the _same_
|
|
# network to be taken over by one of the routers. You configure this VIP right
|
|
# here then:
|
|
#VIP_ADDRESS="10.10.10.10"
|
|
|
|
# In the complex scenario, your virtual router consists of more than one IP
|
|
# address. For example, you might want to assign to the virtual router not only
|
|
# the address which is used as the default gateway on the LAN, but also the only
|
|
# real IP address, which you got from your ISP. Your configuration would have
|
|
# two steps then:
|
|
# 1. Configure the VIP_ADDRESS to "255.255.255.255"
|
|
# 2. Create a file in the same directory which holds vip-XXX.conf, with a name
|
|
# vip-XXX.list. For example, if the .conf file is named vip-001.conf, the .list
|
|
# file would be vip-001.list. Each meaningful line of this file will be used as
|
|
# an argument for "ip address add" and "ip address del" commands. This way you
|
|
# can control, which IP addresses will be assigned to which interfaces.
|
|
#VIP_ADDRESS="255.255.255.255"
|
|
|
|
# If you have extra options to add, see "ucarp --help" output
|
|
# (the lower the "-k <val>" the higher priority and "-P" to become master ASAP)
|
|
# Please note you can use only the following options here:
|
|
# --preempt (-P): becomes a master as soon as possible
|
|
# --neutral (-n): don't run downscript at start if backup
|
|
# --advbase=<seconds> (-b <seconds>): advertisement frequency
|
|
# --advskew=<skew> (-k <skew>): advertisement skew (0-255)
|
|
# The rest of options list is built up by the UCARP initscript.
|
|
|
|
OPTIONS="-k 128 -P"
|