I am trying to setup carp on 2 machines. I can configure the IP address as an alias for both machines and ping, etc. works.
Here's the configuration:
The machines come up ok and the configuration looks fine. When I do /sbin/ifconfig carp0 I get the following for each machine:
Failover appears to work, when I do /sbin/ifconfig carp0 down on Machine1, Machine2 becomes MASTER and Machine1 goes to INIT state. However, if Machine1 is in master state I cannot ping the IP address from any machine but Machine1. As stated earlier if the ip was configured as an alias on Machine1 it worked OK so I don't think it's a routing issue.
Any pointers as to what I am doing wrong?
Here's the configuration:
Code:
Machine1: Interface fxp0
CARP interface: carp0
CARP configuration line: vhid 1 pass test 209.126.230.54/27
Code:
Machine2: Interface re0
CARP interface: carp0
CARP configuration line: vhid 1 advskew 100 pass test 209.126.230.54/27
Code:
Machine1: carp0: flags=49<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
inet 209.126.230.54 netmask 0xffffffe0
carp: MASTER vhid 1 advbase 1 advskew 0
Code:
Machine2: carp0: flags=8<UP,LOOPBACK,RUNNING> metric 0 mtu 1500
inet 209.126.230.54 netmask 0xffffffe0
carp: BACKUP vhid 1 advbase 1 advskew 100
Any pointers as to what I am doing wrong?