06-19-2013 09:12 AM - edited 03-04-2019 08:15 PM
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.
06-19-2013 09:38 AM
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.
03-13-2021 02:10 PM
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.
03-13-2021 06:38 PM
Are you including the parameter subnets on the redistribute command?
If so then please post the relevant parts of your configuration.
03-14-2021 10:49 AM
it is NXOS ... redistribute command doesnt have parameter "subnets"
03-14-2021 01:59 AM
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
03-14-2021 01:02 AM - edited 03-14-2021 01:02 AM
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
03-14-2021 11:02 AM
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
03-15-2021 02:49 AM
its my mistake ... sometimes it is necessary to allocate time for rest
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide