ospf

OSPF configuration.

vrouter running config# vrf <vrf> routing ospf

enabled

Enable or disable OSPF.

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

router-id

OSPF router-id in IP address format.

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# router-id ROUTER-ID
ROUTER-ID An IPv4 address.

abr-type

OSPF ABR type.

vrouter running config# vrf <vrf> routing ospf
vrouter 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.

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# write-multiplier <uint8>
Default value
20

auto-cost

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

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# auto-cost <uint32>
Default value
100000

opaque-lsa

Enable or disable opaque LSA capability.

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

compatible-rfc1583

Enable or disable compatibility with RFC 1583.

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

default-metric

Set metric of redistributed routes.

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# default-metric <uint32>

log-adjacency-changes

Log changes in adjacency state.

vrouter running config# vrf <vrf> routing ospf
vrouter 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).

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# refresh-timer <uint16>
Default value
10

area

OSPF area parameters.

vrouter running config# vrf <vrf> routing ospf area <area>
<area> values Description
<uint32> No description.
<A.B.C.D> An IPv4 address.

default-cost

Default summary cost of a NSSA or stub area.

vrouter running config# vrf <vrf> routing ospf area <area>
vrouter running area <area># default-cost <uint32>
Default value
1

export-list

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

vrouter running config# vrf <vrf> routing ospf area <area>
vrouter running area <area># export-list <string>

import-list

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

vrouter running config# vrf <vrf> routing ospf area <area>
vrouter running area <area># import-list <string>

area-id (state only)

OSPF area ID.

vrouter> show state vrf <vrf> routing ospf area <area> area-id

nssa

Configure OSPF area as nssa.

vrouter running config# vrf <vrf> routing ospf area <area>
vrouter 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.

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

summary

Inject inter-area routes into stub.

summary true|false
Default value
true

authentication

Enable authentication.

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

message-digest

If true, use message-digest authentication.

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

filter-list

Filter networks between OSPF areas.

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

input

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

vrouter running config# vrf <vrf> routing ospf area <area> filter-list
vrouter running filter-list# input <string>

output

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

vrouter running config# vrf <vrf> routing ospf area <area> filter-list
vrouter running filter-list# output <string>

range

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

vrouter running config# vrf <vrf> routing ospf area <area>
vrouter running area <area># range <range> action ACTION cost <uint32>
<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.
<A.B.C.D/M> An IPv4 prefix: address and CIDR mask.
Default value
advertise

cost

User specified metric for this range.

cost <uint32>

prefix (state only)

Area range prefix.

vrouter> show state vrf <vrf> routing ospf area <area> range <range> prefix

default-information

Control distribution of default information.

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

always

If true, always advertise default route.

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

metric

OSPF default metric.

vrouter running config# vrf <vrf> routing ospf default-information
vrouter running default-information# metric <uint32>

metric-type

OSPF metric type for default routes.

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

route-map

Route map reference.

vrouter running config# vrf <vrf> routing ospf default-information
vrouter running default-information# route-map <string>

distance

OSPF administrative distance.

vrouter running config# vrf <vrf> routing ospf distance

all

Default OSPF administrative distance.

vrouter running config# vrf <vrf> routing ospf distance
vrouter running distance# all <uint8>

external

OSPF administrative distance for external routes.

vrouter running config# vrf <vrf> routing ospf distance
vrouter running distance# external <uint8>

inter-area

OSPF administrative distance for inter-area routes.

vrouter running config# vrf <vrf> routing ospf distance
vrouter running distance# inter-area <uint8>

intra-area

OSPF administrative distance for intra-area routes.

vrouter running config# vrf <vrf> routing ospf distance
vrouter running distance# intra-area <uint8>

max-metric

OSPF maximum / infinite-distance metric.

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

administrative

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

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

on-shutdown

Advertise stub-router prior to full shutdown of OSPF.

vrouter running config# vrf <vrf> routing ospf max-metric
vrouter running max-metric# on-shutdown <uint8>

on-startup

Automatically advertise stub Router-LSA on startup of OSPF.

vrouter running config# vrf <vrf> routing ospf max-metric
vrouter running max-metric# on-startup <uint32>

neighbor

Neighbor router.

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# neighbor <neighbor> poll-interval <uint16> priority <uint8>
<neighbor> An IPv4 address.

poll-interval

Dead neighbor polling interval (in seconds).

poll-interval <uint16>

priority

Neighbor priority.

priority <uint8>

address (state only)

Neighbor IP address.

vrouter> show state vrf <vrf> routing ospf neighbor <neighbor> address

network

Enable routing on an IP network.

vrouter running config# vrf <vrf> routing ospf
vrouter 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.
<A.B.C.D> An IPv4 address.

prefix (state only)

OSPF network prefix.

vrouter> show state vrf <vrf> routing ospf network <network> prefix

passive-interface

Suppress routing updates on an interface.

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# passive-interface <passive-interface> address ADDRESS
<passive-interface> An interface name.

address

IPv4 address.

address ADDRESS
ADDRESS An IPv4 address.

interface (state only)

Interface name.

vrouter> show state vrf <vrf> routing ospf passive-interface <passive-interface> interface

timers

Adjust routing timers.

vrouter running config# vrf <vrf> routing ospf timers

lsa

Throttling link state advertisement delays.

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

min-arrival

Minimum delay in receiving new version of a LSA.

vrouter running config# vrf <vrf> routing ospf timers lsa
vrouter running lsa# min-arrival <uint32>

throttle

Throttling adaptive timer.

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

lsa

LSA delay (msec) between transmissions.

vrouter running config# vrf <vrf> routing ospf timers throttle
vrouter running throttle# lsa <uint16>

spf

OSPF SPF timers.

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

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

vrouter running config# vrf <vrf> routing ospf timers throttle spf
vrouter running spf# delay <uint32>
init-hold-time (mandatory)

Initial hold time (msec) between consecutive SPF calculations.

vrouter running config# vrf <vrf> routing ospf timers throttle spf
vrouter running spf# init-hold-time <uint32>
max-hold-time (mandatory)

Maximum hold time (msec).

vrouter running config# vrf <vrf> routing ospf timers throttle spf
vrouter running spf# max-hold-time <uint32>

distribute-list

Filter networks in routing updates.

vrouter 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).
rip Routing Information Protocol (RIP).
static Statically configured routes.
table Non-main Kernel Routing Table.

access-list (mandatory)

Access list name.

vrouter running config# vrf <vrf> routing ospf distribute-list out <distribute-list>
vrouter running distribute-list out <distribute-list># access-list <string>

out (state only)

Filter outgoing routing updates.

vrouter> show state vrf <vrf> routing ospf distribute-list out <distribute-list> out

redistribute

Redistribute information from another routing protocol.

vrouter running config# vrf <vrf> routing ospf
vrouter running ospf# redistribute <redistribute> metric <uint32> metric-type <uint8> \
... route-map <string>
<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).
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 <uint32>

metric-type

OSPF exterior metric type for redistributed routes.

metric-type <uint8>

route-map

Route map reference.

route-map <string>

protocol (state only)

Routing protocol.

vrouter> show state vrf <vrf> routing ospf redistribute <redistribute> protocol