# OSPF

The `nv unset` commands remove the configuration you set with the equivalent `nv set` commands. This guide only describes an `nv unset` command if it differs from the `nv set` command.

## nv set interface <interface-id> router ospf area

Configures the OSPF area on the specified OSPF interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf area 0

## nv set interface <interface-id> router ospf authentication

Configures OSPF MD5 authentication for the specified interface.

## nv set interface <interface-id> router ospf authentication state

Enables and disables OSPF authentication on the specified interface. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf authentication state enabled

## nv set interface <interface-id> router ospf authentication md5-key <value>

Configures the MD5 key for the specified interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.
`<value>` | The MD5 key.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf authentication md5-key thisisthekey

## nv set interface <interface-id> router ospf authentication message-digest-key

Configures the message digest key for the specified interface. You can specify a value between 1 and 255. The value must be consistent across all routers on a link.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf authentication message-digest-key 1

## nv set interface <interface-id> router ospf bfd detect-multiplier

Configures the detection time multiplier on the specified OSPF interface. You can specify a value between 2 and 255.

Cumulus Linux 5.15 and later no longer supports this command.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf bfd detect-multiplier 100

## nv set interface <interface-id> router ospf bfd enable

Enables and disables BFD on the specified OSPF interface. The default setting is `disable`.

BFD provides low overhead and rapid detection of failures in the paths between two network devices.

Cumulus Linux 5.15 and later no longer supports this command.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf bfd state enable

## nv set interface <interface-id> router ospf bfd min-receive-interval

Configures the required minimum interval between received BFD control packets on the specified OSPF interface. You can specify a value between 50 and 60000.

Cumulus Linux 5.15 and later no longer supports this command.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf bfd min-receive-interval 400

## nv set interface <interface-id> router ospf bfd min-transmit-interval

Configures the minimum transmit interval in milliseconds on the specified OSPF interface. You can specify a value between 50 and 60000.

Cumulus Linux 5.15 and later no longer supports this command.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf bfd min-transmit-interval 400

## nv set interface <interface-id> router ospf cost

Configures the cost of this link. You can specify a value between 1 and 65535 or `auto`, which automatically determines the cost based on link speed. The default setting is `auto`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf cost 60

## nv set interface <interface-id> router ospf state

Enables and disables OSFP on the specified OSPF interface. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf state enabled

## nv set interface <interface-id> router ospf mtu-ignore

Enables and disables MTU value checking in OSPF DBD packets. The default setting is `enabled`.

In Cumulus Linux 5.14 and earlier, you specify `on` or `off`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf mtu-ignore disabled

## nv set interface <interface-id> router ospf network-type

Configures the network type for the OSPF interface: point-to-point or broadcast. The default setting is `broadcast`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf network-type point-to-multipoint

## nv set interface <interface-id> router ospf passive

Configures the OSPF interface as passive. A passive interface creates a database entry but does not send or receive OSPF hello packets. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `on` or `off`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf passive enabled

## nv set interface <interface-id> router ospf priority

Configures the priority in becoming the OSPF Designated Router (DR) on a broadcast interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf priority 5

## nv set interface <interface-id> router ospf timers dead-interval

Configures the number of seconds to wait without a hello before declaring the neighbor dead. You can specify a value between 1 and 65535, or `minimal`. If you specify `minimal`, you must set the `hello-multiplier`.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf timers dead-interval 600

## nv set interface <interface-id> router ospf timers hello-interval

Configures how often in seconds to transmit a hello packet. This setting is only valid if `dead-interval` is not `minimal`. You can specify a value between 1 and 65535.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf timers hello-interval 5

## nv set interface <interface-id> router ospf timers hello-multiplier

Configures the multiplier to use if `dead-interval` is `minimal`. You can specify a value between 1 and 10.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf timers hello-multiplier 6

## nv set interface <interface-id> router ospf timers retransmit-interval

Configures how often in seconds to retransmit a packet that is not acknowledged. You can specify a value between 1 and 65535.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf timers retransmit-interval 600

## nv set interface <interface-id> router ospf timers transmit-delay

Configures the number of seconds to wait before sending a new LSA. You can specify a value between 1 and 65535.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf timers retransmit-delay 600

## nv set router ospf state

Enables and disables OSPF globally on the switch. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf state enabled

## nv set router ospf router-id

Configures the OSPF router ID on the switch, which is a 32-bit value and is typically the address of the loopback interface. This command configures the router ID for all VRFs if it is a common one; otherwise, you must set the router ID for every VRF.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf router-id 10.10.10.1.

## nv set router ospf timers lsa min-arrival

Configures the minimum interval in seconds during which OSPF can accept the same LSA. You can specify a value between 0 and 600000.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf timers lsa min-arrival 300000

## nv set router ospf timers lsa throttle

Configures the amount of time after which OSPF sends LSAs. You can specify a value between 0 and 5000 milliseconds.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf timers lsa throttle 3000

## nv set router ospf timers refresh

Configures the refresh interval in seconds to resend LSAs to prevent them from aging out. You can specify a value between 10 and 1800 seconds.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf timers refresh 100

## nv set router ospf timers spf delay

Configures the amount of time to wait before calculating the SPF after receiving the first topology change. You can specify a value between 0 and 600000 milliseconds.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf timers spf delay 80

## nv set router ospf timers spf holdtime

Configures the amount of time to wait between consecutive SPF calculations. You can specify a value between 0 and 600000 milliseconds.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf timers spf holdtime 100

## nv set router ospf timers spf max-holdtime

Configures the maximum amount of time to wait between consecutive SPF calculations. You can specify a value between 0 and 600000 milliseconds.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set router ospf timers spf max-holdtime 100

## nv set vrf <vrf-id> router ospf area <area-id>

Configures the OSPF area in the specified VRF.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set interface swp51 router ospf area 0

## nv set vrf <vrf-id> router ospf area <area-id> default-lsa-cost

Configures the default LSA cost. This setting applies only when the OSPF area type is not `normal`. You can specify a value between 0 and 16777215.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 default-lsa-cost 2000

## nv set vrf <vrf-id> router ospf area <area-id> filter-list in <filter-id>

Configures the prefix list to use as an inbound filter for the OSPF area in the specified VRF.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.
`<filter-id>` | The filter name.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 filter-list in MY-OSPF-IN-FILTER

## nv set vrf <vrf-id> router ospf area <area-id> filter-list out

Configures the prefix list to use as an outbound filter for the OSPF area in the specified VRF.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.
`<filter-id>` | The filter name.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 filter-list out MY-OSPF-OUT-FILTER

## nv set vrf <vrf-id> router ospf area <area-id> network <network-id>

Configures prefix filters for an OSPF area in the specified VRF.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.
`<network-id>` | The subnet prefix.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 network 10.10.10.1/32

## nv set vrf <vrf-id> router ospf area <area-id> range <range-id>

Configures a summary route for all the routes in the specified range in the specified VRF.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.
`<range-id>` | The IPv4 prefix.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 range 172.16.1.0/24

## nv set vrf <vrf-id> router ospf area <area-id> range <range-id> cost

Configures the metric advertised for the specified address range. You can specify a value between 0 and 16777215, or `auto`. The default value is `auto` (Cumulus Linux derives the operational default value from the components).

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.
`<range-id>` | The IPv4 prefix.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 range 172.16.1.0/24 cost 65535

## nv set vrf <vrf-id> router ospf area <area-id> range <range-id> suppress

Configures OSPF to filter out components but not advertise the specified address range. The default setting is `disabled` (advertise the specified address range).

In Cumulus Linux 5.14 and earlier, you specify `on` or `off`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.
`<range-id>` | The IPv4 prefix.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 range 172.16.1.0/24 suppress enabled

## nv set vrf <vrf-id> router ospf area <area-id> type

Configures the OSPF area type. You can specify `normal`, `stub`, `totally-stub`, `nssa`, or `totally-nssa`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<area-id>` | The OSPF area.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf area 0 type stub

## nv set vrf <vrf-id> router ospf default-originate always

Configures OSPF to advertise a default route to other routers even if there is no default route in the routing table.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf default-originate always on

## nv set vrf <vrf-id> router ospf default-originate state

Enables and disables OSPF default originate. The default value is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf default-originate state enabled

## nv set vrf <vrf-id> router ospf default-originate metric

Configures the OSPF default originate metric. You can specify a value between 0 and 16777214, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf default-originate metric 16777214

## nv set vrf <vrf-id> router ospf default-originate metric-type

Configures the OSPF default originate metric type; 1 or 2.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf default-originate metric-type 1

## nv set vrf <vrf-id> router ospf default-originate route-map

Applies the specified route map.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf default-originate route-map ROUTEMAP1

## nv set vrf <vrf-id> router ospf distance external

Configures the external administrative distance for OSPF routes. You can specify a value between 1 and 255, or `none`.

Cumulus Linux uses the administrative distance to choose which routing protocol to use when two different protocols provide route information for the same destination. The smaller the distance, the more reliable the protocol. For example, if the switch receives a route from OSPF with an administrative distance of 110 and the same route from BGP with an administrative distance of 100, the switch chooses BGP.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf distance external 220

## nv set vrf <vrf-id> router ospf distance inter-area

Configures the administrative distance for internal OSPF routes. You can specify a value between 1 and 255, or `none`.

Cumulus Linux uses the administrative distance to choose which routing protocol to use when two different protocols provide route information for the same destination. The smaller the distance, the more reliable the protocol. For example, if the switch receives a route from OSPF with an administrative distance of 110 and the same route from BGP with an administrative distance of 100, the switch chooses BGP.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf distance inter-area 150

## nv set vrf <vrf-id> router ospf distance intra-area

Configures the administrative distance for internal OSPF routes. You can specify a value between 1 and 255, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf distance intra-area 150

## nv set vrf <vrf-id> router ospf state

Enables and disables OSPF on the specified VRF.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf state enabled

## nv set vrf <vrf-id> router ospf log adjacency-changes

Configures logging for adjacency changes. You can specify `enabled`, `disabled`, or `detail`.

In Cumulus Linux 5.14 and earlier, you specify `on`, `off`, or `detail`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf log adjacency-changes enabled

## nv set vrf <vrf-id> router ospf max-metric administrative

Enables and disables OSPF maximum metric administratively, for an indefinite period. The default setting is `disabled`.

OSPF maximum metric notifies neighbors not to use the router as part of the OSPF topology. While the network converges, all traffic forwarded to the max-metric router is still forwarded. After you update the network, the max-metric router no longer receives any traffic and you can configure the max-metric setting.

In Cumulus Linux 5.14 and earlier, you specify `on` or `off`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf max-metric administrative enabled

## nv set vrf <vrf-id> router ospf max-metric on-shutdown

Configures the OSPF maximum metric on shutdown. You can specify a value between 5 and 100, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf max-metric on-shutdown 20

## nv set vrf <vrf-id> router ospf max-metric on-startup

Configures the OSPF maximum metric on startup. You can specify a value between 5 and 86400, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf max-metric on-startup 200

## nv set vrf <vrf-id> router ospf redistribute bgp state

Enables and disables OSPF BGP route redistribution. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute bgp state enabled

## nv set vrf <vrf-id> router ospf redistribute bgp metric

Configures the metric for OSPF BGP route redistribution. You can specify a value between 0 and 16777214, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute bgp metric 2000

## nv set vrf <vrf-id> router ospf redistribute bgp metric-type <type>

Configures the metric type for OSPF BGP route redistribution; 1 or 2.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute bgp metric-type 2

## nv set vrf <vrf-id> router ospf redistribute bgp route-map <route-map-id>

Applies the specified route map for OSPF BGP route redistribution.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<route-map-id>` | The route map name.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute bgp route-map ROUTEMAP1

## nv set vrf <vrf-id> router ospf redistribute connected state

Enables and disables OSPF connected route redistribution. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute connected state enabled

## nv set vrf <vrf-id> router ospf redistribute connected metric

Configures the metric for OSPF connected route redistribution. You can specify a value between 0 and 16777214 or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute connected metric 2000

## nv set vrf <vrf-id> router ospf redistribute connected metric-type

Configures the metric type for OSPF connected route redistribution; 1 or 2.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute connected metric-type 1

## nv set vrf <vrf-id> router ospf redistribute connected route-map <route-map-id>

Applies the specified route map for OSPF connected route redistribution.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<route-map-id>` | The route map name.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute connected route-map ROUTEMAP1

## nv set vrf <vrf-id> router ospf redistribute kernel state

Enables and disables OSPF kernel route redistribution. The default setting is `disabled`.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute kernel state enabled

## nv set vrf <vrf-id> router ospf redistribute kernel metric

Configures the metric for OSPF kernel route redistribution. You can specify a value between 0 and 16777214, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute kernel metric 2000

## nv set vrf <vrf-id> router ospf redistribute kernel metric-type

Configures the metric type for OSPF kernel route redistribution; 1 or 2.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute kernel metric-type 2

## nv set vrf <vrf-id> router ospf redistribute kernel route-map <route-map-id>

Applies the specified route map for OSPF kernel route redistribution.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.
`<route-map-id>` | The route map name.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute kernel route-map ROUTEMAP1

## nv set vrf <vrf-id> router ospf redistribute static state

Enables and disables OSPF static route redistribution.

In Cumulus Linux 5.14 and earlier, you specify `enable on` or `enable off` instead of `state enabled` or `state disabled`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute static state enabled

## nv set vrf <vrf-id> router ospf redistribute static metric

Configures the metric for OSPF static route redistribution. You can specify a value between 0 and 16777214, or `none`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute static metric 2000

## nv set vrf <vrf-id> router ospf redistribute static metric-type

Configures the metric type for OSPF static route redistribution; 1 or 2.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute static metric-type 2

## nv set vrf <vrf-id> router ospf redistribute static route-map <route-map>

Applies the specified route map for OSPF static route redistribution.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf redistribute static route-map ROUTEMAP1

## nv set vrf <vrf-id> router ospf reference-bandwidth

Configures the auto-cost reference bandwidth. When you set the auto-cost reference bandwidth, Cumulus Linux dynamically calculates the OSPF interface cost to support higher speed links. You can specify a value between 1 and 4294967. The default value is 100000 for 100Gbps link speed.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf reference-bandwidth 9000

## nv set vrf <vrf-id> router ospf rfc1583-compatible

Configures the OSPF router to be compatible with RFC1583 (OSPFv2).

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf rfc1583-compatible off

## nv set vrf <vrf-id> router ospf router-id

Configures the OSPF router ID.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf router-id 10.10.10.1

## nv set vrf <vrf-id> router ospf timers lsa min-arrival

Configures the minimum interval for accepting the same LSA. You can specify a value between 0 and 600000.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf timers lsa min-arrival 30000

## nv set vrf <vrf-id> router ospf timers lsa throttle

Configures the minimum interval in milliseconds between LSA updates in OSPF during times of network instability. You can specify a value between 0 and 5000, or `auto`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf timers lsa throttle 3000

## nv set vrf <vrf-id> router ospf timers refresh

Configures the interval in seconds to re-send LSAs to keep from aging out. You can specify a value between 10 and 1800, or `auto`. `auto` inherits the global setting. The default is `auto`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf timers refresh 30

## nv set vrf <vrf-id> router ospf timers spf

Configures OSPF SPF timers.

## nv set vrf <vrf-id> router ospf timers spf delay

Configures the number of milliseconds from the initial event until SPF runs. You can specify a value between 0 and 600000, or `auto`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf timers spf delay 30000

## nv set vrf <vrf-id> router ospf timers spf holdtime

Configures the number of milliseconds between consecutive SPF runs. You can specify a value between 0 and 600000, or `auto`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf timers spf holdtime 30000

## nv set vrf <vrf-id> router ospf timers spf max-holdtime

Configures the maximum number of milliseconds between SPFs. You can specify a value between 0 and 600000, or `auto`.

### Command Syntax

Syntax | Description
--- | ---
`<vrf-id>` | The VRF you want to configure.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv set vrf default router ospf timers spf max-holdtime 3000