5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1092
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.
Use the
no
command to remove the configuration for the redistribution for BGP protocol from the
specified source protocol/routers. The command
no redistribute ospf match external 1
will withdraw
only OSPF external type 1 routes, ospf inter routes will still be redistributing.
redistribute {ospf | rip | connected | static} [metric metric-value] [match {internal | external 1 |
external 2 | nssa-external 1 | nssa-external 2}] [route-ma map-tag]
no redistribute {ospf | rip | connected | static} [metric metric-value] [match {internal | external 1 |
external 2 | nssa-external 1 | nssa-external 2}] [route-ma map-tag]
Parameters
ospf |connected | static
A source of routes to redistribute.
metric metric-value
(Optional) When this option is specified, BGP advertises the prefix with
the Muiti Exit Discriminator path attribute set to the configured value. If
this option is not specified, but a default metric is configured for BGP,
the MED is set to the default metric. If a default metric is not configured,
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.
Default
The default is BGP does not distribute routes. When BGP redistributes OSPF routes, it redistributes only
internal routes unless the
match
option specifies external routes.
Command Mode
IPv4 VRF Address Family Config
11-99 redistribute (IPv6 Address Family Config)
This command configures BGP to non-BGP routes from the lPv6 routing table.
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.