redistribute

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

Syntax

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

Parameters

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

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

OSPF router configuration.

Usage

Specifying the global BGP option requires that the PE-CE feature is enabled using enable-pe-ce. The global option turns on the RFC 4577 DN bit.

The “no” form of thiscommand clears redistribution parameters.

Example

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

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