Redistributing routes into OSPFv2

OSPFv2 routes can be redistributed, and the routes to be redistributed can be specified.

The redistribution of RIP and static IP routes into OSPFv2 is configured on a device.

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router ospf command to enter OSPFv2 router configuration mode and enable OSPFv2 on the device.
    device(config)# router ospf
  3. Enter the redistribute command with the static parameter to redistribute static routes.
    device(config-ospf-router)# redistribute static
  4. Enter the redistribute command with the rip parameter to redistribute RIP routes.
    device(config-ospf-router)# redistribute rip

The following example redistributes static and RIP routes into OSPFv2 on a device.

device# configure terminal
device(config)# router ospf 
device(config-ospf-router)# redistribute static
device(config-ospf-router)# redistribute rip