Redistribute Routes into BGP4

You can advertise routes into BGP4 by redistributing static, connected, ISIS, or OSPF routes.

About this task

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.

Procedure

  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Access BGP IPv4 address family unicast configuration mode.
    device(config-bgp-router)# address-family ipv4 unicast
  4. Redistribute connected routes.
    device(config-bgp-ipv4u)# redistribute connected

Example

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

Example

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

Example

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