Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2007 13:17:53 +0200 (EET)
From:      "Prokofiev S.P." <proks@logos.uptel.net>
To:        freebsd-net@freebsd.org
Subject:   Carp, vlan, routing...
Message-ID:  <20070206131612.P36262@logos.uptel.net>

next in thread | raw e-mail | index | archive | help
Hello ALL!
I have a problem with CARP on FreeBSD 6.2 in the following scheme:


  +--------------+     +-----------------------+    +-----------------+
  |     A        |     |          B            |    |       C         |
  |       vlan20 |-//->| vlan20         vlan10 |-//-| vlan10          |
  +--------------+     +-----------------------+    +-----------------+


vlan20 10.10.10.2/26   vlan20 10.10.10.1/26
gateway 10.10.10.1     vlan10 10.10.9.1/26         vlan10 10.10.9.2/26

                         carp10 10.10.9.3/26        carp10 10.10.9.3/26
                                   advskew 0                  advskew 1
                         carp11 10.10.9.4/26        carp11 10.10.9.4/26
                                   advskew 1                  advskew 0


i.e. server B MASTER for 10.10.9.3/26, BACKUP for 10.10.9.4/26
       server C BACKUP for 10.10.9.3/26, MASTER for 10.10.9.4/26


But if to send icmp request from server A -> to server C on ip 10.10.9.4, 
server B replay from BACKUP iface carp11 !?!?

This is trouble or feature of realization ?????
-------------------------------------------------

serverB> ifconfig carp*
carp10: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
          inet 10.10.9.3 netmask 0xffffffc0
          carp: MASTER vhid 100 advbase 1 advskew 0
carp11: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
          inet 10.10.9.4 netmask 0xffffffc0
          carp: BACKUP vhid 101 advbase 1 advskew 1

serverC> ifconfig carp*
carp10: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
          inet 10.10.9.3 netmask 0xffffffc0
          carp: BACKUP vhid 100 advbase 1 advskew 1
carp11: flags=49<UP,LOOPBACK,RUNNING> mtu 1500
          inet 10.10.9.4 netmask 0xffffffc0
          carp: MASTER vhid 101 advbase 1 advskew 0


/etc/sysctl.conf:
net.inet.carp.preempt=1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070206131612.P36262>