Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Apr 2011 14:41:11 +0200 (CEST)
From:      Ingo Flaschberger <if@freebsd.org>
To:        freebsd-net@freebsd.org
Subject:   Re: Routing enhancement - reduce routing table locking
Message-ID:  <alpine.LRH.2.00.1104061426350.2152@filebunker.xip.at>
In-Reply-To: <alpine.LRH.2.00.1104050303140.2152@filebunker.xip.at>
References:  <alpine.LRH.2.00.1104050303140.2152@filebunker.xip.at>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

regarding multipath problems:

Setup which should work:

+--------+              +--------+
|Router A|----(ospf)----|Router B|
+--------+              +--------+
      |(carp)                |(carp)
      |                      |
      +----------+-----------+
                 |
                Lan

Router A & B run quagga and exchange routing table.
Router B has during failover of carp a route to lan via ospf/router A and 
a direct connected interface.
Thus FreeBSD carp is not able to handle this correctly, I use a modified 
version of ucarp.

Testsetup:

+---------+ (em1)        +-----+
| FreeBSD |--------------|Probe|
+---------+              +-----+

Probe: 	10.13.13.95/24
FreeBSD:
 	em2: 10.11.11.100/24

++ probe answer ping
-- probe does not answer ping

Script:
--- snip ---
ifconfig em1 alias 10.13.13.90/24
ping -c 1 10.13.13.95
 	++
route add 10.13.13.0/24 10.11.11.1 -weight 2
ping -c 1 10.13.13.95
 	++
route add 10.13.13.0/24 10.11.11.2 -weight 3
ping -c 1 10.13.13.95
 	++

route delete 10.13.13.0/24 10.11.11.1
ping -c 1 10.13.13.95
 	++
route delete 10.13.13.0/24 10.11.11.2
ping -c 1 10.13.13.95
 	++
ifconfig em1 -alias 10.13.13.90
ping -c 1 10.13.13.95
 	--

route add 10.13.13.0/24 10.11.11.1 -weight 2
ping -c 1 10.13.13.95
 	--
ifconfig em1 alias 10.13.13.90/24
ping -c 1 10.13.13.95
 	++
route add 10.13.13.0/24 10.11.11.2 -weight 3
ping -c 1 10.13.13.95
 	++
ifconfig em1 -alias 10.13.13.90
ping -c 1 10.13.13.95
 	--
route delete 10.13.13.0/24 10.11.11.1
ping -c 1 10.13.13.95
 	--
route delete 10.13.13.0/24 10.11.11.2
ping -c 1 10.13.13.95
 	--

route add 10.13.13.0/24 10.11.11.1 -weight 2
ping -c 1 10.13.13.95
 	--
route add 10.13.13.0/24 10.11.11.2 -weight 3
ping -c 1 10.13.13.95
 	--
ifconfig em1 alias 10.13.13.90/24
ping -c 1 10.13.13.95
 	++
route delete 10.13.13.0/24 10.11.11.2
ping -c 1 10.13.13.95
 	++
route delete 10.13.13.0/24 10.11.11.1
ping -c 1 10.13.13.95
 	++
ifconfig em1 -alias 10.13.13.90
 	--

route add 10.13.13.0/24 10.11.11.1
ifconfig em1 alias 10.13.13.90/24
ifconfig em1 down
ifconfig em1 up
ifconfig em1 down

ifconfig em1 -alias 10.13.13.90
route delete 10.13.13.0/24 10.11.11.1

ifconfig em1 alias 10.13.13.90/24
route add 10.13.13.0/24 10.11.11.1
ifconfig em1 down
ifconfig em1 up
ifconfig em1 down
--- snap ---

If this script runs without any kernels errors (dmesg), crashes and probe 
replies accordingly - then everything is alright.

Mit freundlichen Gruessen,
 	Ingo Flaschberger

Geschaeftsleitung
____________________________________
crossip communications gmbh
A-1020 Wien, Sebastian Kneipp Gasse 1/3

Sitz der Gesellschaft: 1020 Wien, Oesterreich
Firmenbuchgericht: Handelsgericht Wien, FN 269698 s,
Umsatzsteueridentifikationsnummer (UID): ATU62080367

Haftungsausschluss / Disclaimer <http://www.xip.at/content/view/278/>;



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