redistribute

Syntax

redistribute {connected|ospf|static} [route-map <ROUTE-MAP-NAME>]

no redistribute {connected|ospf|static} [route-map <ROUTE-MAP-NAME>]

Description

Specifies routes to import into BGP. This command causes routes from the specified protocol to be considered for redistribution into BGP.

The no form of this command specifies no redistribution into BGP.

Command context

config-router

Parameters

{connected|ospf|static}
Specifies a redistribution protocol name.
  • connected - Specifies redistribute directly attached networks (directly attached to the subnet or host).

  • ospf - Specifies redistribute Open Shortest Path First (OSPFv2) routes.

  • static - Specifies redistribute statically configured routes.

route-map <ROUTE-MAP-NAME>

Optional. Specifies a route map to match for redistribution.

Authority

Administrators

Usage

  • If a route map is specified, then routes that pass the match clause specified in the route map will be imported into the BGP peer Routing Information Base (RIB).
  • Route-maps must be configured prior to being referenced in redistribution statements.

Examples

switch(config-router)# redistribute connected
switch(config-router)# no redistribute connected