cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5958
Views
10
Helpful
8
Replies

Redistributing BGP into OSPF in Nexus OS

rcullivan
Level 1
Level 1

I have a Cisco 3925 router connecint to a Nexus 7K running IBGP. BGP neighborship

is established and I can see a route populated on the 7k via bgp for a loopback network

configured on the 3925. Now I try to redistibute the route into OSPF on the 7K but not having any luck learning the route on the downstream router via ospf.

I have a very similar config up and running between a cisco 3925 and a Cat 6506 working great but the configuration doesn't translate to the NXOS.

In the Cat OS, under the OSPF config it's simply "redistribute bgp 65525 subnets"

In the NXOS i have the following

       

router ospf 1974

  vrf core

    router-id 10.255.7.134

    redistribute static route-map static-to-ospf

    redistribute bgp 65525 route-map MPLS

    passive-interface default

ip prefix-list MPLS seq 25 permit 10.255.7.135/32

route-map MPLS permit 10

  match ip address prefix-list MPLS

As I stated I do see the route being learned localy via BGP as follows.

ITDSPG-7K-CORE-CORE2# sh ip route bgp-65525 vrf core
IP Route Table for VRF "core"
10.255.7.135/32, ubest/mbest: 1/0
    *via 10.255.7.26, [20/0], 23:12:34, bgp-65525, internal, tag 65525

I'm hoping that someone out there will be able to see what I'm doing wrong and point me in the right direction.

Thanks for any advice you can offer.

8 Replies 8

antonio.guirado
Level 3
Level 3

Hello,

ospf by default only redistribute classful networks. You must use "redistribute bgp 65525 route-map MPLS subnets"

in order to redistribute subnets. Your prefix 10.255.7.135/32 is a subnet so you need subnet keyword.

Regards.


OleksandrB
Level 1
Level 1

hello, are you found a solution? I have similar question and can not understand why doesnt work redistribution. routes from BGP don't write in OSPF database.

Are you including the parameter subnets on the redistribute command?

 

If so then please post the relevant parts of your configuration.

HTH

Rick

it is NXOS ... redistribute command doesnt have parameter "subnets"

Hello @OleksandrB ,

in stanrdard IOS or IOS XE iBGP routes are not redistributed by default in any IGP this is a form of protection for the IGPs.

you need un

router bgp <my-ASnumber>

redistribute-internal

 

I would expect NX OS to have an equivalent behaviour.

 

Hope to help

Giuseppe

 

Hello

If you trying to redistribute ibgp routes into ospf then you need to use the internal feature-

 

route-map MPLS permit 10
match ip address prefix-list MPLS
match route-type internal


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

i try to redistribute eBGP routes.

 

ip prefix-list BGP2OSPF seq 10 permit 10.3.15.0/24 le 32
route-map BGP2OSPF permit 10
match ip address prefix-list BGP2OSPF
match route-type internal (try with external and without this line )

 

router ospf 100
redistribute bgp 65002 route-map BGP2OSPF

 

sh ip route bgp
10.3.15.253/32, ubest/mbest: 1/0 time
*via 10.87.197.253, [20/0], 3d02h, bgp-65002, external, tag 65001

 

sh ip ospf database | i 10.3.15.253
10.3.15.253 10.87.196.9 234 0x80000027 0x0c6e 65001

 

but in ospf routes table this route dont write

its my mistake ... sometimes it is necessary to allocate time for rest   i dont now why i decided that this route should be in OSPF routes table on this Router. AD OSPF 110, AD eBGP -20

Review Cisco Networking products for a $25 gift card