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 static

Sets the parameters for redistribution of static routes into OSPF.

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

Static routes that are redistributed into OSPF are assigned a routing metric of 1 and a metric type of 2. By default, no route map is applied to redistributed static routes.

process pid
Specifies the PID of an IPv4 OSPF process.
metric metric
Applies the specified metric to static routes that are redistributed into OSPF. The metric ranges from 1 through 16. The default metric is 1.
metric-type type
The metric type of an external route, which specifies how cost is calculated, to associate with the Type 5 default link-state advertisement (LSA). The metric type is either of the following:

1: Adds internal cost to external cost. (E1 routes use the redistributed cost plus the cost to the ASBR.)

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

The default type is 2.

route-map map-name
Redistributes routes that satisfy the specified route map.

Configuration mode

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

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

Use the set form of this command to set the parameters for redistribution of static routes.

Use the delete form of this command to remove the parameters for redistribution of static routes.

Use the show form of this command to display the parameters for redistribution of static routes.