home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

protocols ospf redistribute <protocol> <options>

Sets the parameters for redistribution of routes based on the protocol value into OSPF. Protocol extends to bgp, connected, static, rip, and kernel. Options extends to metric, metric-type and route_map

set protocols ospf [ process pid ] redistribute protocol { metric metric | metric-type type | route-map map-name | tag value }
delete protocols ospf [ process pid ] redistribute protocol [ metric | metric-type | route-map | tag ]
show protocols ospf [ process pid ] redistribute protocol [ metric | metric-type | route-map | tag ]

All IGP routes redistributed into OSPF are assigned a default metric of 20 and a metric type of 2. All EGP routes redistributed into OSPF are assigned a default metric of 1 and a metric type of 2. By default, a route map is not applied to redistributed routes.

process pid
Specifies the PID of an IPv4 OSPF process.
protocolprotocol
The values are defined as follows:
  • bgp: Sets the parameters for redistribution of connected routes into OSPF.
  • kernel: Sets the parameters for redistribution of kernel routes into OSPF.
  • rip: Sets the parameters for redistribution of RIP routes into OSPF.
  • static: Sets the parameters for redistribution of static routes into OSPF.
  • connected: Sets the parameters for redistribution of connected routes into OSPF.
metricmetric

Applies the specified metric to routes being redistributed into OSPF.

The range is 1 to 16777214.

metric-typetype

The external route metric type, that specifies how cost is calculated, to be associated with the Type 5 default link‐state advertisement (LSA). Supported values are:

1: Internal cost is added to external cost. (E1 routes use the redistributed cost plus the cost to the autonomous system boundary router (ASBR).)

2: External cost only. (E2 routes use only the redistributed cost.)

The default is 2.

route-mapmap-name
Redistributes routes satisfying the specified route map.
tag value
The range is t to 2147483647.

Configuration mode.

protocols {
       ospf {
               process pid {
                     redistribute {
                            protocol {
                                   metric metric
                                   metric-type type
                                   route-map map-name
                            }
                     }
               }
       }
}

Use this command to define the parameters for redistribution of routes into OSPF.

Note: When extended ACLs are used directly or in a route map, the route must be specified in the source field of the ACL and the net mask of the route must be specified in the destination field of the ACL. The inverse mask of the source field is applied to the prefix prior to the comparison with the source. The inverse mask for the destination field is applied to the net mask of the prefix prior to the comparison with the net-mask as specified in the destination field. Effectively, the prefix must match the source with the application of inverse mask of the source field. And the net mask for the prefix must match the destination with the application of the inverse mask of the destination field.

Use the set form of this command to set route redistribution parameters.

Use the delete form of this command to remove route redistribution parameters.

Use the show form of this command to display route redistribution configuration.