But how I'm suppose to annonce the route for the right carp interface?
Right now my servers can always reach the router because of the CARP
interface but the router can't always reach the servers...

If I unplug the cable of my CARP interface (bge2 for example), all
traffic from this router (directly from him or from my upstream
provider) can't reach the servers because the router still have only 1
route going directly to his bge2 interface (the interface with carp)
and he have no clue of the MASTER interface.

Maybe I'm worng  and OSPF is not the solution.

What I try to do is to have a redundant gateway for my servers (CARP)
and I want to have 2 upstreams provider with BGP (multihoming)

I need a way for this 2 routers to talk to each other and share their
internal routes to know how to reach both of the "exit" point (route
to both upstream provider) and how to reach the MASTER interface of
every CARP group.

Any idea?

Thanks,


Henning Brauer:  I will try to do it at the end of my lab, but I'm new
in openBSD and I'm short in time for this project.


2007/4/7, Claudio Jeker <[EMAIL PROTECTED]>:
On Fri, Apr 06, 2007 at 06:38:01PM -0400, FranC'ois 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

Reply via email to