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.
-
Enter the
configure terminal command to access global configuration mode.
device# configure terminal
-
Enter the
router ospf command to enter OSPFv2 router configuration mode and enable OSPFv2 on the device.
device(config)# router ospf
-
Enter the
redistribute command with the
static parameter to redistribute static routes.
device(config-ospf-router)# redistribute static
-
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