BGP redistribution


 router bgp 65109
   bgp router-id 33.33.33.33
   no synchronization
   redistribute ospf 10 match internal external 1 external 2
   default-metric 2
  • bgp router-id: The BGP and OSPF MUST have the same router-id for successfully redistributing OSPF into BGP.
  • no synchronization: It's especially important when dealing with external routes.
  • redistribute ospf internal external 1 external 2: Needed to explicitly match internals & externals OSPF routes.
  • default-metric 2: Assigns a metric of 2 hops in BGP to the OSPF routes.

iBGP routes are not redistributed into an IGP unless you use "bgp redistribute-internal" command under BGP routing process.