OcNOS-SP : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : redistribute
redistribute
This command redistributes routes from routing protocols, static routes, and kernel routes into an OSPF routing table.
Use the no form of this command to disable redistribution.
Command Syntax
redistribute (kernel|connected|static|rip|bgp|isis (WORD|)|ospf (<1-65535>|)) {metric <0-16777214>|metric-type (1|2)|route-map WORD|tag <0-4294967295>}
no redistribute (kernel|connected|static|rip|bgp|isis(WORD|)|ospf (<1-65535>|)) metric|metric-type|route-map|tag}
Parameters
kernel
Redistribute kernel routes.
connected
Redistribute connected routes.
static
Redistribute static routes.
rip
Redistribute RIP routes.
bgp
Redistribute BGP routes.
isis
Redistribute IS-IS routes.
WORD
IS-IS instance identifier.
ospf
Redistribute OSPF routes.
<1-65535>
OSPF process ID to redistribute a particular OSPF instance into another OSPF instance. If not specified, this command redistributes into the OSPF instance with process ID 0.
metric
External metric.
<0-16777214>
 
External metric value.
metric-type
External metric-type (see RFC 3101):
1
OSPF External Type 1 metrics.
2
OSPF External Type 2 metrics.
route-map
Route map reference.
WORD
Route map name.
tag
Tag value to use as a “match” value for controlling redistribution via route maps.
<0-4294967295>
 
Route tag value.
Default
By default, redistribution is disabled.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#router ospf 100
(config-router)#redistribute bgp metric 12
The following example shows redistributing OSPF instance 2 into OSPF instance 1.
(config)#router ospf 1
(config-router)#redistribute ospf 2
The following example shows redistributing OSPF instance 2 into OSPF instance 1, with an external metric of 10, metric type 1, a route-map named rmp1, and an external route tag of 3.
(config)#router ospf 1
(config-router)#redistribute ospf 2 metric 10 metric-type 1 route-map rmp1 tag 3
 
Last modified date: 10/16/2023