Subject: RE: question about CARP
To: 'Liam J. Foy' <liamfoy@sepulcrum.org>
From: George Chen <georgechen2101@msn.com>
List: tech-kern
Date: 05/10/2006 09:54:38
Hi Liam,
I have a same script on both firewalls.
ifconfig spi4 up
ifconfig spi7 up
ifconfig carp0 create
ifconfig carp0 vhid 1
ifconfig carp0 carpdev spi4
ifconfig carp0 advskew 150
ifconfig carp0 11.10.4.100
ifconfig carp1 create
ifconfig carp1 vhid 2
ifconfig carp1 carpdev spi7
ifconfig carp1 advskew 150
ifconfig carp1 12.10.4.100
sysctl -w net.inet.carp.preempt=1
When setup, carp0 and carp1 are MASTER on fw1. I bring carp0 down with
command
Ifconfig carp0 down.
I expect carp1 on fw1 will be down automatically. But it doesn't happen. The
result is that the traffic is blocked.
Actually I have made some modification to the code from
ftp://packages.stura.uni-rostock.de/patches/carp.diff
I wonder if this problem came from the original code or from my
modification.
I didn't know your patch. Would you share it with me?
Thanks
George Chen
-----Original Message-----
From: tech-kern-owner@NetBSD.org [mailto:tech-kern-owner@NetBSD.org] On
Behalf Of Liam J. Foy
Sent: 2006 05 09 18:24
To: George Chen
Cc: tech-kern@netbsd.org
Subject: Re: question about CARP
On 9 May 2006, at 05:34, George Chen wrote:
> Hi,
>
> I have a question about CARP.
>
> I have two firewalls named fw1 and fw2. eth0 and eth0 are two
> interfaces on
> both fw1 and fw2. It works well when fw1 serves as MASTER, which means
> fw1.eth0 and fw1.eth1 are all MASTER. The problem is, when I down
> fw1.eth0
> and therefore fw1.eth0 becomes BACKUP while fw2.eth0 becomes
> MASTER, will
> fw1.eth1 failovers to fw2.eth1? I didn't see that fw1.eth1 becomes
> BACKUP,
> which leads to the traffic fails.
>
> I don't know if CARPs on different interfaces but one same
> appliance are
> associated. If not, CARP can't help if individual interface fails.
> Am I
> right? If yes, how does it implemented?
>
> Thanks for all your time,
>
> Regards,
> George Chen
Hello, yes, I understand what you mean. Please view the following URL:
http://www.openbsd.org/faq/pf/carp.html#failover
Check the following:
# sysctl -w net.inet.carp.preempt=1
This will cause group interface fall over. Are you running my patch
against
CURRENT or just asking?
---
Liam J. Foy
<liamjfoy@netbsd.org>
<liamfoy@sepulcrum.org>
BSDPortal.org