On Fri, Jul 22, 2005 at 09:29:51AM +0100, Stephen Marley wrote:
> On Thu, Jul 21, 2005 at 11:19:52PM -0400, stan wrote:
> > At hte moment I'm having trouble getting failover to ork, when I fail one
> > of the side (internal or external). The xarp manpage sasy that if I have
> > net.inet.carp.preeempt set, and I do "ifconfig carp0 down" on the master,
> > both sudes should swithch. I'm not seeing that. 
> 
> Try downing the physical interfaces or pulling the cables.
> 
> > hostname.pfsyanc0
> > up syncif fxp1
> 
> hostname.pfsync0
> up syncdev fxp1
> 
> 
> show us output of sysctl -a | egrep 'carp|forward' and ifconfig

Her is thta:


Script started on Fri Jul 22 09:22:42 2005
phfw1# sysctl -a | grep carp
net.inet.carp.allow=1
net.inet.carp.preempt=1
net.inet.carp.log=1
net.inet.carp.arpbalance=0
phfw1# ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33224
        inet 127.0.0.1 netmask 0xff000000 
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        address: 00:90:27:43:79:0e
        media: Ethernet autoselect (10baseT)
        status: active
        inet 205.159.77.11 netmask 0xffffff00 broadcast 205.159.77.255
        inet6 fe80::290:27ff:fe43:790e%fxp0 prefixlen 64 scopeid 0x1
fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:a0:c9:de:a3:19
        media: Ethernet autoselect (10baseT)
        status: active
        inet 192.168.254.253 netmask 0xffffff00 broadcast 192.168.254.255
        inet6 fe80::2a0:c9ff:fede:a319%fxp1 prefixlen 64 scopeid 0x2
fxp2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        address: 00:a0:c9:71:16:2e
        media: Ethernet autoselect (10baseT)
        status: active
        inet 170.85.106.253 netmask 0xffffff80 broadcast 170.85.106.255
        inet6 fe80::2a0:c9ff:fe71:162e%fxp2 prefixlen 64 scopeid 0x3
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33224
pfsync0: flags=0<> mtu 2020
enc0: flags=0<> mtu 1536
carp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        carp: MASTER carpdev fxp0 vhid 1 advbase 1 advskew 0
        inet 205.159.77.2 netmask 0xffffff00 broadcast 205.159.77.255
carp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        carp: MASTER carpdev fxp2 vhid 2 advbase 1 advskew 0
        inet 170.85.106.129 netmask 0xffffff80 broadcast 170.85.106.255
phfw1# ^Dexit

Script done on Fri Jul 22 09:23:01 2005

I tested it breifly this morning by bringing down fxp0, and it seemed to
work as expected, but I was loged in using ssh, so I shot myself in the
foot :-)

So, this leaves 2 questions.

1. The docs say that bringing down the carp interface, should force a
failover, is this wrong?

2. If I want to hook in other things (eg mail) on failover, should I build
and usef ifstaed, or is there a better way?

Thansk for the help!

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967

Reply via email to