02-03-2013 05:58 AM - edited 03-04-2019 06:55 PM
hi i am configuring router as the clients sholud connect to internal network over the MPLS link.
we are running ospf in our internal network and BGP for ISP.
the scenario is like this
our internal network working fine up to 192.168.1.10 thorugh ospf routing.
and BGP is configured as the client 192.168.20.2 should reach to internal server 192.168.10.1
the client is able to reach up to 192.168.1.10 over MPLS link but cannot reach the server 192.168.10.1 or core switch.
for that i have to configure redistribution but after redistribution also i am not able to reach that server.
can any one give the steps for redistributing the ebgp into ospf and ospf into ebgp.
thankyou
Solved! Go to Solution.
02-03-2013 11:52 AM
Hi,
could you post the output from sh run | s router bgp|ospf on your CE router
Regards
Alain
Don't forget to rate helpful posts.
02-03-2013 12:30 PM
@mohammed
there is nothing much to configure for simple redistribution.
router ospf PROC_ID
redistribute bgp ASN subnets
router BGP ASN
redistribute ospf PROC_ID
02-03-2013 02:49 PM
Hello blau,
there is nothing much to configure for simple redistribution.- That would be the case between ("normal" if i can say that) igp and bgp but in this scenario it sounds like their routers involve mp-bgp mpls vpns including vrf's which is different.
as requested by cadat alain checking the running config to see the current setup would be best.
res
Paul
Please don't forget to rate this post if it has been helpful.
02-03-2013 11:52 AM
Hi,
could you post the output from sh run | s router bgp|ospf on your CE router
Regards
Alain
Don't forget to rate helpful posts.
02-03-2013 12:30 PM
@mohammed
there is nothing much to configure for simple redistribution.
router ospf PROC_ID
redistribute bgp ASN subnets
router BGP ASN
redistribute ospf PROC_ID
02-03-2013 02:49 PM
Hello blau,
there is nothing much to configure for simple redistribution.- That would be the case between ("normal" if i can say that) igp and bgp but in this scenario it sounds like their routers involve mp-bgp mpls vpns including vrf's which is different.
as requested by cadat alain checking the running config to see the current setup would be best.
res
Paul
Please don't forget to rate this post if it has been helpful.
02-03-2013 03:51 PM
Thanks a lot for your replies.....
i just redistrbuted ospf to bgp and bgp to ospf
router ospf 10
log-adjacency-changes
redistribute eigrp 200 subnets
redistribute bgp 65412 subnets
network 192.168.1.0 0.0.0.255 area 0
router bgp 65412
no synchronization
bgp log-neighbor-changes
bgp redistribute-internal
network 192.168.1.0
redistribute ospf 10
neighbor 172.16.16.1 remote-as 29684
neighbor 172.16.16.1 prefix-list only-lan out
neighbor 172.31.3.17 remote-as 65000
neighbor 172.31.3.17 prefix-list only-lan out
no auto-summary
ASICO-RYD#sh run | s router bgp|ospf
redistribute ospf 10 metric 512 600 100 100 1500
router ospf 10
log-adjacency-changes
redistribute eigrp 200 subnets
redistribute bgp 65412 subnets
network 192.168.1.0 0.0.0.255 area 0
router bgp 65412
no synchronization
bgp log-neighbor-changes
bgp redistribute-internal
network 192.168.1.0
redistribute ospf 10
neighbor 172.16.16.1 remote-as 29684
neighbor 172.16.16.1 prefix-list only-lan out
neighbor 172.31.3.17 remote-as 65000
neighbor 172.31.3.17 prefix-list only-lan out
no auto-summary
its working fine but i know this will lead me in trouble if all bgp routes are learned by ospf and ospf redistributing internal routes out into bgp.
but i am not able to create routemaps for the specific routes...
02-05-2013 12:19 AM
Hi,
ad "...this will lead me in trouble if all bgp routes are learned by ospf and ospf redistributing internal routes out into bgp.
but i am not able to create routemaps for the specific routes..."
Why don't you simply use
prefix-list subnets-from-ospf seq 5 permit x.x.x.x/y
...
!
router-map from-ospf permit 10
match ip address prefix-list subnets-from-ospf
!
router bgp 65412
redistribute ospf 10 route-map from-ospf
if you want to redistribute only some OSPF prefixes to BGP?
And vice versa if you want to redistribute only some BGP routes to OSPF?
HTH,
Milan
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