redistribute (IPv4 VRF Address Family Config)

This command configures BGP to advertise routes learned by means outside of BGP. BGP can redistribute local (connected), static, OSPF, and RIP routes.

The distribute-list out command can also be used to filter redistributed routes by prefix. Either a redistribute route map or a distribute list may be configured, but not both.

A default route cannot be redistributed unless the default-information originate command is given.

If a route map is configured, match as-path and match community terms are ignored. If no route map is configured with the name given, no prefixes are redistributed.

Default BGP redistributes no routes by default. When BGP redistributes OSPF routes, it redistributes only internal routes unless the match option specifies external routes.
Format redistribute {ospf | rip | connected | static} [metric metric-value] [match {internal | external 1 | external 2 | nssa-external 1 | nssa-external 2}] [route-map map-tag]
Mode IPv4 VRF Address Family Config
Parameter Description
ospf, rip, connected, static A source of routes to redistribute.
metric metric-value (Optional) When this option is specified, BGP advertises the prefix with the Multi Exit Discriminator path attribute set to the configured value. If this option is not specified, but a default metric is configured for BGP, then the MED is set to the default metric. If a default metric is not configured, then the prefix is advertised without a MED attribute.
match (Optional) If you configure BGP to redistribute OSPF routes, BGP by default only redistributes internal routes OSPF intra-area and inter-area routes). Use the match option to configure BGP to also redistribute specific types of external routes, or to disable redistribution of internal OSPF routes.
route-map map-tag (Optional) A route map can be used to filter redistributed routes by destination prefix using a prefix list. A route map can be used to set attributes on redistributed routes.

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail [email protected]

LANCOM Logo
OSZAR »