On Fri, Apr 06, 2007 at 06:38:01PM -0400, Frangois Rousseau wrote:
> Hi,
>
> I'm configuring 2 server to use as a gateway for multihoming.
>
> I use:
>
> OpenBSD 4.0 stable and OpenBSD 4.0 release
> OpenBGPD
> OpenOSPFD
> CARP for failover
>
> I have 2 router with 3 interfaces and 5 carp interfaces by router.
>
> interface1 = eBGP with 2 upstream provider
> interface2 = Link between the 2 routers, OSPF, iBGP (10.10.10.0/30)
> (em0 and bge0)
> interface3 = 5 * carp --> use as gateway for my servers (bge2)
>
> Right now the BGP, and the CARP work correctly.
>
> My problem is with the OSPF part. OSPF by itself work correctly but
> it didn't announce any route concerning the carp interface.
>
> If I start ospfd with "ospfd -dv" I see many:
> "if_fsm: event UP resulted in action START and changing state for
> interface carpX from DOWN to DOWN"
>
That's normal. Carp interfaces are always DOWN aka passive because it is
impossible to run OSPF over a carp interface.
The routes covered by carp are included in the router LSA as stub
networks. ospfctl show data router and ospfctl show rib will show these
networks.
--
:wq Claudio
> -------------------
>
> Router1:
> ospfd.conf
>
> router-id 0.0.0.1
> redistribute 44.25.32.41/30
>
> area 0.0.0.0 {
> auth-type crypt
> auth-md 1 "iii"
> auth-md 2 "jjj"
> auth-md-keyid 1
>
> interface em0 {
> metric 10
> }
> interface carp0 {
> passive
> }
> interface carp1
> interface carp2
> interface carp3
> interface carp4
> }
>
>
>
> hostname.bge2:
> inet 83.201.76.2 255.255.255.0 NONE description "My network"
>
> -----------------
>
> Router2:
> ospfd.conf
>
> router-id 0.0.0.2
> redistribute 211.6.17.17/30
>
> area 0.0.0.0 {
> auth-type crypt
> auth-md 1 "iii"
> auth-md 2 "jjj"
> auth-md-keyid 1
>
> interface bge0
> interface carp0 {
> passive
> }
> interface carp1
> interface carp2
> interface carp3
> interface carp4
> }
>
>
>
> hostname.bge2:
> inet 23.182.158.2 255.255.255.0 NONE description "My network"
>
>
> ---------------
>
> Both router:
>
> CARP:
> hostname.carp0:
> inet 23.182.158.1 255.255.255.0 23.182.158.255 vhid 1 pass
> temppass2 carpdev bge2
>
> hostname.carp1:
> inet 83.201.77.1 255.255.255.0 83.201.77.255 vhid2 pass temppass2
> carpdev bge2
>
> hostname.carp2:
> inet 83.201.78.1 255.255.255.0 83.201.78.255 vhid3 pass temppass2
> carpdev bge2
>
> hostname.carp3:
> inet 83.201.79.1 255.255.255.0 83.201.79.255 vhid4 pass temppass2
> carpdev bge2
>
> hostname.carp4:
> inet 83.201.76.1 255.255.255.0 83.201.76.255 vhid5 pass temppass2 carpdev
> bge2
>
>
>
> Thanks,
> FranC'ois