Redistributing routes into OSPFv3
OSPFv3 routes can be redistributed, and the routes to be redistributed can be specified.
The redistribution of both static routes and BGP routes into OSPFv3 is configured on device1. The redistribution of connected routes into OSPFv3 is configured on device2, and the connected routes to be redistributed are specified.
- On device1, enter the
configure terminalcommand to access global configuration mode. - Enter the
ipv6 router ospfcommand to enter OSPFv3 router configuration mode and enable OSPFv3 on the device. - Enter the
redistributecommand with the static parameter to redistribute static routes. - Enter the
redistributecommand with the bgp parameter to redistribute static routes. - On device2, enter the
configure terminalcommand to access global configuration mode. - Enter the
ipv6 router ospfcommand to enter OSPFv3 router configuration mode and enable OSPFv3 on the device. - Enter the
redistributecommand with the connected and route-map parameters to redistribute connected routes and specify a route map.
The following example redistributes static and BGP routes routes into OSPFv3 on a device.
device# configure terminal device(config)# ipv6 router ospf device(config-ospf6-router)# redistribute static device(config-ospf6-router)# redistribute bgp