OcNOS-RON : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv3 Commands : redistribute
redistribute
Use this command to import routes from other routing protocols, or from another OSPF instance, into OSPFv3 AS-external-LSAs.
OSPFv3 advertises routes learned from other routing protocols or from other OSPF instances, including static or connected routes. Each injected prefix is put into the AS-external-LSA with a specified metric and metric-type.
Use the no parameter with this command to stop redistribution.
Command Syntax
redistribute (kernel|connected|static|rip|bgp|isis|ospf (WORD|<1-65535>|)) {metric <0-16777214>|metric-type (1|2)|route-map WORD|tag <0-4294967295>}
no redistribute (kernel|connected|static|rip|bgp|isis|ospf (WORD|)) (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 routes.
WORD
Specify an OSPFv3 Process Tag. If not specified, redistribute OSPF process with tag "null".
<1-65535>
Specify an OSPF process identifier. If not specified, 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 metric.
2
Set OSPF External Type 2 metric.
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
By default, redistribute is disabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows redistribution of BGP routes into the OSPFv3 routing table, with the metric as 10.
#configure terminal
(config)#router ipv6 ospf
(config-router)#redistribute bgp metric 10 metric-type 1
 
The following example shows redistribution of static IPv4 routes into the OSPFv3 routing table.
#configure terminal
(config)#router ipv6 ospf
(config-router)#redistribute static
 
Last modified date: 08/28/2023