Routes learned through BGP4 can be redistributed into OSPF or IS-IS. You can specify an optional route-map, which is consulted before routes are added to BGP. Management routes are not redistributed.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# redistribute connected
This example redistributes IS-IS routes with level 1 packets.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-ipv4u)# redistribute isis level-1
This example redistributes static routes with a metric of 200.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-ipv4u)# redistribute static metric 200
This example redistributes OSPF external type 1 routes with a metric of 200.
device# configure terminal device(config)# router bgp device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-ipv4u)# redistribute ospf match external1 metric 200