5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1093
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
IPv6 Address Family Config
Example
The routes obtained from the kernel can be configured to redistributed in the kernel. The following CLI
commands (in both IPv4 and Pv6) BGP Router mode use the kernel option.
(Routing)(Config)#router bgp 65401
(Routing)(Config-router)#redistribute ?
<cr>
Press enter to execute the command.
connected
Configure redistribution of Connected routes
kernel
Configure redistribution of Kernel routes
ospf
Configure redistribution of OSPF routes
rip
Configure redistribution of RIP routes
static
Configure redistribution of Static routes
Содержание 5000 Series
Страница 1: ...Draft 1 2 1 ...
Страница 141: ...5000 Series Layer 2 3 Managed Data Center Switch CLI Reference Guide 135 ...