OSPF Default Route - Redistribute into BGP

Answered Question
Oct 20th, 2009

I am advertising the default route from my firewall into OSPF. I am then redistributing my OSPF into my MPLS private BGP to my branches. Everything is redistributing except for my OSPF default route. I have the redistribute statement as redistribute ospf 100 match external 1 external 2. The OSPF default route is a metric-type 2.

Is there a way to do this?

I have this problem too.
0 votes
Correct Answer by Edison Ortiz about 7 years 1 month ago

You can't redistribute a default into BGP.

Couple of options:

1) Use the network 0.0.0.0 under the BGP process.

Note: 0.0.0.0 must be in the routing table

2) Default-information originate

Same as note as above..

3) Default-Originate on the neighbor. With this approach, you don't need a 0.0.0.0 in the routing table.

Regards

Edison.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
Correct Answer
Edison Ortiz Tue, 10/20/2009 - 19:08

You can't redistribute a default into BGP.

Couple of options:

1) Use the network 0.0.0.0 under the BGP process.

Note: 0.0.0.0 must be in the routing table

2) Default-information originate

Same as note as above..

3) Default-Originate on the neighbor. With this approach, you don't need a 0.0.0.0 in the routing table.

Regards

Edison.

trippi Tue, 10/20/2009 - 19:23

Right now I have the 0.0.0.0 network statement under the BGP process at my main office.

At my DR site I am also advertising the default route in OSPF with a higher metric. I wanted to be able to failover outbound across the MPLS if one of the gateways went down..At my DR site should I also advertise the 0.0.0.0 in the BGP process. Would I use a route map to make it a lower priority?

trippi Tue, 10/20/2009 - 20:05

I tried this but no dice, I did a clear soft, but it did't change the weight to 200. Any ideas?

router bgp 65001

network 0.0.0.0 route-map bgpdefaultroute

route-map bgpdefaultroute permit 10

match ip access bgpdefaultroute

set weigth 200

ip access-list extended bgpdefaultroute

permit ip any any

Edison Ortiz Tue, 10/20/2009 - 20:14

WEIGHT is local to the router and it applies to routes received via BGP from other routers.

I recommend using AS_Prepend outbound on the DR site to the MPLS network.

Actions

This Discussion