ospf

Note

requires a Product License.

OSPF configuration.

vsr running config# vrf <vrf> routing ospf

enabled (pushed)

Enable or disable OSPF.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# enabled true|false
Default value
true

router-id

OSPF router identifier in IP address format.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# router-id ROUTER-ID

ROUTER-ID

An IPv4 address.

abr-type

OSPF ABR type.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# abr-type ABR-TYPE

ABR-TYPE values

Description

cisco

Alternative ABR, cisco implementation.

ibm

Alternative ABR, IBM implementation.

shortcut

Shortcut ABR.

standard

Standard behavior (RFC2328).

Default value
cisco

write-multiplier

Maximum number of interface serviced per write.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# write-multiplier <1-100>
Default value
20

auto-cost

Calculate OSPF interface cost according to reference bandwidth (Mbits per second).

vsr running config# vrf <vrf> routing ospf
vsr running ospf# auto-cost <1-4294967>
Default value
100000

opaque-lsa

Enable or disable opaque LSA capability.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# opaque-lsa true|false

compatible-rfc1583

Enable or disable compatibility with RFC 1583.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# compatible-rfc1583 true|false

default-metric

Set metric of redistributed routes.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# default-metric <0-16777214>

log-adjacency-changes

Log changes in adjacency state.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# log-adjacency-changes LOG-ADJACENCY-CHANGES

LOG-ADJACENCY-CHANGES values

Description

standard

Standard logs.

detail

Log all state changes.

refresh-timer

LSA refresh interval (in seconds).

vsr running config# vrf <vrf> routing ospf
vsr running ospf# refresh-timer <10|20|30|40|50|60|70|80|90|100|110|120|130|140|150|160|170|180|190|200|210|220|230|240|250|260|270|280|290|300|310|320|330|340|350|360|370|380|390|400|410|420|430|440|450|460|470|480|490|500|510|520|530|540|550|560|570|580|590|600|610|620|630|640|650|660|670|680|690|700|710|720|730|740|750|760|770|780|790|800|810|820|830|840|850|860|870|880|890|900|910|920|930|940|950|960|970|980|990|1000|1010|1020|1030|1040|1050|1060|1070|1080|1090|1100|1110|1120|1130|1140|1150|1160|1170|1180|1190|1200|1210|1220|1230|1240|1250|1260|1270|1280|1290|1300|1310|1320|1330|1340|1350|1360|1370|1380|1390|1400|1410|1420|1430|1440|1450|1460|1470|1480|1490|1500|1510|1520|1530|1540|1550|1560|1570|1580|1590|1600|1610|1620|1630|1640|1650|1660|1670|1680|1690|1700|1710|1720|1730|1740|1750|1760|1770|1780|1790|1800>
Default value
10

area

OSPF area parameters.

vsr running config# vrf <vrf> routing ospf area <area>

<area> values

Description

<uint32>

OSPF area ID.

<ipv4-address>

An IPv4 address.

default-cost

Default summary cost of a NSSA or stub area.

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># default-cost <0-16777215>

export-list

Set the filter for networks announced to other areas (access-list name).

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># export-list <string>{1,max}

import-list

Set the filter for networks from other areas announced to the specified one (access-list name).

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># import-list <string>{1,max}

shortcut

Enable/Disable shortcutting through the area.

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># shortcut true|false

nssa

Configure OSPF area as nssa.

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># nssa summary true|false translate TRANSLATE

summary

Inject inter-area routes into nssa.

summary true|false
Default value
true

translate

NSSA-ABR translate.

translate TRANSLATE

TRANSLATE values

Description

always

Configure NSSA-ABR to always translate.

candidate

Configure NSSA-ABR for translate election (default).

never

Configure NSSA-ABR to never translate.

Default value
candidate

stub

Configure OSPF area as stub.

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># stub summary true|false

summary

Inject inter-area routes into stub.

summary true|false
Default value
true

authentication

Enable authentication.

vsr running config# vrf <vrf> routing ospf area <area> authentication

message-digest

If true, use message-digest authentication.

vsr running config# vrf <vrf> routing ospf area <area> authentication
vsr running authentication# message-digest true|false

filter-list

Filter networks between OSPF areas.

vsr running config# vrf <vrf> routing ospf area <area> filter-list

input

Filter networks sent to this area (prefix-list name).

vsr running config# vrf <vrf> routing ospf area <area> filter-list
vsr running filter-list# input <string>{1,max}

output

Filter networks sent from this area (prefix-list name).

vsr running config# vrf <vrf> routing ospf area <area> filter-list
vsr running filter-list# output <string>{1,max}

range

Summarize routes matching address/mask (border routers only).

vsr running config# vrf <vrf> routing ospf area <area>
vsr running area <area># range <range> action ACTION cost <0-16777215>

<range>

An IPv4 prefix: address and CIDR mask.

action

Advertise this range, do not advertise or announce as another prefix.

action ACTION

ACTION values

Description

advertise

Advertise this range (default).

not-advertise

Do not advertise this range.

<ipv4-prefix>

An IPv4 prefix: address and CIDR mask.

Default value
advertise

cost

User specified metric for this range.

cost <0-16777215>

default-information

Control distribution of default information.

vsr running config# vrf <vrf> routing ospf default-information

always

If true, always advertise default route.

vsr running config# vrf <vrf> routing ospf default-information
vsr running default-information# always true|false

metric

OSPF default metric.

vsr running config# vrf <vrf> routing ospf default-information
vsr running default-information# metric <0-16777214>

metric-type

OSPF metric type for default routes.

vsr running config# vrf <vrf> routing ospf default-information
vsr running default-information# metric-type <1-2>
Default value
2

route-map

Route map reference.

vsr running config# vrf <vrf> routing ospf default-information
vsr running default-information# route-map <string>{1,max}

distance

OSPF administrative distance.

vsr running config# vrf <vrf> routing ospf distance

all

Default OSPF administrative distance.

vsr running config# vrf <vrf> routing ospf distance
vsr running distance# all <1-255>

external

OSPF administrative distance for external routes.

vsr running config# vrf <vrf> routing ospf distance
vsr running distance# external <1-255>

inter-area

OSPF administrative distance for inter-area routes.

vsr running config# vrf <vrf> routing ospf distance
vsr running distance# inter-area <1-255>

intra-area

OSPF administrative distance for intra-area routes.

vsr running config# vrf <vrf> routing ospf distance
vsr running distance# intra-area <1-255>

max-metric

OSPF maximum / infinite-distance metric.

vsr running config# vrf <vrf> routing ospf max-metric

administrative

If true, mark as administratively applied, for an indefinite period.

vsr running config# vrf <vrf> routing ospf max-metric
vsr running max-metric# administrative true|false

on-shutdown

Advertise stub-router prior to full shutdown of OSPF.

vsr running config# vrf <vrf> routing ospf max-metric
vsr running max-metric# on-shutdown <5-100>

on-startup

Automatically advertise stub Router-LSA on startup of OSPF.

vsr running config# vrf <vrf> routing ospf max-metric
vsr running max-metric# on-startup <5-86400>

neighbor

Neighbor router.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# neighbor <neighbor> poll-interval <1-65535> priority <0-255>

<neighbor>

An IPv4 address.

poll-interval

Dead neighbor polling interval (in seconds).

poll-interval <1-65535>

priority

Neighbor priority.

priority <0-255>

network

Enable routing on an IP network.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# network <network> area AREA

<network>

An IPv4 prefix: address and CIDR mask.

area (mandatory)

OSPF area ID.

area AREA

AREA values

Description

<uint32>

No description.

<ipv4-address>

An IPv4 address.

passive-interface

Suppress routing updates on an interface.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# passive-interface <passive-interface> address ADDRESS

<passive-interface>

An interface name.

address

IPv4 address.

address ADDRESS

ADDRESS

An IPv4 address.

timers

Adjust routing timers.

vsr running config# vrf <vrf> routing ospf timers

lsa

Throttling link state advertisement delays.

vsr running config# vrf <vrf> routing ospf timers lsa

min-arrival

Minimum delay in receiving new version of a LSA.

vsr running config# vrf <vrf> routing ospf timers lsa
vsr running lsa# min-arrival <0-600000>

throttle

Throttling adaptive timer.

vsr running config# vrf <vrf> routing ospf timers throttle

lsa

LSA delay (msec) between transmissions.

vsr running config# vrf <vrf> routing ospf timers throttle
vsr running throttle# lsa <0-5000>

spf

OSPF SPF timers.

vsr running config# vrf <vrf> routing ospf timers throttle spf
delay (mandatory)

Delay (msec) from first change received till SPF calculation.

vsr running config# vrf <vrf> routing ospf timers throttle spf
vsr running spf# delay <0-600000>
init-hold-time (mandatory)

Initial hold time (msec) between consecutive SPF calculations.

vsr running config# vrf <vrf> routing ospf timers throttle spf
vsr running spf# init-hold-time <0-600000>
max-hold-time (mandatory)

Maximum hold time (msec).

vsr running config# vrf <vrf> routing ospf timers throttle spf
vsr running spf# max-hold-time <0-600000>

distribute-list

Filter networks in routing updates.

vsr running config# vrf <vrf> routing ospf distribute-list out <distribute-list>

<distribute-list> values

Description

cisco

Alternative ABR, cisco implementation.

bgp

Border Gateway Protocol (BGP).

connected

Connected routes (directly attached subnet or host).

kernel

Kernel routes (not installed via the zebra RIB).

isis

Intermediate system to intermediate system (ISIS).

rip

Routing Information Protocol (RIP).

static

Statically configured routes.

table

Non-main Kernel Routing Table.

nhrp

Next Hop Resolution Protocol (NHRP).

access-list (mandatory)

Access list name.

vsr running config# vrf <vrf> routing ospf distribute-list out <distribute-list>
vsr running distribute-list out <distribute-list># access-list <string>{1,max}

redistribute

Redistribute information from another routing protocol.

vsr running config# vrf <vrf> routing ospf
vsr running ospf# redistribute <redistribute> metric <0-16777214> metric-type <1-2> \
... route-map <string>{1,max} id <uint16>

<redistribute> values

Description

bgp

Border Gateway Protocol (BGP).

connected

Connected routes (directly attached subnet or host).

kernel

Kernel routes (not installed via the zebra RIB).

isis

Intermediate system to intermediate system (ISIS).

ospf

Open Shortest Path First.

rip

Routing Information Protocol (RIP).

static

Statically configured routes.

table

Non-main Kernel Routing Table.

metric

Metric for redistributed routes.

metric <0-16777214>

metric-type

OSPF exterior metric type for redistributed routes.

metric-type <1-2>

route-map

Route map reference.

route-map <string>{1,max}

id

Table ID.

id <uint16>