We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

OSPF to BGP Routing Problem

Northtech
Northtech asked
on
Medium Priority
786 Views
Last Modified: 2012-05-07
Hello,
I am wondering if someone can help me out with a routing problem.
Router (A) is sending /24 routes to router (B) via OSPF. Once (B) gets the routes, it redistributes them into BGP and propagates them throughout our network, no problem.

We just got a /20 network that we are trying to send from (A) as well as our existing /24 routes. What is happening is that (A) is sending the /20 route to (B), we see that (B) is receiving the route via OSPF but for some reason it is not getting propagated via (B)'s BGP.  

However, when we break down the /20 into discrete /24 blocks, we can propagate those no problem.

When I do a show route command from router B, the /20 shows up as follows:

ROUTER(B) #show ip route 192.168.176.0
Routing entry for 192.168.176.0/20, supernet
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 1
  Redistributing via bgp 1
 
And a show route for a working /24-

ROUTER(B)#show ip route 192.168.231.0
Routing entry for 192.168.231.0/24
  Known via "ospf 1", distance 110, metric 20, type extern 2, forward metric 1
  Redistributing via bgp 1



Can someone take a look at the config below? Thanks!


********ROUTER A:********
 
router ospf 1
 router-id 10.10.10.253
 log-adjacency-changes
 redistribute connected subnets
 network 10.10.10.248   0.0.0.3 area 0
 network 10.10.10.253  0.0.0.0 area 0
 
!
ip classless
!
 
********ROUTER B********
router ospf 1
 router-id 10.10.10.254
 log-adjacency-changes
 redistribute connected subnets
 network 10.10.10.248 0.0.0.3 area 0
 network 10.10.10.254 0.0.0.0 area 0
 default-information originate
 
router bgp 1
 no synchronization
 bgp log-neighbor-changes
 bgp confederation identifier 1
 bgp confederation peers 2 3 4
 aggregate-address 10.10.10.0 255.255.255.0 summary-only
 redistribute connected
 redistribute static
 redistribute ospf 1
neighbor 10.10.9.1 route-map CORE out (let's call this router C) 
no auto-summary
 
route-map CORE permit 20
match ip address prefix list 199
set metric 100
set origin igp 
set community no-export
 
********THESE ARE THE /24 routes and the new /20 route********
ip prefix-list 199 seq 5 permit 192.168.231.0/24
ip prefix-list 199 seq 10 permit 192.168.238.0/24
ip prefix-list 199 seq 15 permit 192.168.239.0/24
ip prefix-list 199 seq 20 permit 192.168.241.0/24
ip prefix-list 199 seq 25 permit 192.168.237.0/24
ip prefix-list 199 seq 30 permit 192.168.240.0/24
ip prefix-list 199 seq 35 permit 192.168.229.0/24
ip prefix-list 199 seq 40 permit 192.168.230.0/24
ip prefix-list 199 seq 45 permit 192.168.234.0/24
ip prefix-list 199 seq 50 permit 192.168.233.0/24
ip prefix-list 199 seq 55 permit 192.168.232.0/24
ip prefix-list 199 seq 60 permit 192.168.236.0/24
ip prefix-list 199 seq 65 permit 192.168.235.0/24
ip prefix-list 199 seq 70 permit 192.168.176.0/20

Open in new window

Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
sh ip bgp neigh 10.10.9.1 adv

with the /20 configured.

Author

Commented:
It isn't advertising it, and when I do a "show ip bgp" command it doesn't show up there either

ROUTER(B)#show ip bgp neighbors 10.10.9.1 advertised-routes
BGP table version is 4064, local router ID is 10.10.10.254
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
r>i192.168.229.0    10.10.10.253         100    100      0 i
r>i192.168.230.0    10.10.10.253         100    100      0 i
r>i192.168.231.0    10.10.10.253         100    100      0 i
r>i192.168.232.0    10.10.10.253         100    100      0 i
r>i192.168.233.0    10.10.10.253         100    100      0 i
r>i192.168.234.0    10.10.10.253         100    100      0 i
*> 192.168.235.0    0.0.0.0                  0         32768 ?
r>i192.168.236.0    10.10.10.253         100    100      0 i
r>i192.168.237.0    10.10.10.253         100    100      0 i
r>i192.168.238.0    10.10.10.253         100    100      0 i
r>i192.168.239.0    10.10.10.253         100    100      0 i
r>i192.168.240.0    10.10.10.253         100    100      0 i
r>i192.168.241.0    10.10.10.253         100    100      0 i
*> 10.10.10.0     0.0.0.0                            32768 i

Total number of prefixes 14
CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Jesper, thanks for your help! We just got it working by adding it  statically in the BGP configuration of router B.

The /20 is nailed down as an ip address on an interface of router A.

Now it is advertising via bgp. Before adding this line to router B's config

router bgp 1
network 192.168.176.0 mask 255.255.240.0

It was redistributing to BGP but not advertising



Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.