Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 922
  • Last Modified:

Redistribution of OSPF Routes into BGP

Hi Experts,

We have a small, three-site network, and we're migrating to an MPLS cloud for site connectivity. Starting at the internet and working in, each site will look like this:

Internet --> Internet Provider Router --> Firewall --> LAN Router --> MPLS Provider Router --> MPLS Cloud

The firewall and LAN router at each site participates in OSPF and is a part of area 0. Each site needs to redistribute their OSPF routes into BGP, and we are unfamiliar with how to do this.

Here is our OSPF config from one site/router:

router ospf 1
 log-adjacency-changes
 network 192.168.16.0 0.0.7.255 area 0
 network 192.168.50.0 0.0.0.255 area 0
 network 192.168.117.0 0.0.0.255 area 0

It seems that the only command to redistribute these routes into BGP is this:

router bgp 100
 redistribute ospf 1

Can someone please confirm if this is correct or if anything else is needed? Are there any other considerations?

Thanks!
0
meade470
Asked:
meade470
  • 2
  • 2
1 Solution
 
Jan SpringerCommented:
Honestly, stability is better with BGP.

I would nail down the networks using a static route to null with a distance of 250 (if they're present in OSPF, the 110 will win) instead of redistributing OSPF into BGP.
0
 
meade470Author Commented:
Thanks for the quick response. We're CCNA-like beginners with routing protocols. Could you elaborate on that a bit, please?
0
 
Jan SpringerCommented:
ip route 192.168.0.0 255.255.255.0 null 0 250

router bgp 65535
 network 192.168.0.0 mask 255.255.255.0


For a subnet to be announced via BGP, it must be in the routing table via an interior routing protocol.  I don't like my BGP to churn and my prefixes to be dampened if possible and so I nail down the null routes and identify the network to be announced in BGP.

I usually take that a step further and use a prefix-list to identify what I would like to announce so that I am not announcing my eBGP neighbor's prefixes to another eBGP neighbor.
0
 
meade470Author Commented:
Thanks for the insight!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now