redistribute
Redistributes routes from one routing domain into another routing domain. For DVMRP, only routes that appear in the RPF table can be redistributed. The no version ends redistribution of information.
The options available vary depending on the routing protocol context; that is, on whether you are configuring BGP, DVMRP, IS-IS, OSPF, or RIP.
redistribute { fromProtocol | [ ospf match internal [ external [ 1 | 2 ] ] |
ospf match external [ 1 | 2 ] [ internal ] ] } [ metric absoluteValue |
route-map mapTag | weight wtValue ]*no redistribute { fromProtocol | [ ospf match internal [ external [ 1 | 2 ] ] |
ospf match external [ 1 | 2 ] [ internal ] ] } [ metric [ absoluteValue ] |
route-map [ mapTag ] | weight [ wtValue ] ]*[ no ] redistribute fromProtocol [ route-map mapTag ]
redistribute { fromProtocol | static ip |
[ ospf match internal [ external [ 1 | 2 ] ] |
ospf match external [ 1 | 2 ] [ internal ] ] } [ level-1 | level-1-2 | level-2 |
metric absoluteValue | metric-type { external | internal } | route-map mapTag ]*no redistribute { fromProtocol | static ip |
[ ospf match internal [ external [ 1 | 2 ] ] |
ospf match external [ 1 | 2 ] [ internal ] ] } [ level-1 | level-1-2 | level-2 |
metric [ absoluteValue ] | metric-type [ external | internal ] | route-map [ mapTag ] ]*redistribute { fromProtocol | ospf match internal }
[ metric-type { 1 | 2 } | metric absoluteValue | route-map mapTag | tag tagValue ]*no redistribute { fromProtocol | ospf match internal }
[ metric-type [ 1 | 2 ] | metric [ absoluteValue ] | route-map [ mapTag ] | tag [ tagValue ] ]*redistribute ospf
{ match internal external [ 1 | 2 ] | match external [ 1 | 2 ] [ internal ] }
[ metric absoluteValue | route-map mapTag | tag tagValue ]*no redistribute ospf
{ match internal external [ 1 | 2 ] | match external [ 1 | 2 ] [ internal ] }
[ metric [ absoluteValue ] | route-map [ mapTag ] | tag [ tagValue ] ]*redistribute { fromProtocol | ospf match internal } | metric-type { 1 | 2 }
[ metric absoluteValue | tag tagValue | route-map mapTag ]*no redistribute { fromProtocol | ospf match internal } | metric-type [ 1 | 2 ]
[ metric [ absoluteValue ] | tag [ tagValue ] | route-map [ mapTag ] ]*[ no ] redistribute ospf
{ match internal external [ 1 | 2 ] | match external [ 1 | 2 ] [ internal ] }
[ metric [ absoluteValue ] | route-map [ mapTag ] | tag [ tagValue ] ]*redistribute { fromProtocol | ospf match internal [ external [ 1 | 2 ] ] |
ospf match external [ 1 | 2 ] [ internal ] } [ metric absoluteValue | route-map mapTag ]*no redistribute { fromProtocol | ospf match internal } [ external [ 1 | 2 ] ] |
ospf match external [ 1 | 2 ] [ internal ] } [ metric [ absoluteValue ] |
route-map [ mapTag ] ]*
- fromProtocolSource protocol from which routes are being redistributed; default value is no source protocol defined
- accessRedistributes access-server routes (framed routes sourced by AAA)
- access-internalRedistributes internal host routes to directly connected clients
- bgpRoutes sourced from BGP protocol
- connectedRoutes that are established automatically when IP is enabled on an interface (non-multicast routing protocols). For routing protocols such as OSPF and IS-IS, these routes are redistributed as external to the AS. When you specify the connected keyword, only those connected networks that are configured on an interface that is not configured to run IS-IS will be redistributed. For DVMRP, specifying this keyword redistributes routes that are established automatically in the RPF table when another multicast routing protocol, such as PIM, is enabled on an interface.
- dvmrpRoutes sourced from DVMRP
- isisRoutes sourced from IS-IS
- ospfRoutes sourced from OSPF
- ripRoutes sourced from RIP
- staticRedistributes static routes
- static ipRedistributes static routes for IS-IS
- ospf matchDetermines what type(s) of routes to redistribute from OSPF; all OSPF routes are redistributed if you do not specify a type
- internalRedistributes OSPF internal routes
- external 1Redistributes OSPF external routes of metric-type 1
- external 2Redistributes OSPF external routes of metric-type 2
- absoluteValueMetric that is applied to all routes from the source protocol, in the range 04294967295; in BGP this value is the MED, which defaults to the IGP metric of the redistributed route
- mapTagString of up to 32 alphanumeric characters that specifies a route map applied to all routes from the source protocol; all routes are redistributed if you do not specify a route map
- wtValueAdministrative weight (relative importance) for routes redistributed into the protocol; a number, in the range 065535
- level-1Specifies the redistribution of routes into only IS-IS level 1
- level-1-2Specifies the redistribution of routes into both IS-IS level 1 and level 2
- level-2Specifies the redistribution of routes into only IS-IS level 2; this is the default behavior
- metric-typeSpecifies the OSPF or IS-IS metric type for all routes from the source protocol
For routes redistributed into IS-IS:
- metric-type externalOnly the metric of the route itself is considered for comparison
- metric-type internalBoth the metric of the route and the cost to the router that advertised the route are considered for comparison; this is the IS-IS default
For routes redistributed into OSPF:
- metric-type 1Cost of the external routes is equal to the sum of all internal costs and the external cost
- metric-type 2Cost of the external routes is equal to the external cost alone; this is the OSPF default
- tagValueTag that is applied to all routes from the source protocol, in the range 04294967295
- *Indicates that one or more parameters can be repeated multiple times in a list in the command line
Address Family Configuration, Router Configuration
Command introduced before JUNOSe Release 7.1.0.