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

Reditribution of ospf into ebgp

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

                                                NWRK.jpg

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

3 Accepted Solutions

Accepted Solutions

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

View solution in original post

@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

Best Regards Please rate all helpful posts and close solved questions

View solution in original post

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.


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

View solution in original post

5 Replies 5

cadet alain
VIP Alumni
VIP Alumni

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.

Don't forget to rate helpful posts.

@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

Best Regards Please rate all helpful posts and close solved questions

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.


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

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...

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

Review Cisco Networking for a $25 gift card