Re: carp, 2 router

2007-04-12 Thread Chris Black
FranC'ois Rousseau wrote:
 Hi,

 I have a problem to understand how to dynamically change the route
 destinate to a carp interface.

 I have 2 routers, both have 3 NIC.

 On each router I have:
 1 Nic for the upstream
 1 Nic for the LAN ( 5 carp, no nat)
 1 Nic for inter-router traffic.

 What I want:

 If one of my CARP goes in Backup state or if the cable is unplug,
 every route to those network are automatically redirected to the other
 router.

 Ex:
 Carp on router 1 goes backup so every traffic destinate to those
 network are automatically redirected to the router2 who have the CARP
 Master.  So my router1 can continue to communicate with host on the
 LAN.  (use full to route traffic from my upstream provider)

 Right now, I think is impossible because the route always stay in
 route show regardless of the interface state.

 Any idea how to do this?
Not sure I /totally/ understand your architecture, but I think what you
need is a carp on the upstream.

Chris



Re: carp, 2 router

2007-04-12 Thread François Rousseau

Well at the end I will have BGP for the upstream provider but this
part work fine so I have not talk about it in my last email.

I have done a fast schema of my setup: http://step.polymtl.ca/~spock/draft.jpg.

The reason I want to use CARP inside is because I want to have a
single gateway on my servers.

The BGP part will take care of annoncing the routes and taking the
good exit point.
The CARP part will take care of the gateway for my servers.

But OSPF is not able to enter the carp route in the routing table...
probably because a route is already there.

thanks,
Francois Rousseau



2007/4/12, Chris Black [EMAIL PROTECTED]:

FranC'ois Rousseau wrote:
 Hi,

 I have a problem to understand how to dynamically change the route
 destinate to a carp interface.

 I have 2 routers, both have 3 NIC.

 On each router I have:
 1 Nic for the upstream
 1 Nic for the LAN ( 5 carp, no nat)
 1 Nic for inter-router traffic.

 What I want:

 If one of my CARP goes in Backup state or if the cable is unplug,
 every route to those network are automatically redirected to the other
 router.

 Ex:
 Carp on router 1 goes backup so every traffic destinate to those
 network are automatically redirected to the router2 who have the CARP
 Master.  So my router1 can continue to communicate with host on the
 LAN.  (use full to route traffic from my upstream provider)

 Right now, I think is impossible because the route always stay in
 route show regardless of the interface state.

 Any idea how to do this?
Not sure I /totally/ understand your architecture, but I think what you
need is a carp on the upstream.

Chris




Re: carp, 2 router

2007-04-12 Thread Dag Richards

Caveat -- bge? ospf? eh I only know them at the executive brief level.
  carp, stp, static routing I know well enough.


So call router one primary
traffic is coming routes are all up everything is good.

Switch 1 dies, carp  switches master over to router 2 bge2.
If you had carp inside and out, you would be done, router2 bge1 would 
take over your outside ip and traffic would go there.


If I understand your issue:
In the case of the failure
upstream 1 is going to continue to send traffic to router 1, you want 
rtr 1 to then forward traffic to router 2.  Router 2 then hands traffic 
to the internal systems.


OSPF is refusing to add a route showing something like

10.50.4/241xx.1xx.35.1 UGS 00  -   bge0

because you already have

10.50.4.22  00:00:0c:9f:f0:4e  UHLc   0 11351930  -   carp1

or some such



What if you use were to use ifstat to remove the ips from router1 be2
on failure?

If you do this manually will ospf add the routes you desire?



FranC'ois Rousseau wrote:

Well at the end I will have BGP for the upstream provider but this
part work fine so I have not talk about it in my last email.

I have done a fast schema of my setup: 
http://step.polymtl.ca/~spock/draft.jpg.


The reason I want to use CARP inside is because I want to have a
single gateway on my servers.

The BGP part will take care of annoncing the routes and taking the
good exit point.
The CARP part will take care of the gateway for my servers.

But OSPF is not able to enter the carp route in the routing table...
probably because a route is already there.

thanks,
Francois Rousseau



2007/4/12, Chris Black [EMAIL PROTECTED]:

FranC'ois Rousseau wrote:
 Hi,

 I have a problem to understand how to dynamically change the route
 destinate to a carp interface.

 I have 2 routers, both have 3 NIC.

 On each router I have:
 1 Nic for the upstream
 1 Nic for the LAN ( 5 carp, no nat)
 1 Nic for inter-router traffic.

 What I want:

 If one of my CARP goes in Backup state or if the cable is unplug,
 every route to those network are automatically redirected to the other
 router.

 Ex:
 Carp on router 1 goes backup so every traffic destinate to those
 network are automatically redirected to the router2 who have the CARP
 Master.  So my router1 can continue to communicate with host on the
 LAN.  (use full to route traffic from my upstream provider)

 Right now, I think is impossible because the route always stay in
 route show regardless of the interface state.

 Any idea how to do this?
Not sure I /totally/ understand your architecture, but I think what you
need is a carp on the upstream.

Chris