BGP multihome failover - route manipulation

Unanswered Question
Jul 30th, 2012
User Badges:

I'm looking for a way to manipulate the default gateway based on source.  I have 2 public IP ranges and I'd like range to route through rt1 and range to route through rt2.  A default route from rt1/isp1 is advertised to rt2 for failover in the event of a rt1/isp1 failure.  This provides failover of the network to route through isp2.

When traffic from hits rt2 I'd like it to be routed out isp2 as long as that path is available.  When the path is not available it should route to rt1.

HSRP for points to rt1 primarily and hsrp for pointing to rt2 primarily.  iBGP and EIGRP are running between the routers. 

What is the best way to send the traffic out via isp2?  (Currenly there's a default route from rt1 sending it to isp1)  I'm sure I can use an ACL matching, route-map and set-next-hop but I'm not sure how to account for an isp2 failover?  Track something on the isp2 side?

Any ideas?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
dking88 Mon, 08/06/2012 - 11:56
User Badges:

Thanks Edison.

I ended up configuring a route-map for the network and applying the set-next-hop based on a tracked IP on the ISP2 side.  It looks like it should work but I'm having an issue when testing.  One of the peers to ISP2 (there are 2 for some reason) terminates once I shut down the ISP2 link.  The route-map on RT1 is as follows.

access-list 1 permit

access-list 2 permit

route-map Outgoing-routes permit 10

  match ip address 1

route-map Outgoing-routes permit 10

  match ip address 2

  set as-path prepend 65005 65005 65005

dking88 Wed, 08/08/2012 - 13:08
User Badges:

Update:  The above configuration worked.  The peer terminated because the router wasn't advertising the 2nd peer network.

Everything is working now.  Thanks.


This Discussion