redistribute ospf

Syntax

redistribute ospf proc-id [aspath-limit limit] [origin code] [med value] [local-pref value] [route-map name]
no redistribute ospf [aspath-limit limit] [origin code] [med value] [local-pref value] [route-map name]

Parameters

proc-id Specifies an OSPF process ID.
aspath-limit limit (Optional) Specifies the upper limit on AS-path length. Valid values are 0 - 255. Default value is 1.
origin code (Optional) Specifies the origin process attribute. Valid values are:

0 - IGP
1 - EGP
2 - Incomplete

Default value is 2.

med value (Optional) Specifies the multi-exit discriminator value for this route. Valid values are 0 - 4294967295. Default value is 0.
local-pref value (Optional) Specifies a route selection value for this route when the same prefix is learned from multiple peers.
route-map name (Optional) A route-map name to apply to these routes.

Defaults

  • If a route-map is not specified, no route-map is applied.
  • If an aspath-limit is not specified, the aspath-limit is not included in updates.
  • If an origin code is not specified, the origin is set to the default value of 2 (incomplete).
  • If a med is not specified, the MED attribute is not included in updates. When MED is not included in an update, MED is treated as though it were set to 0.
  • If local-pref is not specified, the local-pref is set to the default value of 100.

Mode

BGP Router Configuration or BGP address family configuration mode.

Usage

The redistribute ospf command provides for the exporting of OSPF routes into BGP.

The no redistribute ospf command removes redistribution of OSPF route configuration from the router.

Examples

In the following example BGP is configured to redistribute OSPF routes that match the contents of the OSPFroutes route-map.

System(su-config)->router bgp 65151
System(su-config-bgp)->redistribute ospf route-map OSPFroutes