OcNOS-RON-6.3.1 : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands : redistribute
redistribute
This command redistributes routes from a routing protocol, static route, and kernel route into an OSPF routing table.
Use the no parameter with this command to disable this function.
Command Syntax
redistribute (kernel|connected|static|rip|bgp|isis|ospf (<1-65535>|)) {metric <0-16777214>|metric-type (1|2)|?route-map WORD|tag <0-4294967295>}
no redistribute (kernel|connected|static|rip|bgp|isis|ospf (<1-65535>|)) metric|metric-type|?route-map|tag}
Parameters
kernel
Specify kernel routes.
connected
Specify connected routes.
static
Specify static routes.
rip
Specify RIP routes.
bgp
Specify BGP routes.
isis
Specify IS-IS routes.
ospf
Specify OSPF process.
<1-65535>
Specify an OSPF process ID to redistribute a particular OSPF instance into another OSPF instance. If not specified, this command redistribute OSPF instance with process ID 0.
metric
Specify the external metric.
<0-16777214>
 
Specify the external metric.
metric-type
Specify the external metric-type (see RFC 3101):
1
Set OSPF External Type 1 metrics.
2
Set OSPF External Type 2 metrics.
route-map
Specify a route map reference.
WORD
Specify name of the route-map.
tag
Tag value to use as a “match” value for controlling redistribution via route maps
<0-4294967295>
 
Specify the route tag.
Default
No default value is specified
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.
#configure terminal
(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.
#configure terminal
(config)#router ospf 1
(config-router)#redistribute ospf 2 metric 10 metric-type 1 route-map rmp1 tag 3
 
Last modified date: 07-13-2023