redistribute

Syntax

The options available vary depending on the routing protocol context; that is, on whether you are configuring BGP, DVMRP, IS-IS, OSPF, or RIP.

For BGP:

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 ] ]*

For DVMRP:

[ no ] redistribute fromProtocol [ route-map mapTag ]

For IS-IS:

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 ] ]*

For OSPFv2:

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 ] ]*

For OSPFv3:

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 ] ]*

For RIP:

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 ] ]*

Release Information

Command introduced before JunosE Release 7.1.0.

Description

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.

Options

Mode

Address Family Configuration, Router Configuration

Related Documentation