Technical Documentation

Configuring OSPF

To configure OSPF version 2 (usually referred to simply as OSPF), you include the following statements:

protocols {ospf {disable;export [ policy-names ];external-preference preference;graceful-restart {disable;helper-disable;notify-duration seconds;restart-duration seconds;}import [ policy-names ];no-nssa-abr;no-rfc-1583;overload {timeout seconds;}preference preference;prefix-export-limit;rib-group group-name;reference-bandwidth reference-bandwidth;sham-link {local address;}spf-options {delay milliseconds;rapid-runs number;holddown milliseconds;}traffic-engineering {advertise-unnumbered-interfaces;multicast-rpf-routes;no-topology;shortcuts {ignore-lsp-metrics;lsp-metric-into-summary;}}traceoptions {file filename <files number> <size size> <world-readable | no-world-readable>;flag flag <flag-modifier> <disable>;}area area-id {area-range network/mask-length <restrict> <exact> <override-metric metric>;interface interface-name {disable;authentication {md5 key-id {key [ key-values ];start-time time;}simple-password key;}bfd-liveness-detection {authentication {algorithm algorithm-name;key-chain key-chain-name;loose-check;}detection-time {threshold milliseconds;}full-neighbors-only;minimum-interval milliseconds;minimum-receive-interval milliseconds;multiplier number;no-adaptation;transmit-interval {threshold milliseconds;minimum-interval milliseconds;}version (1 | automatic);}dead-interval seconds;demand-circuit;flood-reduction;hello-interval seconds;interface-type type;ipsec-sa name;ldp-synchronization {disable;hold-time seconds;}metric metric;neighbor address <eligible>;passive {traffic-engineering {remote-node-id address;}}poll-interval seconds;priority number;retransmit-interval seconds;secondary;te-metric metric;topology (ipv4-multicast | name) {metric metric;}transit-delay seconds;}label-switched-path name metric metric;network-summary-export [ policy-names ];network-summary-import [policy-names ];nssa {area-range network/mask-length <restrict> <exact> <override-metric metric>;default-lsa {default-metric metric;metric-type type;type-7;}(summaries | no-summaries);}peer-interface interface-name {disable;dead-interval seconds;demand-circuit;flood-reduction;hello-interval seconds;retransmit-interval seconds;transit-delay seconds;}sham-link-remote address {demand-circuit;flood-reduction;ipsec-sa name;metric metric;}}stub <default-metric metric> <summaries | no-summaries>;virtual-link neighbor-id router-id transit-area area-id {disable;authentication {md5 key-id {key [ key-values ];}simple-password key;}dead-interval seconds;demand-circuit;flood-reduction;hello-interval seconds;ipsec-sa name;retransmit-interval seconds;topology (ipv4-multicast | name) disable;transit-delay seconds;}}}

For a list of hierarchy levels at which you can include these statements, see the statement summary sections for these statements.

To configure OSPF version 3 (OSPFv3), you include the following statements:

protocols {ospf3 {disable;export [ policy-names ];external-preference preference;graceful-restart {disable;helper-disable;notify-duration seconds;restart-duration seconds;}import [ policy-names ];overload {timeout seconds;}preference preference;prefix-export-limit;reference-bandwidth reference-bandwidth;realm (ipv4-unicast | ipv4-multicast | ipv6-multicast);rib-group group-name;spf-options {delay milliseconds;holddown milliseconds;rapid-runs number;}traceoptions {file filename <files number> <size size> <world-readable | no-world-readable>;flag flag <flag-modifier> <disable>;}area area-id {area-range network/mask-length <restrict> <exact> <override-metric metric>;interface interface-name {bfd-liveness-detection {detection-time {threshold milliseconds;}full-neighbors-only;minimum-interval milliseconds;minimum-receive-interval milliseconds;multiplier number;no-adaptation;transmit-interval {threshold milliseconds;minimum-interval milliseconds;}version (1 | automatic);}disable;dead-interval seconds;flood-reduction;hello-interval seconds;ipsec-sa name;metric metric;passive {traffic-engineering {remote-node-id address;}}priority number;retransmit-interval seconds;transit-delay seconds;}inter-area-prefix-export policy-name;inter-area-prefix-import policy-name;nssa {area-range network/mask-length <restrict> <exact> <override-metric metric>;default-lsa {default-metric metric;metric-type type;type-7;}(summaries | no-summaries);}stub <default-metric metric> <summaries | no-summaries>;virtual-link neighbor-id router-id transit-area area-id {disable;dead-interval seconds;hello-interval seconds;flood-reduction;ipsec-sa name;retransmit-interval seconds;transit-delay seconds;}}}}

For a list of hierarchy levels at which you can include these statements, see the statement summary sections for these statements.

For a detailed OSPFv3 example configuration, see the Junos Feature Guide.

By default, OSPFv2 and OSPFv3 are disabled.

Note: In this manual, the term OSPF refers to both OSPFv2 and OSPFv3.

Related Topics


Published: 2010-07-02

Help
|
My Account
|
Log Out