redistribute
Injects (redistributes) routes from one routing protocol domain to another.
Syntax: [no] redistribute protocol [process-id]{level-1 | level-2} [match {internal | external 1 | external 2}] [metric metric] [metric-type {1 | 2 | external | internal}] [route-map map-name]
Description: Use the redistribute command to redistribute routes from one routing domain to another.
Use the no redistribute command to disable redistribution.
The redistribute command is used to inject routes from one routing domain into another routing domain. You can conditionally control the redistribution of routes between routing domains by defining route maps (see route-map).
The table below describes which routing protocols may be redistributed to other protocol domains:
1 The redistribute command does not redistribute the loopback interface.
Table 5-5. Redistribution Between Protocol Domains TO Protocol BGP
IS-IS
OSPF
FROM Protocol BGP
n/a
Yes
Yes
IS-IS
Yes
n/a
No
OSPF
Yes
No
n/a
Static IP
Yes
Yes
Yes
Connected1
Yes
Yes
Yes
Redistribution passes route information from your network into BGP. You must carefully filter this routing information to insure that only those routes that you want advertised are passed. Use the neighbor distribute-list out command to filter routing information.
Metric values defined by the default-metric command are overridden by the metric values defined by the redistribute command.
For OSPF: OSPF metrics are not preserved when routes are redistributed between OSPF processes. Routes redistributed into OSPF with no metric specified are assigned default metrics of 1 for BGP routes and 20 for all other protocols.
If you configure a router (using the redistribute or default-information commands) to redistribute routes into OSPF, that router becomes an Autonomous System Boundary Router (ASBR). ASBRs do not generate a default route into OSPF.
The metric specified by the default-metric command does not affect the metric used to advertise connected routes.
Factory Default: Route distribution is disabled. No source protocol is defined. No process ID is defined. OSPF criteria are not defined. No route map is defined. No map-name is defined. Network weight is not defined. Metric is 0.
Command Mode: Router configuration.
Example 1: In the following example, routes are redistributed from OSPF into BGP:
router(config)#router bgp 120
router(config-router)#redistribute ospf 100
The routes learned by OSPF are visible to BGP.
Example 2: In the following example, the redistribute command redistributes routes learned from BGP into IS-IS as Level-1 routes. The metric-type keyword specifies that the metric-type is set as external for those routes.
router(config)#router isis route_tag
router(config-router)#redistribute bgp 41 level-1 metric-type external
Related Commands: route-map
show route-map
router bgp
router isis
router ospf
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: Routing_Pol.fm
HTML File Name: Routing_Pol29.html
Last Updated: 05/10/04 at 16:38:37