Redistributing routes into OSPFv3

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

About this task

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.

Procedure

  1. On device1, enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 on the device.
    device(config)# ipv6 router ospf
  3. Enter the redistribute command with the static parameter to redistribute static routes.
    device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute static
  4. Enter the redistribute command with the bgp parameter to redistribute static routes.
    device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute bgp
  5. On device2, enter the configure terminal command to access global configuration mode.
    device# configure terminal
  6. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 on the device.
    device(config)# ipv6 router ospf
  7. Enter the redistribute command with the connected and route-map parameters to redistribute connected routes and specify a route map.
    device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute connected route-map rmap1

Example

The following example redistributes static and BGP routes routes into OSPFv3 on a device.

device# configure terminal
device(config)# ipv6 router ospf 
device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute static
device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute bgp

Example

The following example redistributes connected routes into OSPFv3 on a device and specifies a route map.

device# configure terminal
device(config)# ipv6 router ospf 
device(config-ipv6-router-ospf-vrf-default-vrf)# redistribute connected route-map rmap1