redistribute

Syntax

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

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

Description

This command 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-bgp-ipv4-uc

or

config-bgp-ipv6-uc

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-bgp-ipv4-uc)# redistribute connected
switch(config-bgp-ipv4-uc)# no redistribute connected