Hi, I started experimenting with carp, in order to replace freevrrpd stuff we are currently using. I'm running quite recent version of RELENG_6 (compiled this week). I was able to configure carp ok, but for some odd reason the interface goes down by itself shortly after it has been configured. Here is output from test script: # sh -x test.sh + ifconfig carp0 destroy + ifconfig carp0 create + ifconfig carp0 up + ifconfig carp0 inet 192.168.5.59/24 vhid 55 pass xxx123 + ifconfig carp0 carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500 inet 192.168.5.59 netmask 0xffffff00 carp: BACKUP vhid 55 advbase 1 advskew 0 + sleep 5 + ifconfig carp0 carp0: flags=8<LOOPBACK> mtu 1500 carp: INIT vhid 55 advbase 1 advskew 0 See, here the interface is up, but after 5 seconds it has gone down. Could anybody give a hint why this happens ? There are messages on console about promiscuous mode being enabled/disabled, but nothing else. Ari S.
Ari Suutari wrote:> Hi, > > I started experimenting with carp, in order to replace > freevrrpd stuff we are currently using. > > I'm running quite recent version of RELENG_6 (compiled > this week). > > I was able to configure carp ok, but for some odd reason the > interface goes down by itself shortly after it has been configured. > > Here is output from test script: > > # sh -x test.sh > + ifconfig carp0 destroy > + ifconfig carp0 create > + ifconfig carp0 up > + ifconfig carp0 inet 192.168.5.59/24 vhid 55 pass xxx123 > + ifconfig carp0 > carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500 > inet 192.168.5.59 netmask 0xffffff00 > carp: BACKUP vhid 55 advbase 1 advskew 0 > + sleep 5 > + ifconfig carp0 > carp0: flags=8<LOOPBACK> mtu 1500 > carp: INIT vhid 55 advbase 1 advskew 0 > > See, here the interface is up, but after 5 seconds it has gone > down. Could anybody give a hint why this happens ? There are > messages on console about promiscuous mode being enabled/disabled, > but nothing else. >I have seen similar problems when the carp multicast (224.0.0.18) traffic was not allowed to be transmitted to the network due to a firewall configuration problem. Tom
Ari Suutari <ari@suutari.iki.fi> writes:> carp0: flags=49<UP,LOOPBACK,RUNNING> mtu 1500 > inet 192.168.5.59 netmask 0xffffff00 > carp: BACKUP vhid 55 advbase 1 advskew 0 > + sleep 5 > + ifconfig carp0 > carp0: flags=8<LOOPBACK> mtu 1500 > carp: INIT vhid 55 advbase 1 advskew 0 > > See, here the interface is up, but after 5 seconds it has gone > down. Could anybody give a hint why this happens ? There are > messages on console about promiscuous mode being enabled/disabled, > but nothing else.I think the interface didn't get sync from other carp interface, so it doesn't know that he is the MASTER or BACKUP, and because of that goes into the INIT state. Setup at least 2 interfaces like in this example and try it out. Example So on cluster1 put this in rc.conf ######## NETWORK ############################################### defaultrouter="10.0.0.1" hostname="cluster1.somehost.net" ifconfig_bge0="inet 10.0.0.101 netmask 255.255.255.0" ifconfig_bge1="inet 192.168.0.1 netmask 255.255.255.0" cloned_interfaces="carp0" network_interfaces="carp0 pfsync0 bge0 bge1 lo0" ifconfig_carp0="vhid 1 pass ugly_password 10.0.0.103/24" ifconfig_pfsync0="up syncif bge1" pfsync_enable="YES" pfsync_syncdev="bge1" ################################################################ on cluster2 put this in rc.conf ######## NETWORK ############################################### defaultrouter="10.0.0.1" hostname="cluster2.somehost.net" ifconfig_bge0="inet 10.0.0.102 netmask 255.255.255.0" ifconfig_bge1="inet 192.168.0.2 netmask 255.255.255.0" cloned_interfaces="carp0" network_interfaces="carp0 pfsync0 bge0 bge1 lo0" ifconfig_carp0="vhid 1 pass ugly_password advskew 100 10.0.0.103/24" ifconfig_pfsync0="up syncif bge1" pfsync_enable="YES" pfsync_syncdev="bge1" ################################################################ -- One cannot sell the earth upon which the people walk Tacunka Witco