cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
964
Views
0
Helpful
2
Replies

BGP and OSPF redistribution

ncnaveen_arasu
Level 1
Level 1

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 2

vishal vyas
Level 1
Level 1

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

vinayk3
Cisco Employee
Cisco Employee

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

Review Cisco Networking for a $25 gift card