Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP and OSPF redistribution

Hi,

When we have a network running with OSPF as IGP and MP-BGP for VRF network, how the OSPF learned routes will be redistributed to BGP and vice-versa.

Under address family vrf  'xxx'    We used to do redistribute satic and connected. this command will redistribute the vrf traffic to BGP.

How the plain traffic running by OSPF will redistribute with ospf.

How can we check the redistributed routes.

Please guide.

Thanks & regards,

Naveen

2 REPLIES
New Member

BGP and OSPF redistribution

I hope this example can help you to setup a redistrubution on your enviornment

router ospf 20 vrf XXXX

log-adjacency-changes

redistribute static

redistribute bgp 3 subnets

network 0.0.0.0 255.255.255.255 area 0

default-information originate

!

router bgp xx

address-family ipv4 vrf XXXX

  redistribute ospf 20 vrf XXXX

  neighbor x.x.x.x remote-as xxxx

  neighbor x.x.x.x activate

  neighbor x.x.x.x soft-reconfiguration inbound

Bronze

BGP and OSPF redistribution

Assuming you have the following desgin.

CE1------OSPF------PE1--------MPBGP-------PE2--------CE2.

on PE1 you should have the following config in terms of BGP and OSPF redistribution.

router ospf XX vrf vrf1

redistribute bgp YY subnets metric 10

address-family ipv4 unicast vrf vrf1

redistribute ospf XX subnets

no auto-summary

no synchronization

exit-address-family

You can check on PE2 if your redistributed routes are being received or not by

show ip route vrf X.X.X>X   ( where X.X.X.X ) can be any prefix being redistributed in BGP

also you can check if those prefixes are in BGP table.

show ip bgp vpnv4 all

Thanks

Vinay

423
Views
0
Helpful
2
Replies
CreatePlease login to create content