cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3357
Views
0
Helpful
5
Replies

OSPF to BGP Redistribution

msameerkn
Level 1
Level 1

Dear All ,

We are facing some issue doing an redistribution on nexus os 6.1 ospf to bgp redistribution but unable to see the ospf routes in BGP.

but BGP to ospf redistribution is working fine. Pls find the config below... any help..

router ospf 1

  router-id x.x.x.x

  default-information originate route-map metric

  redistribute direct route-map direct2ospf

  redistribute static route-map static2ospf

  redistribute bgp 1 route-map bgp2ospf

  area 0.0.0.0 authentication message-digest

  passive-interface default

router bgp 1

log-neighbor-changes

address-family ipv4 unicast

redistribute ospf 1 route-map ospftest

route-map ospftest  permit 10

  match route-type internal external

5 Replies 5

Abzal
Level 7
Level 7

Hi,

You need to fix route-map, if it's not typo.

router bgp 1

log-neighbor-changes

address-family ipv4 unicast

redistribute ospf 1 route-map ospftest

no route-map opsftest  permit 10

route-map ospftest  permit 10

  match route-type internal external

Hope it will help.

Best regards,
Abzal

Best regards,
Abzal

sorry it was typo error on post .

Hi,

Verify that OSPF routes are actually in routing table:

sh ip route

if they are then try this:

router bgp 1

log-neighbor-changes

address-family ipv4 unicast

redistribute ospf 1 match internal external 1 external 2

Hope it will help.

Best regards,
Abzal

Best regards,
Abzal

Hi ,

Nexus os version 6.1 will not support this configuration (redistribute ospf 1 match internal external 1 external 2).

we need to redistribute ospf on bgp with route map command .

B .Regards ,

Sameer.

milan.kulik
Level 10
Level 10

Hi,

one common mistake:

Do you see any true OSPF routes on your router?

I.e., does show ip route ospf

show any OSPF routes?

Don't forget only those OSPF routes which are in the router FIB (i.e., the best among all routing protocols) will be redistributed from OSPF to other routing protocols (BGP).

I.e., if you are redistributing static routes to OSPF, OSPF will not redistribute them again to BGP, the routes are still handled as static ones by the redistribution process.