redistribute

Use this command to allow routing information discovered through non-OSPFv3 protocols to be distributed in OSPFv3 update messages.

Syntax

redistribute {bgp [global]| connected | rip | static | blackhole} [route-map name] [metric metric-value] [metric-type type-value] [tag tag]
no redistribute {bgp | connected | rip | static | blackhole} [route-map name] [metric metric-value] [metric-type type-value] [tag tag]

Parameters

bgp Specifies that BGP routing information will be redistributed in OSPFv3 (S-, 7100-Series).
global (Optional) Specifies that BGP prefixes from the global router are redistributed. VPN4-address prefixes are translated appropriately.
connected Specifies that non-OSPFv3 information discovered via directly connected interfaces will be redistributed.
rip Specifies that RIP routing information will be redistributed in OSPFv3.
static Specifies that non-OSPFv3 information discovered via static routes will be redistributed. Static routes are those created using the ipv6 route command detailed in ipv6 route.
blackhole Specifies that blackhole routes will be redistributed in OSPFv3.
metric metric-value (Optional) Specifies a metric for the redistribution route. This value should be consistent with the designation protocol.
metric-type type-value (Optional) Specifies the external link type associated with the route advertised into the OSPFv3 routing domain. Valid values are 1 for type 1 external route, and 2 for type 2 external route.
route-map name (Optional) Redistributes routes using the rules established by the designated route-map.
tag tag (Optional) Specifies the tag for routes redistributed in OSPFv3.

Defaults

  • If global is not specified, routes associated with the VRF BGP instance are redistributed.
  • If metric-value is not specified, 20 will be applied.
  • If type-value is not specified, type 2 (external route) will be applied.
  • If route-map is not specified, none will be applied.
  • If tag is not specified, none will be applied.

Mode

OSPFv3 router configuration.

Usage

The “no” form of this command clears redistribution parameters.

Example

This example shows how to distribute external type 2 RIP routing information from routes in OSPFv3 updates:

System(rw-config)->ipv6 router ospf 1
System(rw-config-ospfv3)->redistribute rip