NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: carp fail over



Good Afternoon,

Thanks for the concise answer.

What have I missed then?
When I pull the plug on one nic and only one carp interface fails over.

If more info is required please just ask.
ips and passwords have been changed to protect the guilty

MASTER NODE
from /etc/pf.ctl
pass quick proto carp all keep state

#ifconcig sysctl -a | grep arp
net.inet.carp.preempt = 1
net.inet.carp.arpbalance = 1
net.inet.carp.allow = 1
net.inet.carp.log = 0

/etc/ifconfig.carp0
create
vhid 1 pass notreal1 10.0.0.1 netmask 255.255.255.0 carpdev fxp0

/etc/ifconfig.carp1
create
vhid 2 pass notreal2 192.168.115.139 netmask 255.255.255.248 carpdev ex0
inet 192.168.115.140 netmask 255.255.255.255 alias
inet 192.168.115.141 netmask 255.255.255.255 alias

/etc/ifconfig.carp2
create
vhid 3 pass notreal3 192.168.114.107 netmask 255.255.255.248 carpdev ex1
inet 192.168.114.108 netmask 255.255.255.255 alias
inet 192.168.114.109 netmask 255.255.255.255 alias

/etc/ifconfig.ex0
inet 192.168.115.138 netmask 255.255.255.248 broadcast 192.168.115.143

/etc/ifconfig.ex0
inet 192.168.114.106 netmask 255.255.255.248 broadcast 192.168.114.111

/etc/ifconfig.fxp0
inet 10.0.0.4 netmask 255.255.255.0


BACKUP NODE
from /etc/pf.ctl
pass quick proto carp all keep state

# sysctl -a | grep carp
net.inet.carp.preempt = 1
net.inet.carp.arpbalance = 1
net.inet.carp.allow = 1
net.inet.carp.log = 0

/etc/ifconfig.carp0
create
vhid 1 advskew 100 pass notreal1 10.0.0.1 netmask 255.255.255.0 carpdev fxp0

/etc/ifconfig.carp1
create
vhid 2 advskew 100 pass notreal2 192.168.115.139 netmask 255.255.255.248 carpdev tlp0
inet 192.168.115.140 netmask 255.255.255.255 alias
inet 192.168.115.141 netmask 255.255.255.255 alias

/etc/ifconfig.carp2
create
vhid 3 advskew 100 pass notreal3 192.168.114.107 netmask 255.255.255.248 carpdev tlp1
inet 192.168.114.108 netmask 255.255.255.255 alias
inet 192.168.114.109 netmask 255.255.255.255 alias

/etc/ifconfig.fxp0
inet 10.0.0.5 netmask 255.255.255.0

/etc/ifconfig.tlp0
inet 192.168.115.137 netmask 255.255.255.248 broadcast 192.168.115.143

/etc/ifconfig.tlp1
inet 192.168.114.105 netmask 255.255.255.248 broadcast 192.168.114.111

Steve Pribyl
Senior Infrastructure Practitioner
Peel, Inc
990 Grove St. Suite 204
Evanston, IL 60201
Phone: 847-424-0954 ex 14
Cell: 847-343-2349
Fax: 847-424-0986
spribyl%peel.com@localhost


On 05/28/2008 03:01 PM, Manuel Bouyer wrote:
On Wed, May 28, 2008 at 10:48:53AM -0500, Steve Pribyl wrote:
Good Morning,

I need some clarification:
I have a two servers with 3 pairs of carp nics.
net.inet.carp.preempt=1
Does this mean if I unplug a single network cable from the MASTER node all of the carp connections will fail over the BACKUP node.

Yes.



Home | Main Index | Thread Index | Old Index