Yes, that would enormously simplify your ifstated setup.
I encourage you to try with a single interface and multiple IPs on it.
Be careful to use /32 netmasks for your aliased IPs, people have run
into trouble for using longer prefixes, like /24 for example.
Also be careful when adding/removing
Thanks Damien for the example.
In this case when I have only one carp interface, it is much easier to
define the states
in ifstated, isn't? It is either up or not and no other states are
needed to check.
Regards,
Peter
On 21/02/2012, Damien Fleuriot wrote:
> Yes, I do mean you can have several
Yes, I do mean you can have several IPs on a single CARP interface, see
the example below:
carp17: flags=49 metric 0 mtu 1500
inet 46.182.41.72 netmask 0x
inet 46.182.41.76 netmask 0x
inet 46.182.41.77 netmask 0x
inet 46.182.41.78 netmask 0xf
Do ypu mean that only carp0 is defined on both servers and it has
three different IPs?
How is it possible to define them so they are set for ftp, tftp and
scp separately for the defined IPs?
Kind regards,
Peter
On 21/02/2012, Damien Fleuriot wrote:
> To be honest, I'm not sure it's a good idea
To be honest, I'm not sure it's a good idea to use different *interfaces*.
Why don't you set multiple IPs on a single carp interface instead ?
On 21 Feb 2012, at 08:29, peter knezel wrote:
> Hello Damien,
>
> preemption is set on both systems, so when master server goes down or
> any CARP inte
Hello Damien,
preemption is set on both systems, so when master server goes down or
any CARP interface on master
goes down, slave becomes master (but only on the CARP interface if
only that went down).
Can you have a look at my previous question??:
if the different carp interfaces
are used for di
Preemption is used to ensure that, if a CARP interface goes down on host
A, host B will then assume mastership for all interfaces.
It prevents the nasty situation where you'd have, for example:
Public IP: master on host A
Private IP: master on host B
servers behind firewalls hosts A and B:
- tra
Well,
I am not fully familiar with CARP, but if the different carp interfaces are
used for different purpose (ftp, tftp, scp), is it a good idea to put down
all of them, if they are able to serve their purpose?
BTW, what is CARP preemption and how is it possible to enable it?
Kind regards,
Pet
Sorry about the late reply, didn't see yours.
What about enabling CARP preemption to ensure that when a carp interface
goes down, the whole set does ?
On 2/7/12 9:13 PM, peter knezel wrote:
> Hello Damien,
>
> I did read your example but cannot get idea from it.
> For three interfaces you have
Hello Damien,
I did read your example but cannot get idea from it.
For three interfaces you have much more possibilities.
Imagine you start the server from uuu state which is equal to
net = '( "ifconfig -a -u |grep carp0 > /dev/null" every 3 && "ifconfig -a -u
|grep carp1 > /dev/null" every 3 &&
On 2/7/12 3:36 PM, peter knezel wrote:
> Hello all,
>
> I would like to ask somebody to explain me how the ifstated works according to
> the following configuration file.
> I have three virtual carp interfaces carp0,carp1 and carp2.
>
> I try to understand the following setting:
> The server is i
11 matches
Mail list logo