09-03-2013 09:22 PM - edited 03-04-2019 08:56 PM
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
09-05-2013 10:27 AM
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
09-06-2013 12:57 AM
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
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